Skip to content

Commit 01c4d29

Browse files
authored
Merge pull request #3088 from bsipocz/MAINT_py313
MAINT: adding Python 3.13 to CI
2 parents 471053f + 60edbf9 commit 01c4d29

File tree

3 files changed

+15
-2
lines changed

3 files changed

+15
-2
lines changed

.github/workflows/ci_devtests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,12 @@ jobs:
3636
toxenv: py312-test-alldeps-devdeps-cov
3737
toxargs: -v
3838

39+
- name: Python 3.13
40+
os: ubuntu-latest
41+
python: '3.13-dev'
42+
toxenv: py313-test
43+
toxargs: -v
44+
3945
steps:
4046
- name: Checkout code
4147
uses: actions/checkout@v4

astroquery/utils/tests/test_utils.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ def test_class_or_instance():
4545
assert SimpleQueryClass.query() == "class"
4646
U = SimpleQueryClass()
4747
assert U.query() == "instance"
48-
assert SimpleQueryClass.query.__doc__ == " docstring "
48+
# Indent changes in Python 3.13 thus cannot equate
49+
# See https://github.com/python/cpython/issues/81283
50+
assert "docstring" in SimpleQueryClass.query.__doc__
4951

5052

5153
@pytest.mark.parametrize(('coordinates'),

tox.ini

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{39,310,311,312}-test{,-alldeps,-oldestdeps,-devdeps,-predeps}{,-online}{,-cov}
3+
py{39,310,311,312,313}-test{,-alldeps,-oldestdeps,-devdeps,-predeps}{,-online}{,-cov}
44
codestyle
55
linkcheck
66
build_docs
@@ -24,6 +24,8 @@ setenv =
2424
PYTEST_ARGS = ''
2525
online: PYTEST_ARGS = --remote-data=any --reruns=1 --reruns-delay 10 -m "not bigdata"
2626
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
27+
# astropy doesn't yet have a 3.13 compatible release
28+
py313: PIP_EXTRA_INDEX_URL = https://pypi.anaconda.org/astropy/simple https://pypi.anaconda.org/liberfa/simple
2729

2830
deps =
2931
devdeps: numpy>=0.0.dev0
@@ -32,6 +34,9 @@ deps =
3234
devdeps: pyerfa>=0.0.dev0
3335
devdeps: git+https://github.com/astropy/pyvo.git#egg=pyvo
3436

37+
# astropy doesn't yet have a 3.13 compatible release
38+
py313: astropy>0.0dev0
39+
3540
# mpl while not a dependency, it's required for the tests, and would pull up a newer numpy version if not pinned.
3641
# And pillow should be pinned as well, otherwise a too new version is pulled that is not compatible with old np.
3742

0 commit comments

Comments
 (0)