Skip to content

Commit bd54517

Browse files
committed
Bump supported and testes Python versions
1 parent d5d2d74 commit bd54517

13 files changed

+31
-41
lines changed

.codecov.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@ coverage:
99
default:
1010
target: 90%
1111

12-
comment: off
12+
comment: false

.github/workflows/build.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,14 @@ jobs:
1111

1212
steps:
1313
- uses: actions/checkout@v3
14+
1415
- name: Set up Python
1516
uses: actions/setup-python@v4
1617
with:
17-
python-version: "3.10"
18-
- run: pip install tox
18+
python-version: "3.12"
19+
20+
- name: install tests dependencies
21+
run: python -m pip install tox
1922

2023
- name: Test build integrity
2124
run: tox -e build

.github/workflows/docs.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,14 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
15+
1516
- name: setup Python
1617
uses: actions/setup-python@v4
1718
with:
18-
python-version: "3.10"
19-
- name: install dependencies
20-
run: |
21-
python -m pip install tox
19+
python-version: "3.12"
20+
21+
- name: install tests dependencies
22+
run: python -m pip install tox
23+
2224
- name: build documentation
2325
run: tox -e docs

.github/workflows/lint.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,14 @@ jobs:
1010

1111
steps:
1212
- uses: actions/checkout@v3
13+
1314
- name: Set up Python
1415
uses: actions/setup-python@v4
1516
with:
16-
python-version: "3.10"
17-
- run: pip install tox
17+
python-version: "3.12"
18+
19+
- name: install tests dependencies
20+
run: python -m pip install tox
1821

1922
- name: Lint the code
2023
run: tox -e lint

.github/workflows/tests.yml

Lines changed: 5 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -11,19 +11,8 @@ jobs:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:
14-
include:
15-
- os: ubuntu-22.04
16-
python-version: "3.8"
17-
- os: ubuntu-22.04
18-
python-version: "3.11"
19-
- os: macos-11
20-
python-version: "3.8"
21-
- os: macos-11
22-
python-version: "3.11"
23-
- os: windows-2019
24-
python-version: "3.8"
25-
- os: windows-2019
26-
python-version: "3.11"
14+
os: [ubuntu-22.04, macos-14, windows-2022]
15+
python-version: ["3.9", "3.12"]
2716

2817
steps:
2918
- uses: actions/checkout@v3
@@ -32,7 +21,9 @@ jobs:
3221
uses: actions/setup-python@v4
3322
with:
3423
python-version: ${{ matrix.python-version }}
35-
- run: pip install tox
24+
25+
- name: install tests dependencies
26+
run: python -m pip install tox
3627

3728
- name: run Python tests
3829
run: tox -e tests

.readthedocs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ version: 2
99
build:
1010
os: ubuntu-22.04
1111
tools:
12-
python: "3.10"
12+
python: "3.12"
1313

1414
# Build documentation in the docs/ directory with Sphinx
1515
sphinx:

CHANGELOG

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ The rules for CHANGELOG file:
1313

1414
0.3.0 (XXXX/XX/XX)
1515
------------------
16+
- Supported Python versions are now ranging from 3.9 - 3.12.
1617

1718
0.2.0 (2023/08/24)
1819
------------------
19-
2020
- Add this ``CHANGELOG`` file (#198)
2121
- Update example of WHO feature selection (#212)
2222
- Rename ``RidgeRegression2FoldCV`` -> ``Ridge2FoldCV`` (#211)
@@ -40,14 +40,12 @@ The rules for CHANGELOG file:
4040

4141
0.1.4 (2023/03/14)
4242
------------------
43-
4443
- documentation formatting fixes for math and datasets (#161, #163)
4544
- changing the way the distance to the convex hull is computed in the
4645
``DirectionalConvexHull`` due to numerical issues with the old method (#165)
4746

4847
0.1.3 (2023/03/02)
4948
------------------
50-
5149
- Refactor ``scikit-cosmo`` to ``scikit-matter`` (#157, #151)
5250
- Deprecation warning was added to link to renamed package (#154)
5351
- dropped Python `<3.8` support, because we are now using ``scikit-learn`` version
@@ -62,7 +60,6 @@ The rules for CHANGELOG file:
6260

6361
0.1.2 (2022/07/04)
6462
------------------
65-
6663
- fixed a bug in the orthonormalization step of ``PCov-CUR`` (#118)
6764
- users can now initialize ``FPS`` selecting using a list of selected points, allowing
6865
to restart the selection in the middle (#116)
@@ -71,15 +68,13 @@ The rules for CHANGELOG file:
7168

7269
0.1.1 (2021/11/30)
7370
------------------
74-
7571
- fixed a bug in the ``orthonormalization`` step of ``PCov-CUR`` (#118)
7672
- users can now initialize ``FPS`` selecting using a list of selected points, allowing to
7773
restart the selection in the middle (#116)
7874
- KPCovR is now able to use pre-fitted regressor in the same way that ``PCovR`` can (#113)
7975

8076
0.1.0 (2021/05/12)
8177
------------------
82-
8378
- first release out of the lab
8479

8580
.. inclusion-marker-changelog-end

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ authors = [
1919
{name = "Michele Ceriotti"}
2020
]
2121
readme = "README.rst"
22-
requires-python = ">=3.8"
22+
requires-python = ">=3.9"
2323
license = {text = "BSD-3-Clause"}
2424
classifiers = [
2525
"Development Status :: 4 - Beta",
@@ -31,10 +31,10 @@ classifiers = [
3131
"Operating System :: MacOS :: MacOS X",
3232
"Operating System :: Microsoft :: Windows",
3333
"Programming Language :: Python :: 3",
34-
"Programming Language :: Python :: 3.8",
3534
"Programming Language :: Python :: 3.9",
3635
"Programming Language :: Python :: 3.10",
3736
"Programming Language :: Python :: 3.11",
37+
"Programming Language :: Python :: 3.12",
3838
"Topic :: Scientific/Engineering",
3939
]
4040
dependencies = [

tests/test_pcovr.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ def test_centering(self):
396396
X = self.X.copy() + np.random.uniform(-1, 1, self.X.shape[1])
397397
with warnings.catch_warnings(record=True) as w:
398398
pcovr.fit(X, self.Y)
399-
self.assertEquals(
399+
self.assertEqual(
400400
str(w[0].message),
401401
"This class does not automatically center data, and your data mean is"
402402
" greater than the supplied tolerance.",

tests/test_sample_pcov_fps.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def test_no_mixing_1(self):
3131

3232
with self.assertRaises(ValueError) as cm:
3333
_ = PCovFPS(n_to_select=1, mixing=1.0)
34-
self.assertEquals(
34+
self.assertEqual(
3535
str(cm.exception),
3636
"Mixing = 1.0 corresponds to traditional FPS." "Please use the FPS class.",
3737
)

0 commit comments

Comments
 (0)