-
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fix: rename deprecated typing._collect_parameters (Python 3.13) * chore: update ci actions * chore: add Python 3.13 classifier * chore: update cython to 3.0.11 * fix: make scripts/cythonize.sh executable * fix: add setuptools as build dependency for 3.12+ * chore: update build-system * chore: update pycln to v2.4.0 * chore: update test requirements to avoid DeprecationWarnings * chore: update pydantic test requirements to avoid DeprecationWarning * chore: update codecov-action to v4
- Loading branch information
Showing
10 changed files
with
55 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,19 +12,19 @@ jobs: | |
- uses: actions/checkout@v4 | ||
- run: scripts/cythonize.sh | ||
- run: pipx run build --sdist | ||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist | ||
name: dist-sdist | ||
path: dist/*.tar.gz | ||
build_pure_wheel: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: scripts/cythonize.sh | ||
- run: NO_EXTENSION=1 pipx run build | ||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist | ||
name: dist-wheel | ||
path: dist/*.whl | ||
build_wheels: | ||
name: Wheel on ${{ matrix.os }} | ||
|
@@ -34,9 +34,14 @@ jobs: | |
os: [ubuntu-latest, macos-latest, windows-latest] | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Set up Python 3.12 (MacOS) | ||
if: matrix.os == 'macos-latest' | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: "3.12" | ||
- run: scripts/cythonize.sh | ||
- run: scripts/generate_tests_from_examples.py | ||
- uses: pypa/cibuildwheel@v2.16.2 | ||
- uses: pypa/cibuildwheel@v2.21.1 | ||
env: | ||
CIBW_SKIP: pp* | ||
CIBW_TEST_COMMAND: pytest {project}/tests | ||
|
@@ -45,19 +50,20 @@ jobs: | |
CIBW_BEFORE_TEST: pip install -r tests/requirements.txt | ||
# TODO is skipping still necessary? | ||
CIBW_TEST_SKIP: "*universal2:arm64" | ||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: dist | ||
name: dist-${{ matrix.os }} | ||
path: wheelhouse/*.whl | ||
publish: | ||
needs: [build_sdist, build_wheels] | ||
runs-on: ubuntu-latest | ||
if: github.event_name == 'release' && github.event.action == 'published' | ||
steps: | ||
- uses: actions/download-artifact@v3 | ||
- uses: actions/download-artifact@v4 | ||
with: | ||
name: dist | ||
path: dist | ||
pattern: dist-* | ||
merge-multiple: true | ||
- uses: pypa/[email protected] | ||
with: | ||
password: ${{ secrets.PYPI_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
Cython==3.0.4 | ||
Cython==3.0.11 | ||
setuptools==75.1.0;python_version>="3.12" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters