Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump min Python to 3.10 #531

Merged
merged 4 commits into from
Jun 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci-linux.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- name: Checkout source
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-osx.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- name: Checkout source
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/ci-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12"]

steps:
- name: Checkout source
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/wheel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ jobs:
os: [ubuntu-latest, windows-latest, macos-12]
env:
CIBW_TEST_COMMAND: python -c "import numcodecs"
CIBW_SKIP: "pp* cp36-* *-musllinux_* *win32 *_i686 *_s390x"
CIBW_BUILD: "cp310-* cp311-* cp312-*"
CIBW_SKIP: "pp* *-musllinux_* *win32 *_i686 *_s390x"
CIBW_ARCHS_MACOS: 'x86_64 arm64'
CIBW_TEST_SKIP: '*-macosx_arm64'
# note: CIBW_ENVIRONMENT is now set in pyproject.toml
Expand Down Expand Up @@ -44,7 +45,7 @@ jobs:
- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.9'
python-version: '3.10'

- name: Build sdist
run: pipx run build --sdist
Expand Down
2 changes: 1 addition & 1 deletion .readthedocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ submodules:
build:
os: ubuntu-20.04
tools:
python: "3.9"
python: "3.12"

sphinx:
configuration: docs/conf.py
Expand Down
6 changes: 5 additions & 1 deletion docs/release.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ Release notes
Unreleased
----------

Maintenance
~~~~~~~~~~~
* The minimum supported Python version is now Python 3.10.

Enhancements
~~~~~~~~~~~~

Expand All @@ -24,7 +28,7 @@ Fix

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

Maintenance
Expand Down
7 changes: 1 addition & 6 deletions numcodecs/registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,7 @@
def run_entrypoints():
entries.clear()
eps = entry_points()
if hasattr(eps, 'select'):
# If entry_points() has a select method, use that. Python 3.10+
entries.update({e.name: e for e in eps.select(group="numcodecs.codecs")})
else:
# Otherwise, fallback to using get
entries.update({e.name: e for e in eps.get("numcodecs.codecs", [])})
entries.update({e.name: e for e in eps.select(group="numcodecs.codecs")})


run_entrypoints()
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ readme = "README.rst"
dependencies = [
"numpy>=1.7,<2",
]
requires-python = ">=3.8"
requires-python = ">=3.10"
dynamic = [
"version",
]
Expand Down
Loading