15 Commits

Author SHA1 Message Date
d7137b4bb5 Update .gitea/workflows/release.yml
All checks were successful
Security / snyk (push) Successful in 3m9s
Security / sonarqube (push) Successful in 4m21s
2025-05-07 01:23:42 +02:00
3675681d08 Update .gitea/workflows/release.yml
All checks were successful
Security / snyk (push) Successful in 3m48s
Security / sonarqube (push) Successful in 4m48s
2025-05-07 01:16:34 +02:00
eed6f7d8b5 Update .gitea/workflows/release.yml
All checks were successful
Security / snyk (push) Successful in 2m28s
Security / sonarqube (push) Successful in 2m41s
2025-05-07 01:02:39 +02:00
75f059bfb0 Update .gitea/workflows/release.yml
All checks were successful
Security / snyk (push) Successful in 2m42s
Security / sonarqube (push) Successful in 3m1s
2025-05-07 00:53:43 +02:00
ebf0172b7e Update .gitea/workflows/release.yml
All checks were successful
Security / sonarqube (push) Successful in 2m17s
Security / snyk (push) Successful in 2m33s
2025-05-07 00:48:42 +02:00
0b86858348 Update .gitea/workflows/release.yml
Some checks failed
Security / sonarqube (push) Has been cancelled
Security / snyk (push) Has been cancelled
2025-05-07 00:46:26 +02:00
84f6169114 Update .gitea/workflows/release.yml
All checks were successful
Security / snyk (push) Successful in 2m0s
Security / sonarqube (push) Successful in 2m47s
2025-05-07 00:42:58 +02:00
dec6a14863 Update .gitea/workflows/release.yml
All checks were successful
Security / snyk (push) Successful in 2m18s
Security / sonarqube (push) Successful in 2m48s
2025-05-07 00:37:54 +02:00
7cdc748425 Update .gitea/workflows/release.yml
All checks were successful
Security / snyk (push) Successful in 2m8s
Security / sonarqube (push) Successful in 2m40s
2025-05-07 00:29:11 +02:00
b575cd92a2 Update .gitea/workflows/release.yml
All checks were successful
Security / sonarqube (push) Successful in 5m11s
Security / snyk (push) Successful in 6m58s
2025-05-07 00:15:16 +02:00
a9795bb51d Update .gitea/workflows/release.yml
All checks were successful
Security / snyk (push) Successful in 2m9s
Security / sonarqube (push) Successful in 2m45s
2025-05-06 23:33:57 +02:00
01f87d2815 Update .gitea/workflows/release.yml
All checks were successful
Security / snyk (push) Successful in 51s
Security / sonarqube (push) Successful in 2m34s
2025-05-06 23:15:02 +02:00
7b48dfd429 chore(deps): update sonarsource/sonarqube-scan-action action to v5.2.0 (#333)
Some checks failed
Security / sonarqube (push) Has been cancelled
Security / snyk (push) Has been cancelled
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [SonarSource/sonarqube-scan-action](https://github.com/SonarSource/sonarqube-scan-action) | action | minor | `v5.1.0` -> `v5.2.0` |

---

### Release Notes

<details>
<summary>SonarSource/sonarqube-scan-action (SonarSource/sonarqube-scan-action)</summary>

### [`v5.2.0`](https://github.com/SonarSource/sonarqube-scan-action/releases/tag/v5.2.0)

[Compare Source](https://github.com/SonarSource/sonarqube-scan-action/compare/v5.1.0...v5.2.0)

##### What's Changed

-   SQSCANGHA-90 remove mend dead conf by [@&#8203;pierre-guillot-gh](https://github.com/pierre-guillot-gh) in https://github.com/SonarSource/sonarqube-scan-action/pull/184
-   SQSCANGHA-89 Attempt to fix command injection by [@&#8203;henryju](https://github.com/henryju) in https://github.com/SonarSource/sonarqube-scan-action/pull/186
-   SQSCANGHA-93 Fix madhead/semver-utils' version by [@&#8203;csaba-feher-sonarsource](https://github.com/csaba-feher-sonarsource) in https://github.com/SonarSource/sonarqube-scan-action/pull/187
-   SQSCANGHA-94 Update version update logic by [@&#8203;csaba-feher-sonarsource](https://github.com/csaba-feher-sonarsource) in https://github.com/SonarSource/sonarqube-scan-action/pull/188
-   SQSCANGHA-92 Validate scanner version by [@&#8203;csaba-feher-sonarsource](https://github.com/csaba-feher-sonarsource) in https://github.com/SonarSource/sonarqube-scan-action/pull/189

**Full Changelog**: https://github.com/SonarSource/sonarqube-scan-action/compare/v5...v5.2.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MC4wLjkiLCJ1cGRhdGVkSW5WZXIiOiI0MC4wLjkiLCJ0YXJnZXRCcmFuY2giOiJtYWluIiwibGFiZWxzIjpbInR5cGUvZGVwZW5kZW5jaWVzIl19-->

Reviewed-on: #333
Co-authored-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
Co-committed-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
2025-05-06 23:13:20 +02:00
a9f1b0a7bf fix(deps): update dependency certifi to v2025.4.26 (#331)
Some checks failed
Release / Create Release (push) Has been skipped
Release / Print Release (push) Has been skipped
Release / Build Wheel File (push) Has been skipped
Release / Publish to PyPI (push) Has been skipped
Release / Publish Docker Images (push) Has been skipped
Release / Test (push) Failing after 1s
Security / sonarqube (push) Successful in 7m22s
Security / snyk (push) Successful in 9m22s
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [certifi](https://github.com/certifi/python-certifi) | project.dependencies | minor | `==2025.1.31` -> `==2025.4.26` |

---

### Release Notes

<details>
<summary>certifi/python-certifi (certifi)</summary>

### [`v2025.4.26`](https://github.com/certifi/python-certifi/compare/2025.01.31...2025.04.26)

[Compare Source](https://github.com/certifi/python-certifi/compare/2025.01.31...2025.04.26)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yNTYuMSIsInVwZGF0ZWRJblZlciI6IjM5LjI1Ni4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->

Reviewed-on: #331
Co-authored-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
Co-committed-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
2025-04-26 14:55:27 +02:00
b4c529ed91 fix(deps): update dependency mypy-extensions to v1.1.0 (#330)
All checks were successful
Security / snyk (push) Successful in 1m6s
Security / sonarqube (push) Successful in 1m16s
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [mypy-extensions](https://github.com/python/mypy_extensions) | project.dependencies | minor | `==1.0.0` -> `==1.1.0` |

---

### Release Notes

<details>
<summary>python/mypy_extensions (mypy-extensions)</summary>

### [`v1.1.0`](https://github.com/python/mypy_extensions/compare/1.0.0...1.1.0)

[Compare Source](https://github.com/python/mypy_extensions/compare/1.0.0...1.1.0)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzOS4yNTMuNSIsInVwZGF0ZWRJblZlciI6IjM5LjI1My41IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJ0eXBlL2RlcGVuZGVuY2llcyJdfQ==-->

Reviewed-on: #330
Co-authored-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
Co-committed-by: Renovate [BOT] <renovate-bot@git.tainton.uk>
2025-04-26 11:36:29 +02:00
5 changed files with 72 additions and 53 deletions

View File

@ -56,7 +56,7 @@ jobs:
run: uv cache prune --ci
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v5.1.0
uses: SonarSource/sonarqube-scan-action@v5.2.0
env:
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST_URL }}
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}

View File

@ -5,57 +5,66 @@ on:
- cron: "0 9 * * 0"
jobs:
test:
name: Test
uses: https://git.tainton.uk/repos/pypilot/.gitea/workflows/ci.yml@main
# test:
# name: Test
# uses: https://git.tainton.uk/repos/pypilot/.gitea/workflows/ci.yml@main
tag:
name: Tag release
uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/release-with-tag.yaml@main
create_release:
name: Create Release
needs: test
uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/create-release.yml@main
needs: tag
uses: https://git.tainton.uk/actions/gha-workflows/.gitea/workflows/create-release-preexisting-tag.yaml@main
with:
tag: ${{ needs.tag.outputs.tag_name }}
body: ${{ needs.tag.outputs.changelog }}
secrets:
ACTIONS_TOKEN: ${{ secrets.ACTIONS_TOKEN }}
print_release:
name: Print Release
get_release_id:
name: Get Release ID
runs-on: ubuntu-latest
needs: create_release
needs: [tag, create_release]
outputs:
releaseid: ${{ steps.getid.outputs.releaseid }}
steps:
- run: echo "Created release ${{ needs.create_release.outputs.release_name }}."
- name: Get Release ID
id: getid
run: |
rid=$(curl -s -X 'GET' \
-H 'accept: application/json'
'${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases/latest' | jq -r '.[].id')
-H 'accept: application/json' \
'${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases/latest' | jq -r '.id')
echo "releaseid=$rid" >> "$GITEA_OUTPUT"
echo "$rid"
build_whl:
name: Build Wheel File
needs: [create_release, print_release]
needs: [tag, get_release_id]
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v4.2.2
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Setup Poetry
uses: abatilo/actions-poetry@v4
ref: ${{ needs.tag.outputs.tag_name }}
# - name: Setup Python
# uses: actions/setup-python@v5
# with:
# python-version: "3.13"
- name: Install uv
uses: astral-sh/setup-uv@v5
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python
run: uv python install
- name: Update pyproject.toml
run: ./tools/update_pyproject.sh ${{ needs.create_release.outputs.release_name }}
run: ./tools/update_pyproject.sh ${{ needs.tag.outputs.tag_name }}
- name: Install dependencies
run: poetry install
run: uv sync
- name: Build wheel file
run: poetry build
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: whl
path: dist/
run: uv build
- name: Upload Release Asset
run: |
for file in dist/*.whl; do
@ -63,31 +72,41 @@ jobs:
-H "Authorization: token ${{ secrets.ACTIONS_TOKEN }}" \
-H "Content-Type: multipart/form-data" \
-F "attachment=@${{ gitea.workspace }}/$file" \
"${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases/${{ needs.print_release.outputs.releaseid }}"
"${{ gitea.server_url }}/api/v1/repos/${{ gitea.repository }}/releases/${{ needs.get_release_id.outputs.releaseid }}/assets"
done
publish_pypi:
name: Publish to PyPI
needs: build_whl
runs-on: ubuntu-latest
steps:
- name: Create dist folder
run: mkdir -p dist
- uses: actions/download-artifact@v4
with:
name: whl
path: dist
- name: Publish to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
with:
# user: ${{ vars.PYPI_USERNAME }}
user: __token__
password: ${{ secrets.PYPI_API_TOKEN }}
run: uv publish
env:
UV_PUBLISH_TOKEN: ${{ secrets.PYPI_API_TOKEN }}
# - name: Publish to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# # user: ${{ vars.PYPI_USERNAME }}
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
# publish_pypi:
# name: Publish to PyPI
# needs: build_whl
# runs-on: ubuntu-latest
# steps:
# - name: Create dist folder
# run: mkdir -p dist
# - uses: actions/download-artifact@v4
# with:
# name: whl
# path: dist
# - name: Publish to PyPI
# uses: pypa/gh-action-pypi-publish@release/v1
# with:
# # user: ${{ vars.PYPI_USERNAME }}
# user: __token__
# password: ${{ secrets.PYPI_API_TOKEN }}
create_docker:
name: Publish Docker Images
runs-on: ubuntu-latest
needs: create_release
needs: tag
steps:
- name: Update Docker configuration
continue-on-error: true
@ -109,7 +128,7 @@ jobs:
uses: actions/checkout@v4.2.2
with:
fetch-depth: 0
ref: ${{ needs.create_release.outputs.release_name }}
ref: ${{ needs.tag.outputs.tag_name }}
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
@ -132,7 +151,7 @@ jobs:
id: meta
uses: docker/metadata-action@v5
with:
tags: type=semver,pattern=v{{version}},value=${{ needs.create_release.outputs.release_name }}
tags: type=semver,pattern=v{{version}},value=${{ needs.tag.outputs.tag_name }}
images: |
ghcr.io/${{ vars.GHCR_USERNAME }}/${{ steps.split.outputs.repo }}
${{ vars.PACKAGES_REGISTRY_URL }}/${{ gitea.repository }}

View File

@ -16,7 +16,7 @@ jobs:
uses: actions/checkout@v4.2.2
- name: SonarQube Scan
uses: SonarSource/sonarqube-scan-action@v5.1.0
uses: SonarSource/sonarqube-scan-action@v5.2.0
env:
SONAR_HOST_URL: ${{ secrets.SONARQUBE_HOST_URL }}
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}

View File

@ -19,7 +19,7 @@ dependencies = [
"iniconfig==2.1.0",
"lazy-object-proxy==1.11.0",
"mccabe==0.7.0",
"mypy-extensions==1.0.0",
"mypy-extensions==1.1.0",
"packaging==25.0",
"pathspec==0.12.1",
"platformdirs==4.3.7",

8
uv.lock generated
View File

@ -271,7 +271,7 @@ requires-dist = [
{ name = "iniconfig", specifier = "==2.1.0" },
{ name = "lazy-object-proxy", specifier = "==1.11.0" },
{ name = "mccabe", specifier = "==0.7.0" },
{ name = "mypy-extensions", specifier = "==1.0.0" },
{ name = "mypy-extensions", specifier = "==1.1.0" },
{ name = "packaging", specifier = "==25.0" },
{ name = "pathspec", specifier = "==0.12.1" },
{ name = "platformdirs", specifier = "==4.3.7" },
@ -334,11 +334,11 @@ wheels = [
[[package]]
name = "mypy-extensions"
version = "1.0.0"
version = "1.1.0"
source = { registry = "https://pypi.org/simple" }
sdist = { url = "https://files.pythonhosted.org/packages/98/a4/1ab47638b92648243faf97a5aeb6ea83059cc3624972ab6b8d2316078d3f/mypy_extensions-1.0.0.tar.gz", hash = "sha256:75dbf8955dc00442a438fc4d0666508a9a97b6bd41aa2f0ffe9d2f2725af0782", size = 4433, upload_time = "2023-02-04T12:11:27.157Z" }
sdist = { url = "https://files.pythonhosted.org/packages/a2/6e/371856a3fb9d31ca8dac321cda606860fa4548858c0cc45d9d1d4ca2628b/mypy_extensions-1.1.0.tar.gz", hash = "sha256:52e68efc3284861e772bbcd66823fde5ae21fd2fdb51c62a211403730b916558", size = 6343, upload_time = "2025-04-22T14:54:24.164Z" }
wheels = [
{ url = "https://files.pythonhosted.org/packages/2a/e2/5d3f6ada4297caebe1a2add3b126fe800c96f56dbe5d1988a2cbe0b267aa/mypy_extensions-1.0.0-py3-none-any.whl", hash = "sha256:4392f6c0eb8a5668a69e23d168ffa70f0be9ccfd32b5cc2d26a34ae5b844552d", size = 4695, upload_time = "2023-02-04T12:11:25.002Z" },
{ url = "https://files.pythonhosted.org/packages/79/7b/2c79738432f5c924bef5071f933bcc9efd0473bac3b4aa584a6f7c1c8df8/mypy_extensions-1.1.0-py3-none-any.whl", hash = "sha256:1be4cccdb0f2482337c4743e60421de3a356cd97508abadd57d47403e94f5505", size = 4963, upload_time = "2025-04-22T14:54:22.983Z" },
]
[[package]]