Skip to content

Commit

Permalink
Add explicit support for Python 3.12 (#28)
Browse files Browse the repository at this point in the history
* Add explicit support for Python 3.12

* Drop support for Python 3.8. Note NumPy versions that support Python 3.12 don't support Python 3.8.
  • Loading branch information
bryant1410 authored Oct 4, 2023
1 parent eb5aa2e commit 0331e95
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,14 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, '3.10', '3.11']
python-version: [3.9, '3.10', '3.11', '3.12']
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install the latest Pip and Wheel
run: pip install --upgrade pip wheel
- name: Set up Poetry
uses: abatilo/actions-poetry@v2
- name: Check package setup
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ build
dist

# codespaces:
pythonenv3.8
pythonenv3.9

poetry.lock
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ classifiers = [
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"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",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]

[tool.poetry.dependencies]
python = "^3.8"
python = "^3.9,<3.13" # Specify an upper limit, otherwise newer NumPy versions can't be installed.
numpy = "^1.21" # For NumPy Typing.

[tool.poetry.group.test]
Expand Down

0 comments on commit 0331e95

Please sign in to comment.