Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 6 additions & 4 deletions .github/workflows/python-package-tox.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# This workflow will install tox and use it to run tests.
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Python package
name: Test

on:
push:
Expand All @@ -12,18 +12,20 @@ jobs:

strategy:
matrix:
python: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13", "3.14", "3.14t"]
fail-fast: false

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

name: Test on python ${{ matrix.python }} and numpy ${{ matrix.numpyversion }}
name: Test on python ${{ matrix.python }}
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
allow-prereleases: true
check-latest: true
- name: Install Tox
run: pip install tox
- name: Run Tox
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/upload_to_pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ name: Build and upload to PyPI
on:
release:
types: [published]
workflow_dispatch:

jobs:
build_wheels:
Expand All @@ -16,16 +17,13 @@ jobs:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.x'

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

- uses: actions/upload-artifact@v4
with:
Expand All @@ -39,9 +37,6 @@ jobs:
- uses: actions/checkout@v4

- uses: actions/setup-python@v5
name: Install Python
with:
python-version: '3.x'

- name: Install build
run: python -m pip install build
Expand All @@ -62,7 +57,7 @@ jobs:
id-token: write
if: startsWith(github.ref, 'refs/tags/v')
steps:
- uses: actions/download-artifact@v4.1.7
- uses: actions/download-artifact@v4
with:
pattern: cibw-*
path: dist
Expand Down
2 changes: 1 addition & 1 deletion extinction.pyx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!python
#cython: boundscheck=False, wraparound=False, initializedcheck=False, cdivision=True
#cython: boundscheck=False, wraparound=False, initializedcheck=False, cdivision=True, freethreading_compatible=True

"""Interstellar dust extinction functions."""

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@
author_email="kylebarbary@gmail.com",
ext_modules=extensions,
install_requires=["numpy>=1.13.3"],
python_requires=">=3.6",
python_requires=">=3.8",
)