Skip to content

Commit 1f4dd18

Browse files
authored
support Python 3.14 in CI matrix (#285)
* support Python 3.14 in CI matrix * remove fiona from dev deps
1 parent 74f1191 commit 1f4dd18

File tree

8 files changed

+72
-20
lines changed

8 files changed

+72
-20
lines changed

.github/workflows/build_docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
strategy:
2222
matrix:
2323
os: ['ubuntu-latest']
24-
environment-file: [ci/313-latest.yaml]
24+
environment-file: [ci/314-latest.yaml]
2525
experimental: [false]
2626
defaults:
2727
run:

.github/workflows/testing.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,22 @@ jobs:
2929
312-numba-latest,
3030
313-latest,
3131
313-numba-latest,
32-
313-dev,
32+
314-latest,
33+
314-numba-latest,
34+
314-dev,
3335
]
3436
include:
35-
- environment-file: 313-latest
37+
- environment-file: 314-latest
3638
os: macos-15-intel # Intel
37-
- environment-file: 313-numba-latest
39+
- environment-file: 314-numba-latest
3840
os: macos-15-intel # Intel
39-
- environment-file: 313-latest
41+
- environment-file: 314-latest
4042
os: macos-latest # Apple Silicon
41-
- environment-file: 313-numba-latest
43+
- environment-file: 314-numba-latest
4244
os: macos-latest # Apple Silicon
43-
- environment-file: 313-latest
45+
- environment-file: 314-latest
4446
os: windows-latest
45-
- environment-file: 313-numba-latest
47+
- environment-file: 314-numba-latest
4648
os: windows-latest
4749
fail-fast: false
4850

@@ -113,7 +115,7 @@ jobs:
113115
if: matrix.os == 'windows-latest' && (success() || failure())
114116

115117
- name: archive & upload resultant image comparisons
116-
uses: actions/upload-artifact@v5
118+
uses: actions/upload-artifact@v6
117119
with:
118120
name: result_images-${{ matrix.os }}-${{ matrix.environment-file }}
119121
path: result_images.zip

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
files: 'mapclassify\/|notebooks\/'
22
repos:
33
- repo: https://github.com/astral-sh/ruff-pre-commit
4-
rev: "v0.13.3"
4+
rev: "v0.14.8"
55
hooks:
66
- id: ruff-check
77
- id: ruff-format

ci/313-dev.yaml renamed to ci/314-dev.yaml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: test
22
channels:
33
- conda-forge
44
dependencies:
5-
- python=3.13
5+
- python=3.14
66
# testing
77
- pytest
88
- pytest-cov
@@ -12,13 +12,15 @@ dependencies:
1212
- pyproj
1313
- pip
1414
- pip:
15-
- --pre --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple --extra-index-url https://pypi.org/simple
15+
- --pre \
16+
--index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple \
17+
--extra-index-url \
18+
https://pypi.org/simple
19+
- matplotlib
20+
- networkx
21+
- pandas
1622
- scipy
1723
- scikit-learn
18-
- pandas
19-
- networkx
20-
- matplotlib
2124
- shapely
22-
- fiona
23-
- git+https://github.com/pysal/libpysal.git@main
2425
- git+https://github.com/geopandas/geopandas.git@main
26+
- git+https://github.com/pysal/libpysal.git@main

ci/314-latest.yaml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: test
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- python=3.14
6+
# required
7+
- networkx
8+
- numpy
9+
- pandas
10+
- scikit-learn
11+
- scipy
12+
# testing
13+
- geopandas
14+
- libpysal
15+
- pytest
16+
- pytest-cov
17+
- pytest-xdist
18+
- codecov
19+
- matplotlib
20+
# docs
21+
- nbsphinx
22+
- numpydoc
23+
- sphinx
24+
- sphinx-gallery
25+
- sphinxcontrib-bibtex
26+
- sphinx_bootstrap_theme

ci/314-numba-latest.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: test
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- python=3.14
6+
# required
7+
- networkx
8+
- numpy
9+
- pandas
10+
- scikit-learn
11+
- scipy
12+
# testing
13+
- geopandas
14+
- libpysal
15+
- pytest
16+
- pytest-cov
17+
- pytest-xdist
18+
- pytest-doctestplus
19+
- codecov
20+
- matplotlib
21+
# optional
22+
- numba

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ def setup(app):
267267
"networkx": ("https://networkx.org/documentation/stable/", None),
268268
"numpy": ("https://numpy.org/doc/stable/", None),
269269
"pandas": ("https://pandas.pydata.org/pandas-docs/stable/", None),
270-
"python": ("https://docs.python.org/3.13/", None),
270+
"python": ("https://docs.python.org/3", None),
271271
"scipy": ("https://docs.scipy.org/doc/scipy/", None),
272272
}
273273

docs/installation.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Installation
44
============
55

6-
mapclassify supports python `3.9`_+. Please make sure that you are
6+
mapclassify supports python `3.11`_+. Please make sure that you are
77
operating in a python 3 environment.
88

99
Installing released version
@@ -41,7 +41,7 @@ your fork. By making changes
4141
to your local clone and submitting a pull request to `pysal/mapclassify`_, you can
4242
contribute to mapclassify development.
4343

44-
.. _3.9: https://docs.python.org/3.9/
44+
.. _3.11: https://docs.python.org/3.11/
4545
.. _conda: https://docs.conda.io/en/latest/
4646
.. _conda-forge: https://anaconda.org/conda-forge/mapclassify
4747
.. _Python Package Index: https://pypi.org/project/mapclassify/

0 commit comments

Comments
 (0)