Supported builds with limited API
This commit is contained in:
parent
e5f2cc21c3
commit
a90d5e2289
5 changed files with 47 additions and 5 deletions
30
.github/workflows/build.yaml
vendored
30
.github/workflows/build.yaml
vendored
|
|
@ -25,7 +25,35 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install setuptools "cython >= 3" pytest
|
||||
pip install setuptools "cython >= 3.1" pytest
|
||||
- name: Build with Python ${{ matrix.python-version }}
|
||||
run: |
|
||||
python setup.py build
|
||||
python setup.py build_ext -i
|
||||
- name: Test with pytest
|
||||
run: |
|
||||
pytest
|
||||
env:
|
||||
LC_ALL: C.UTF-8
|
||||
LANG: C.UTF-8
|
||||
|
||||
build-limited-api:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
env:
|
||||
USE_LIMITED_API: "1"
|
||||
steps:
|
||||
- uses: actions/checkout@v5
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v6
|
||||
python-version: "3.x"
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install setuptools "cython >= 3.1" pytest
|
||||
- name: Build with Python ${{ matrix.python-version }}
|
||||
run: |
|
||||
python setup.py build
|
||||
|
|
|
|||
4
.github/workflows/publish-twine.yaml
vendored
4
.github/workflows/publish-twine.yaml
vendored
|
|
@ -23,7 +23,7 @@ jobs:
|
|||
- name: Install cibuildwheel
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
python -m pip install cibuildwheel
|
||||
python -m pip install "cython >= 3.1" cibuildwheel
|
||||
- name: Build wheels
|
||||
run: |
|
||||
python -m cibuildwheel --output-dir dist
|
||||
|
|
@ -46,7 +46,7 @@ jobs:
|
|||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install setuptools "cython >= 3"
|
||||
pip install setuptools "cython >= 3.1"
|
||||
- name: Build sdist
|
||||
run: |
|
||||
python setup.py build
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue