Skip to content

Commit b1d0428

Browse files
committed
Merge branch 'main' of github.com:translearn/limits
2 parents 764cb96 + 96febd7 commit b1d0428

3 files changed

Lines changed: 15 additions & 28 deletions

File tree

.github/workflows/run_tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
strategy:
1010
matrix:
11-
python-version: [3.6, 3.7, 3.8, 3.9]
11+
python-version: [3.9]
1212

1313
steps:
1414
- uses: actions/checkout@v2

.github/workflows/wheel_builder.yml

Lines changed: 13 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,39 +7,26 @@ jobs:
77
runs-on: ${{ matrix.os }}
88
strategy:
99
matrix:
10-
os: [ubuntu-20.04, macOS-10.15]
10+
os: [ubuntu-latest]
11+
environment: pypi
12+
permissions:
13+
id-token: write
1114
steps:
1215
- uses: actions/checkout@v2
1316
- uses: actions/setup-python@v2
1417

1518
- name: cibuildwheel installation
16-
run: python -m pip install cibuildwheel==1.11.0 twine
17-
18-
- name: Install gcc on macOS
19-
if: matrix.os == 'macOS-10.15'
20-
run: |
21-
brew install gcc@11
22-
23-
- name: build specified wheels on macOS
24-
if: matrix.os == 'macOS-10.15'
25-
run: |
26-
python -m cibuildwheel --output-dir dist
27-
env:
28-
CC: gcc-11
29-
CIBW_BUILD: cp36-* cp37-* cp38-* cp39-*
30-
CIBW_BEFORE_BUILD: python -m pip install cython
31-
32-
- name: build specified wheels on ubuntu
33-
if: matrix.os == 'ubuntu-20.04'
19+
run: python -m pip install cibuildwheel twine
20+
21+
- name: build specified wheels on ubuntu-latest
22+
if: matrix.os == 'ubuntu-latest'
3423
run: |
3524
python -m cibuildwheel --output-dir dist
3625
env:
37-
CIBW_BUILD: cp36-* cp37-* cp38-* cp39-*
26+
CIBW_BUILD: cp36-* cp37-* cp38-* cp39-* cp310-* cp311-* cp312-* cp313-*
3827
CIBW_BEFORE_BUILD: python -m pip install cython
3928

40-
- name: upload to PyPI
41-
env:
42-
TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
43-
TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
44-
run: |
45-
python -m twine upload --skip-existing dist/*.whl
29+
- name: Publish package distributions to PyPI
30+
uses: pypa/gh-action-pypi-publish@release/v1
31+
with:
32+
skip-existing: true

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[build-system]
2-
requires = ["setuptools", "wheel", "cython", "oldest-supported-numpy"]
2+
requires = ["setuptools", "wheel", "cython", "numpy"]

0 commit comments

Comments
 (0)