Skip to content

Commit 1bf112d

Browse files
committed
Discontinue Python 3.9 support.
1 parent d0221d9 commit 1bf112d

File tree

4 files changed

+17
-10
lines changed

4 files changed

+17
-10
lines changed

.github/workflows/build-and-run-tests.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
build:
88
strategy:
99
matrix:
10-
python-version: ["3.9", "3.10", "3.11", "3.12"]
10+
python-version: ["3.10", "3.11", "3.12"]
1111
os: [ubuntu-latest, windows-latest, macos-latest]
1212
runs-on: ${{ matrix.os }}
1313
steps:
@@ -21,10 +21,14 @@ jobs:
2121
cache-dependency-path: "**/pyproject.toml"
2222
- name: Install HDF5 (macOS only)
2323
if: runner.os == 'macOS'
24-
run: brew install hdf5
24+
run: |
25+
brew install hdf5
26+
brew install c-blosc2
2527
- name: Set HDF5_DIR environment variable (macOS only)
2628
if: runner.os == 'macOS'
27-
run: echo "HDF5_DIR=$(brew --prefix hdf5)" >> $GITHUB_ENV
29+
run: |
30+
echo "HDF5_DIR=$(brew --prefix hdf5)" >> $GITHUB_ENV
31+
echo "BLOSC2_DIR=$(brew --prefix c-blosc2)" >> $GITHUB_ENV
2832
- name: Install dependencies
2933
run: |
3034
python -m pip install --upgrade pip

.github/workflows/run-examples.yml

+7-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
build:
88
strategy:
99
matrix:
10-
python-version: ["3.9", "3.10", "3.11", "3.12"]
10+
python-version: ["3.10", "3.11", "3.12"]
1111
os: [ubuntu-latest, windows-latest, macos-latest]
1212
runs-on: ${{ matrix.os }}
1313
steps:
@@ -21,10 +21,14 @@ jobs:
2121
cache-dependency-path: "**/pyproject.toml"
2222
- name: Install HDF5 (macOS only)
2323
if: runner.os == 'macOS'
24-
run: brew install hdf5
24+
run: |
25+
brew install hdf5
26+
brew install c-blosc2
2527
- name: Set HDF5_DIR environment variable (macOS only)
2628
if: runner.os == 'macOS'
27-
run: echo "HDF5_DIR=$(brew --prefix hdf5)" >> $GITHUB_ENV
29+
run: |
30+
echo "HDF5_DIR=$(brew --prefix hdf5)" >> $GITHUB_ENV
31+
echo "BLOSC2_DIR=$(brew --prefix c-blosc2)" >> $GITHUB_ENV
2832
- name: Install dependencies
2933
run: |
3034
python -m pip install --upgrade pip setuptools wheel

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ PyRIID is a Python package providing modeling and data synthesis utilities for m
1111

1212
Requirements:
1313

14-
- Python version: 3.9 to 3.12
14+
- Python version: 3.10 to 3.12
1515
- Note: we recommended the highest Python version you can manage as anecdotally, we have noticed that everything just tends to get faster.
1616
- Operating systems: Windows, Mac, or Ubuntu
1717

pyproject.toml

+2-3
Original file line numberDiff line numberDiff line change
@@ -43,22 +43,21 @@ classifiers = [
4343
'Topic :: Software Development :: Libraries :: Python Modules',
4444
'Programming Language :: Python',
4545
'Programming Language :: Python :: 3',
46-
'Programming Language :: Python :: 3.9',
4746
'Programming Language :: Python :: 3.10',
4847
'Programming Language :: Python :: 3.11',
4948
'Programming Language :: Python :: 3.12',
5049
]
5150
keywords = ["pyriid", "riid", "machine learning", "radioisotope identification", "gamma spectrum"]
5251

53-
requires-python = ">=3.9,<3.13"
52+
requires-python = ">=3.10,<3.13"
5453
dependencies = [
5554
"jsonschema ==4.23.*", # 3.8 - 3.13
5655
"matplotlib ==3.9.*", # 3.9 - 3.12
5756
"numpy ==1.26.*", # 3.9 - 3.12, also to be limited by onnx 1.16.2
5857
"pandas ==2.2.*", # >= 3.9
5958
"pythonnet ==3.0.3; platform_system == 'Windows'", # 3.7 - 3.12
6059
"pyyaml ==6.0.*", # >= 3.6
61-
"tables ==3.9.*", # >= 3.9
60+
"tables ==3.10.*", # >= 3.9
6261
"scikit-learn ==1.5.*", # 3.9 - 3.12
6362
"scipy ==1.13.*", # >= 3.10
6463
"seaborn ==0.13.*", # >= 3.8

0 commit comments

Comments
 (0)