Skip to content

Commit

Permalink
Merge pull request #403 from dstansby/py312
Browse files Browse the repository at this point in the history
Python 3.12 testing
  • Loading branch information
astrofrog authored Oct 24, 2023
2 parents a19c284 + ae077d5 commit 124a9cd
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 10 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci_workflows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,19 @@ jobs:
- macos: py39-test
- macos: py310-test
- macos: py311-test
- macos: py312-test
- linux: py38-test-oldestdeps
- linux: py38-test
- linux: py39-test
- linux: py310-test
- linux: py311-test
- linux: py311-test-devdeps
- linux: py312-test
- linux: py312-test-devdeps
- windows: py38-test-oldestdeps
- windows: py39-test
- windows: py310-test
- windows: py311-test
- windows: py312-test
libraries: |
apt:
- libopenblas-dev
Expand Down
8 changes: 2 additions & 6 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,18 +1,14 @@
include README.rst
include CHANGES.md
include LICENSE.md
include LICENSE

include pyproject.toml
include setup.py
include setup.cfg

include pyproject.toml

recursive-include reproject *.pyx *.c *.pxd
recursive-include reproject *.pyx *.c
recursive-include docs *
recursive-include licenses *
recursive-include cextern *
recursive-include scripts *

prune build
prune docs/_build
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ requires = ["setuptools",
"wheel",
"extension-helpers",
"oldest-supported-numpy",
"cython==3.0.2"]
"cython==3.0.4"]
build-backend = 'setuptools.build_meta'

[tool.setuptools_scm]
Expand Down
4 changes: 3 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,9 @@ test =
shapely>=2.0.2 # 2.0.2 fixed a bug that causes changes in test results
testall =
shapely
sunpy[map]>=2.1;platform_machine!='i686'
# Once a release of reproject is done for Python 3.12,
# can remove python_version specifier here
sunpy[map]>=2.1;python_version<"3.12" and platform_machine!="i686"
asdf
gwcs
pyvo
Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{38,39,310,311}-{test}{-oldestdeps,-numpy121}
py{38,39,310,311,312}-{test}{,-oldestdeps,-numpy121}
build_docs
codestyle
isolated_build = True
Expand All @@ -15,6 +15,7 @@ setenv =
MPLBACKEND = Agg
PYTEST_COMMAND = pytest --arraydiff --arraydiff-default-format=fits --pyargs reproject --cov reproject --cov-config={toxinidir}/setup.cfg {toxinidir}/docs --remote-data
devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
py312: PIP_PRE=1
changedir =
.tmp/{envname}
deps =
Expand All @@ -33,6 +34,7 @@ deps =
devdeps: git+https://github.com/astropy/asdf-astropy.git
devdeps: git+https://github.com/spacetelescope/gwcs.git#egg=gwcs
#devdeps: git+https://github.com/sunpy/sunpy.git#egg=sunpy

extras =
test
# Don't run the more complex tests on oldestdeps because it pulls in a nest
Expand Down

0 comments on commit 124a9cd

Please sign in to comment.