Skip to content

Commit a3f2d22

Browse files
authored
Merge pull request #105 from astrofrog/limited-api
Enable limited API builds
2 parents 989180b + 7722149 commit a3f2d22

File tree

6 files changed

+13
-14
lines changed

6 files changed

+13
-14
lines changed

.github/workflows/python-tests.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ jobs:
2020
matrix:
2121
include:
2222

23-
- name: Python 3.10 with required dependencies
23+
- name: Python 3.11 with required dependencies (and gcc 11.2)
2424
os: ubuntu-22.04 # gcc 11.2
25-
python-version: "3.10"
26-
toxenv: py310-test-numpy126
25+
python-version: "3.11"
26+
toxenv: py311-test-numpy126
2727

2828
- name: Python 3.11 with required dependencies
2929
os: macos-latest
3030
python-version: "3.11"
3131
toxenv: py311-test-astropy60
3232

33-
- name: Python 3.12 with required dependencies
33+
- name: Python 3.12 with required dependencies (and gcc 13.2)
3434
os: ubuntu-24.04 # gcc 13.2
3535
python-version: "3.12"
3636
toxenv: py312-test-astropy70
@@ -80,6 +80,8 @@ jobs:
8080
needs: tests
8181
uses: OpenAstronomy/github-actions-workflows/.github/workflows/publish.yml@d9b81a07e789d1b1921ab5fe33de2ddcbbd02c3f # v2.3.0
8282
with:
83+
env: |
84+
EXTENSION_HELPERS_PY_LIMITED_API: 'cp311'
8385
test_extras: test
8486
test_command: pytest -p no:warnings --pyargs astroscrappy
8587
targets: |

CHANGES.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
1.4.0 (unreleased)
22
------------------
33

4-
- No changes yet.
4+
- The minimum supported version of Python is now 3.11.
55

66
1.3.0 (2025-10-31)
77
------------------

README.rst

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,6 @@ http://www.astro.yale.edu/dokkum/lacosmic/
3535
van Dokkum 2001, PASP, 113, 789, 1420
3636
(article : http://adsabs.harvard.edu/abs/2001PASP..113.1420V)
3737

38-
This code requires Cython, preferably version >= 0.21.
39-
4038
Parallelization is achieved using OpenMP. This code should compile (although
4139
the Cython files may have issues) using a compiler that does not support OMP,
4240
e.g. clang.

astroscrappy/utils/median_utils.pyx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Licensed under a 3-clause BSD style license - see LICENSE.rst
22
# cython: boundscheck=False, nonecheck=False, wraparound=False, language_level=3, cdivision=True
3-
# distutils: define_macros=NPY_NO_DEPRECATED_API=NPY_1_7_API_VERSION
43
"""
54
Name : median_utils
65
Author : Curtis McCully

pyproject.toml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
requires = [
33
"setuptools>=61.2",
44
"setuptools_scm[toml]>=6.2",
5-
"extension-helpers==1.*",
5+
"extension-helpers>=1.3,<2",
66
"numpy>=2.0.0",
7-
"Cython>=3.0,<4",
7+
"Cython>=3.1,<4",
88
]
99
build-backend = 'setuptools.build_meta'
1010

@@ -19,7 +19,7 @@ license = "BSD-3-Clause"
1919
license-files = ["licenses/LICENSE.rst"]
2020
# edit-on-github = "False"
2121
# github-project = "astropy/astroscrappy"
22-
requires-python = ">=3.10"
22+
requires-python = ">=3.11"
2323
dependencies = [
2424
"astropy",
2525
"numpy",

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[tox]
22
envlist =
3-
py{310,311,312,313,314}-test{,-alldeps,-devdeps}{,-cov}
4-
py{310,311,312,313,314}-test-numpy{126}
5-
py{310,311,312,313,314}-test-astropy{60,70}
3+
py{311,312,313,314}-test{,-alldeps,-devdeps}{,-cov}
4+
py{311,312,313,314}-test-numpy{126}
5+
py{311,312,313,314}-test-astropy{60,70}
66
build_docs
77
linkcheck
88
codestyle

0 commit comments

Comments
 (0)