Skip to content

Commit ec1eb56

Browse files
joamagclaude
andcommitted
chore: update CI workflows for Python 3.13/3.14 and modernize build
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent dd3affd commit ec1eb56

4 files changed

Lines changed: 20 additions & 17 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ jobs:
88
name: Build
99
strategy:
1010
matrix:
11-
python-version: [2.7]
11+
python-version: ["3.14"]
1212
runs-on: ubuntu-latest
1313
container: python:${{ matrix.python-version }}
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v6
1616
- run: python --version
1717
- run: |
1818
pip install -r requirements.txt
@@ -26,9 +26,9 @@ jobs:
2626
- run: |
2727
pip install black
2828
black . --check
29-
if: matrix.python-version == '3.12'
30-
- run: pip install twine wheel
31-
- run: python setup.py sdist bdist_wheel
29+
if: matrix.python-version == '3.14'
30+
- run: pip install twine build
31+
- run: python -m build
3232
- run: python -m twine upload -u ${PYPI_USERNAME} -p ${PYPI_PASSWORD} dist/*
3333
env:
3434
PYPI_USERNAME: ${{ secrets.PYPI_USERNAME }}

.github/workflows/main.yml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
"3.10",
1616
"3.11",
1717
"3.12",
18+
"3.13",
19+
"3.14",
1820
latest,
1921
rc
2022
]
@@ -33,7 +35,7 @@ jobs:
3335
--add-host=host.docker.internal:host-gateway
3436
--volume /var/run/docker.sock:/var/run/docker.sock
3537
steps:
36-
- uses: actions/checkout@v4
38+
- uses: actions/checkout@v6
3739
- run: |
3840
apt-get update
3941
apt-get install -y docker.io
@@ -53,12 +55,12 @@ jobs:
5355
- run: |
5456
pip install black
5557
black . --check
56-
if: matrix.python-version == '3.12'
58+
if: matrix.python-version == '3.14'
5759
- run: |
5860
pip install pytest
5961
ADAPTER=${{ matrix.adapter }} pytest
6062
- run: ADAPTER=${{ matrix.adapter }} python setup.py test
61-
if: ${{ !contains(fromJson('["3.9", "3.10", "3.11", "3.12", "latest"]'), matrix.python-version) }}
63+
if: ${{ !contains(fromJson('["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "latest"]'), matrix.python-version) }}
6264
build-pypy:
6365
name: Build PyPy
6466
strategy:
@@ -79,7 +81,7 @@ jobs:
7981
--add-host=host.docker.internal:host-gateway
8082
--volume /var/run/docker.sock:/var/run/docker.sock
8183
steps:
82-
- uses: actions/checkout@v4
84+
- uses: actions/checkout@v6
8385
- run: |
8486
apt-get update
8587
apt-get install -y docker.io
@@ -99,9 +101,9 @@ jobs:
99101
- run: |
100102
pip install black
101103
black . --check
102-
if: matrix.python-version == '3.12'
104+
if: matrix.python-version == '3.14'
103105
- run: |
104106
pip install pytest
105107
ADAPTER=${{ matrix.adapter }} pytest
106108
- run: ADAPTER=${{ matrix.adapter }} python setup.py test
107-
if: ${{ !contains(fromJson('["3.9", "3.10", "3.11", "3.12", "latest"]'), matrix.python-version) }}
109+
if: ${{ !contains(fromJson('["3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "latest"]'), matrix.python-version) }}

CHANGELOG.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
99

1010
### Added
1111

12-
*
12+
* Support for Python 3.13 and 3.14 in CI
1313

1414
### Changed
1515

16-
*
16+
* Upgraded `actions/checkout` from v4 to v6 in CI workflows
17+
* Updated black check and setup.py test conditions to Python 3.14
18+
* Replaced `setup.py sdist bdist_wheel` with `python -m build` in deploy workflow
19+
* Replaced `twine wheel` dependency with `twine build` in deploy workflow
1720

1821
### Fixed
1922

src/budy/models/bundle_line.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -88,11 +88,9 @@ class BundleLine(base.BudyBase):
8888
longer be re-calculated as the line is now frozen""",
8989
)
9090

91-
attributes = appier.field(
92-
observations="""Additional metadata that define the given
91+
attributes = appier.field(observations="""Additional metadata that define the given
9392
(bundle) line, this is typically used to store a JSON serialized
94-
string with extra fields"""
95-
)
93+
string with extra fields""")
9694

9795
product = appier.field(
9896
type=appier.reference("Product", name="id"),

0 commit comments

Comments
 (0)