Skip to content

Commit

Permalink
Merge pull request #3088 from bsipocz/MAINT_py313
Browse files Browse the repository at this point in the history
MAINT: adding Python 3.13 to CI
  • Loading branch information
bsipocz authored Aug 27, 2024
2 parents 471053f + 60edbf9 commit 01c4d29
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ci_devtests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,12 @@ jobs:
toxenv: py312-test-alldeps-devdeps-cov
toxargs: -v

- name: Python 3.13
os: ubuntu-latest
python: '3.13-dev'
toxenv: py313-test
toxargs: -v

steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down
4 changes: 3 additions & 1 deletion astroquery/utils/tests/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@ def test_class_or_instance():
assert SimpleQueryClass.query() == "class"
U = SimpleQueryClass()
assert U.query() == "instance"
assert SimpleQueryClass.query.__doc__ == " docstring "
# Indent changes in Python 3.13 thus cannot equate
# See https://github.com/python/cpython/issues/81283
assert "docstring" in SimpleQueryClass.query.__doc__


@pytest.mark.parametrize(('coordinates'),
Expand Down
7 changes: 6 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tox]
envlist =
py{39,310,311,312}-test{,-alldeps,-oldestdeps,-devdeps,-predeps}{,-online}{,-cov}
py{39,310,311,312,313}-test{,-alldeps,-oldestdeps,-devdeps,-predeps}{,-online}{,-cov}
codestyle
linkcheck
build_docs
Expand All @@ -24,6 +24,8 @@ setenv =
PYTEST_ARGS = ''
online: PYTEST_ARGS = --remote-data=any --reruns=1 --reruns-delay 10 -m "not bigdata"
devdeps: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/scientific-python-nightly-wheels/simple https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/liberfa/simple
# astropy doesn't yet have a 3.13 compatible release
py313: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/liberfa/simple

deps =
devdeps: numpy>=0.0.dev0
Expand All @@ -32,6 +34,9 @@ deps =
devdeps: pyerfa>=0.0.dev0
devdeps: git+https://github.com/astropy/pyvo.git#egg=pyvo

# astropy doesn't yet have a 3.13 compatible release
py313: astropy>0.0dev0

# mpl while not a dependency, it's required for the tests, and would pull up a newer numpy version if not pinned.
# And pillow should be pinned as well, otherwise a too new version is pulled that is not compatible with old np.

Expand Down

0 comments on commit 01c4d29

Please sign in to comment.