Skip to content

Commit

Permalink
Update Python version range
Browse files Browse the repository at this point in the history
* Drop support for Python 3.7
* Declare support for Python 3.11 and 3.12
* Remove Windows CI build exclusion (fingers crossed!)
  • Loading branch information
ctrueden committed Aug 12, 2024
1 parent 7437bb9 commit d4f3f82
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 14 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.7", "3.10"]
# Breaks due to https://github.com/jpype-project/jpype/issues/1009
# Should be included once the fix is released
exclude:
- os: windows-latest
python-version: "3.10"
include:
- os: windows-latest
python-version: "3.9"
python-version: ["3.8", "3.12"]

steps:
- uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion dev-environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: imglyb-dev
channels:
- conda-forge
dependencies:
- python >= 3.7
- python >= 3.8
# Project dependencies
- jpype1
- numpy
Expand Down
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ name: imglyb
channels:
- conda-forge
dependencies:
- python >= 3.7
- python >= 3.8
# Project dependencies
- jpype1
- numpy
Expand Down
5 changes: 3 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,11 @@ classifiers = [
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3 :: Only",
"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",
"License :: OSI Approved :: BSD License",
"Operating System :: Microsoft :: Windows",
"Operating System :: Unix",
Expand All @@ -39,7 +40,7 @@ classifiers = [
]

# NB: Keep this in sync with environment.yml AND dev-environment.yml!
requires-python = ">=3.7"
requires-python = ">=3.8"
dependencies = [
"numpy",
"jpype1 >= 1.3.0",
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
max-line-length = 88
extend-ignore = E203
# Unfortunately, flake8 doesn't pick up on our declaration in pyproject.toml
min_python_version = 3.7.0
min_python_version = 3.8.0

0 comments on commit d4f3f82

Please sign in to comment.