Skip to content

Commit 8195a40

Browse files
committed
Add support for python3.14 and increase requires-python to >= 3.8
1 parent fd24bd9 commit 8195a40

File tree

4 files changed

+11
-14
lines changed

4 files changed

+11
-14
lines changed

.github/workflows/python-package-tox.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# This workflow will install tox and use it to run tests.
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
33

4-
name: Python package
4+
name: Test
55

66
on:
77
push:
@@ -12,18 +12,20 @@ jobs:
1212

1313
strategy:
1414
matrix:
15-
python: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
15+
python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"]
1616
fail-fast: false
1717

18-
runs-on: ${{ matrix.python <= '3.6' && 'ubuntu-20.04' || 'ubuntu-22.04' }}
18+
runs-on: 'ubuntu-24.04'
1919

20-
name: Test on python ${{ matrix.python }} and numpy ${{ matrix.numpyversion }}
20+
name: Test on python ${{ matrix.python }}
2121
steps:
2222
- uses: actions/checkout@v4
2323
- name: Setup Python
2424
uses: actions/setup-python@v5
2525
with:
2626
python-version: ${{ matrix.python }}
27+
allow-prereleases: true
28+
check-latest: true
2729
- name: Install Tox
2830
run: pip install tox
2931
- name: Run Tox

.github/workflows/upload_to_pypi.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Build and upload to PyPI
33
on:
44
release:
55
types: [published]
6+
workflow_dispatch:
67

78
jobs:
89
build_wheels:
@@ -16,16 +17,13 @@ jobs:
1617
- uses: actions/checkout@v4
1718

1819
- uses: actions/setup-python@v5
19-
name: Install Python
20-
with:
21-
python-version: '3.x'
2220

2321
- name: Build wheels
2422
# For very recent Python versions, wheels from e.g. numpy might not be
2523
# available yet which can cause the build to fail. Keep going, and upload
2624
# the wheels for all of the previous versions when that happens.
2725
continue-on-error: true
28-
uses: pypa/cibuildwheel@v2.22.0
26+
uses: pypa/cibuildwheel@v3.1.3
2927

3028
- uses: actions/upload-artifact@v4
3129
with:
@@ -39,9 +37,6 @@ jobs:
3937
- uses: actions/checkout@v4
4038

4139
- uses: actions/setup-python@v5
42-
name: Install Python
43-
with:
44-
python-version: '3.x'
4540

4641
- name: Install build
4742
run: python -m pip install build
@@ -62,7 +57,7 @@ jobs:
6257
id-token: write
6358
if: startsWith(github.ref, 'refs/tags/v')
6459
steps:
65-
- uses: actions/download-artifact@v4.1.7
60+
- uses: actions/download-artifact@v4
6661
with:
6762
pattern: cibw-*
6863
path: dist

extinction.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#!python
2-
#cython: boundscheck=False, wraparound=False, initializedcheck=False, cdivision=True
2+
#cython: boundscheck=False, wraparound=False, initializedcheck=False, cdivision=True, freethreading_compatible=True
33

44
"""Interstellar dust extinction functions."""
55

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,5 @@
4848
author_email="kylebarbary@gmail.com",
4949
ext_modules=extensions,
5050
install_requires=["numpy>=1.13.3"],
51-
python_requires=">=3.6",
51+
python_requires=">=3.8",
5252
)

0 commit comments

Comments
 (0)