Skip to content

Commit 39bc060

Browse files
authored
Merge pull request #536 from MaxGhenis/upgrade-python-3.14
Add Python 3.14 support, drop 3.10
2 parents 708143d + 4af7d1a commit 39bc060

5 files changed

Lines changed: 30 additions & 22 deletions

File tree

.github/workflows/pr.yaml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jobs:
66
Lint:
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@v4
1010
- name: Check formatting
1111
uses: "lgeiger/black-action@master"
1212
with:
@@ -30,20 +30,22 @@ jobs:
3030
strategy:
3131
matrix:
3232
os: [ubuntu-latest, windows-latest]
33+
python-version: ["3.14"]
3334
steps:
3435
- name: Checkout repo
35-
uses: actions/checkout@v3
36+
uses: actions/checkout@v4
3637
- name: Set up Python
37-
uses: actions/setup-python@v4
38+
uses: actions/setup-python@v5
3839
with:
39-
python-version: 3.13
40+
python-version: ${{ matrix.python-version }}
41+
allow-prereleases: true
4042
- name: Install build dependencies
4143
run: pip install wheel setuptools
4244
- name: Install package
4345
run: make install
4446
- name: Run tests
4547
run: make test
46-
- uses: codecov/codecov-action@v3
48+
- uses: codecov/codecov-action@v4
4749
- name: Build package
4850
run: make build
4951
- name: Test documentation builds

.github/workflows/push.yaml

Lines changed: 19 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
(github.repository == 'PolicyEngine/policyengine-canada')
1010
&& (github.event.head_commit.message == 'Update PolicyEngine Canada')
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
- name: Check formatting
1414
uses: "lgeiger/black-action@master"
1515
with:
@@ -22,12 +22,13 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout repo
25-
uses: actions/checkout@v3
25+
uses: actions/checkout@v4
2626
with: token: ${{ secrets.POLICYENGINE_GITHUB }}
2727
- name: Setup Python
28-
uses: actions/setup-python@v4
28+
uses: actions/setup-python@v5
2929
with:
30-
python-version: 3.13
30+
python-version: "3.14"
31+
allow-prereleases: true
3132
- name: Build changelog
3233
run: |
3334
pip install towncrier
@@ -52,16 +53,17 @@ jobs:
5253
os: [ubuntu-latest, windows-latest]
5354
steps:
5455
- name: Checkout repo
55-
uses: actions/checkout@v3
56+
uses: actions/checkout@v4
5657
- name: Set up Python
57-
uses: actions/setup-python@v4
58+
uses: actions/setup-python@v5
5859
with:
59-
python-version: 3.13
60+
python-version: "3.14"
61+
allow-prereleases: true
6062
- name: Install package
6163
run: make install
6264
- name: Run tests
6365
run: make test
64-
- uses: codecov/codecov-action@v3
66+
- uses: codecov/codecov-action@v4
6567
- name: Generate documentation
6668
run: make documentation
6769
- name: Deploy documentation
@@ -78,11 +80,12 @@ jobs:
7880
&& (github.event.head_commit.message == 'Update PolicyEngine Canada')
7981
steps:
8082
- name: Checkout repo
81-
uses: actions/checkout@v3
83+
uses: actions/checkout@v4
8284
- name: Setup Python
83-
uses: actions/setup-python@v4
85+
uses: actions/setup-python@v5
8486
with:
85-
python-version: 3.13
87+
python-version: "3.14"
88+
allow-prereleases: true
8689
- name: Publish a git tag
8790
run: ".github/publish-git-tag.sh || true"
8891
- name: Install build dependencies
@@ -106,17 +109,18 @@ jobs:
106109
GH_TOKEN: ${{ secrets.POLICYENGINE_GITHUB }}
107110
steps:
108111
- name: Checkout repo
109-
uses: actions/checkout@v2
112+
uses: actions/checkout@v4
110113
with: token: ${{ secrets.POLICYENGINE_GITHUB }}
111114
- name: Setup Python
112-
uses: actions/setup-python@v2
115+
uses: actions/setup-python@v5
113116
with:
114-
python-version: 3.12
117+
python-version: "3.14"
118+
allow-prereleases: true
115119
- name: Install Wheel and Pytest
116120
run: pip3 install wheel setuptools pytest==5.4.3
117121
- name: Install package
118122
run: make install
119123
- name: Update API
120124
run: python .github/update_api.py
121125
env:
122-
GITHUB_TOKEN: ${{ secrets.POLICYENGINE_GITHUB }}
126+
GITHUB_TOKEN: ${{ secrets.POLICYENGINE_GITHUB }}

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.14
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add Python 3.14 support, drop Python 3.10.

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ readme = "README.md"
66
authors = [
77
{ name = "PolicyEngine", email = "hello@policyengine.org" }
88
]
9-
requires-python = ">=3.10"
9+
requires-python = ">=3.11"
1010
classifiers = [
1111
"Development Status :: 5 - Production/Stable",
1212
"License :: OSI Approved :: GNU Affero General Public License v3",
1313
"Operating System :: POSIX",
1414
"Programming Language :: Python",
15-
"Programming Language :: Python :: 3.10",
1615
"Programming Language :: Python :: 3.11",
1716
"Programming Language :: Python :: 3.12",
1817
"Programming Language :: Python :: 3.13",
18+
"Programming Language :: Python :: 3.14",
1919
"Topic :: Scientific/Engineering :: Information Analysis",
2020
]
2121
dependencies = [

0 commit comments

Comments
 (0)