Skip to content

Commit

Permalink
Added support for Python 3.12; updated required NumPy version (#219)
Browse files Browse the repository at this point in the history
* Added support for Python 3.12; updated required NumPy version

* Removed Python 3.7 and 3.8 support, and expanded acceptable NumPy versions

* Fixed NumPy version requirement to prevent accidental use of version 2

---------

Co-authored-by: = <=>
  • Loading branch information
pmberg committed Jun 26, 2024
1 parent 4f2b1a6 commit b97c95a
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.12"
- name: Build changelog
run: pip install yaml-changelog>=0.1.7 && make changelog
- name: Preview changelog update
Expand All @@ -41,7 +41,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.12"
- name: Install package
run: make install
- name: Run tests
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/push.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.12"
- name: Build changelog
run: pip install yaml-changelog && make changelog
- name: Preview changelog update
Expand All @@ -56,7 +56,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.12"
- name: Install package
run: make install
- name: Run tests
Expand All @@ -69,8 +69,8 @@ jobs:
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/_build/html # The folder the action should deploy.
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: docs/_build/html # The folder the action should deploy.
Publish:
runs-on: ubuntu-latest
if: |
Expand All @@ -82,7 +82,7 @@ jobs:
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
python-version: "3.12"
- name: Publish a git tag
run: ".github/publish-git-tag.sh || true"
- name: Install package
Expand Down
4 changes: 4 additions & 0 deletions changelog_entry.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- bump: major
changes:
changed:
- Added support for Python 3.12
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

general_requirements = [
"pytest>=8,<9",
"numpy<1.25",
"numpy~=1.26.4",
"black",
"linecheck<1",
"yaml-changelog<1",
Expand Down Expand Up @@ -58,10 +58,10 @@
"License :: OSI Approved :: GNU Affero General Public License v3",
"Operating System :: POSIX",
"Programming Language :: Python",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Scientific/Engineering :: Information Analysis",
],
description="Core microsimulation engine enabling country-specific policy models.",
Expand All @@ -76,7 +76,7 @@
"policyengine-core=policyengine_core.scripts.policyengine_command:main",
],
},
python_requires=">=3.7",
python_requires=">=3.9",
extras_require={
"dev": dev_requirements,
},
Expand Down

0 comments on commit b97c95a

Please sign in to comment.