Skip to content

Commit bc15f51

Browse files
authored
Bump min Python to 3.10 (#531)
* Bump min Python to 3.10 * Bump readthedocs Python * Clean up entrypoints code for Python 3.10+ * Trigger Build
1 parent 7b2ce5e commit bc15f51

File tree

8 files changed

+14
-14
lines changed

8 files changed

+14
-14
lines changed

.github/workflows/ci-linux.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.10", "3.11", "3.12"]
1616

1717
steps:
1818
- name: Checkout source

.github/workflows/ci-osx.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.10", "3.11", "3.12"]
1616

1717
steps:
1818
- name: Checkout source

.github/workflows/ci-windows.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15-
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.10", "3.11", "3.12"]
1616

1717
steps:
1818
- name: Checkout source

.github/workflows/wheel.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ jobs:
1616
os: [ubuntu-latest, windows-latest, macos-12]
1717
env:
1818
CIBW_TEST_COMMAND: python -c "import numcodecs"
19-
CIBW_SKIP: "pp* cp36-* *-musllinux_* *win32 *_i686 *_s390x"
19+
CIBW_BUILD: "cp310-* cp311-* cp312-*"
20+
CIBW_SKIP: "pp* *-musllinux_* *win32 *_i686 *_s390x"
2021
CIBW_ARCHS_MACOS: 'x86_64 arm64'
2122
CIBW_TEST_SKIP: '*-macosx_arm64'
2223
# note: CIBW_ENVIRONMENT is now set in pyproject.toml
@@ -44,7 +45,7 @@ jobs:
4445
- uses: actions/setup-python@v5
4546
name: Install Python
4647
with:
47-
python-version: '3.9'
48+
python-version: '3.10'
4849

4950
- name: Build sdist
5051
run: pipx run build --sdist

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ submodules:
66
build:
77
os: ubuntu-20.04
88
tools:
9-
python: "3.9"
9+
python: "3.12"
1010

1111
sphinx:
1212
configuration: docs/conf.py

docs/release.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ Release notes
1111
Unreleased
1212
----------
1313

14+
Maintenance
15+
~~~~~~~~~~~
16+
* The minimum supported Python version is now Python 3.10.
17+
1418
Enhancements
1519
~~~~~~~~~~~~
1620

@@ -24,7 +28,7 @@ Fix
2428

2529
* Fix skip of entry points backport tests
2630
By :user:`Elliott Sales de Andrade <QuLogic>`, :issue:`487`.
27-
* Fix Upgrade to Zstd 1.5.5 due to potential corruption.
31+
* Fix Upgrade to Zstd 1.5.5 due to potential corruption.
2832
By :user:`Mark Kittisopikul <mkitti>`, :issue:`429`
2933

3034
Maintenance

numcodecs/registry.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,7 @@
1111
def run_entrypoints():
1212
entries.clear()
1313
eps = entry_points()
14-
if hasattr(eps, 'select'):
15-
# If entry_points() has a select method, use that. Python 3.10+
16-
entries.update({e.name: e for e in eps.select(group="numcodecs.codecs")})
17-
else:
18-
# Otherwise, fallback to using get
19-
entries.update({e.name: e for e in eps.get("numcodecs.codecs", [])})
14+
entries.update({e.name: e for e in eps.select(group="numcodecs.codecs")})
2015

2116

2217
run_entrypoints()

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ readme = "README.rst"
1616
dependencies = [
1717
"numpy>=1.7,<2",
1818
]
19-
requires-python = ">=3.8"
19+
requires-python = ">=3.10"
2020
dynamic = [
2121
"version",
2222
]

0 commit comments

Comments
 (0)