Skip to content

Commit 0216438

Browse files
authored
Merge branch 'main' into dependabot/github_actions/dot-github/workflows/actions/download-artifact-4.1.7
2 parents be3769a + 8dc8a40 commit 0216438

File tree

5 files changed

+30
-26
lines changed

5 files changed

+30
-26
lines changed

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

+9-8
Original file line numberDiff line numberDiff line change
@@ -5,25 +5,26 @@ name: Python package
55

66
on:
77
push:
8-
branches: [ main ]
98
pull_request:
10-
branches: [ main ]
119

1210
jobs:
13-
build:
11+
test:
1412

15-
runs-on: ubuntu-latest
1613
strategy:
1714
matrix:
18-
python: [3.5, 3.8]
15+
python: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
16+
fail-fast: false
1917

18+
runs-on: ${{ matrix.python <= '3.6' && 'ubuntu-20.04' || 'ubuntu-22.04' }}
19+
20+
name: Test on python ${{ matrix.python }} and numpy ${{ matrix.numpyversion }}
2021
steps:
21-
- uses: actions/checkout@v2
22+
- uses: actions/checkout@v4
2223
- name: Setup Python
23-
uses: actions/setup-python@v2
24+
uses: actions/setup-python@v5
2425
with:
2526
python-version: ${{ matrix.python }}
26-
- name: Install Tox and any other packages
27+
- name: Install Tox
2728
run: pip install tox
2829
- name: Run Tox
2930
# Run tox using the version of Python in `PATH`

.github/workflows/upload_to_pypi.yml

+16-13
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ jobs:
1313
os: [ubuntu-latest, windows-latest, macos-latest]
1414

1515
steps:
16-
- uses: actions/checkout@v2
16+
- uses: actions/checkout@v4
1717

18-
- uses: actions/setup-python@v2
18+
- uses: actions/setup-python@v5
1919
name: Install Python
2020
with:
2121
python-version: '3.x'
@@ -25,19 +25,20 @@ jobs:
2525
# available yet which can cause the build to fail. Keep going, and upload
2626
# the wheels for all of the previous versions when that happens.
2727
continue-on-error: true
28-
uses: pypa/cibuildwheel@v2.1.1
28+
uses: pypa/cibuildwheel@v2.22.0
2929

30-
- uses: actions/upload-artifact@v2
30+
- uses: actions/upload-artifact@v4
3131
with:
32+
name: cibw-wheels-${{ matrix.os }}-${{ strategy.job-index }}
3233
path: ./wheelhouse/*.whl
3334

3435
build_sdist:
3536
name: Build source distribution
3637
runs-on: ubuntu-latest
3738
steps:
38-
- uses: actions/checkout@v2
39+
- uses: actions/checkout@v4
3940

40-
- uses: actions/setup-python@v2
41+
- uses: actions/setup-python@v5
4142
name: Install Python
4243
with:
4344
python-version: '3.x'
@@ -48,21 +49,23 @@ jobs:
4849
- name: Build sdist
4950
run: python -m build --sdist
5051

51-
- uses: actions/upload-artifact@v2
52+
- uses: actions/upload-artifact@v4
5253
with:
54+
name: cibw-sdist
5355
path: dist/*.tar.gz
5456

5557
upload_pypi:
5658
name: Upload to PyPI
5759
needs: [build_wheels, build_sdist]
5860
runs-on: ubuntu-latest
61+
permissions:
62+
id-token: write
63+
if: startsWith(github.ref, 'refs/tags/v')
5964
steps:
6065
- uses: actions/download-artifact@v4.1.7
6166
with:
62-
name: artifact
63-
path: dist
67+
pattern: cibw-*
68+
path: dist
69+
merge-multiple: true
6470

65-
- uses: pypa/gh-action-pypi-publish@v1.4.2
66-
with:
67-
user: __token__
68-
password: ${{ secrets.PYPI_API_TOKEN }}
71+
- uses: pypa/gh-action-pypi-publish@release/v1

extinction.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
import numpy as np
77
cimport numpy as np
88

9-
__version__ = "0.4.6"
9+
__version__ = "0.4.7"
1010

1111
__all__ = ['ccm89', 'odonnell94', 'Fitzpatrick99', 'fitzpatrick99', 'fm07',
1212
'calzetti00', 'apply', 'remove']

pyproject.toml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ requires = [
33
"wheel",
44
"setuptools",
55
"Cython>=0.29.2",
6-
"oldest-supported-numpy",
6+
"numpy<2; python_version<'3.9'",
7+
"numpy>=2; python_version>='3.9'",
78
]
89
build-backend = 'setuptools.build_meta'

setup.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
from setuptools import setup
88
from setuptools.extension import Extension
99

10-
1110
classifiers = [
1211
"Development Status :: 4 - Beta",
1312
"Programming Language :: Python :: 3",
@@ -33,7 +32,7 @@
3332
source_files,
3433
include_dirs=include_dirs,
3534
depends=depends_files,
36-
extra_compile_args=["-std=c99"],
35+
extra_compile_args=["-std=c11"],
3736
)
3837
]
3938

@@ -49,5 +48,5 @@
4948
author_email="kylebarbary@gmail.com",
5049
ext_modules=extensions,
5150
install_requires=["numpy>=1.13.3"],
52-
python_requires=">=3.5",
51+
python_requires=">=3.6",
5352
)

0 commit comments

Comments
 (0)