Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[PYPI] Fix broken publish action #14

Merged
merged 1 commit into from
May 6, 2024
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
15 changes: 8 additions & 7 deletions .github/workflows/wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,10 @@ jobs:
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'

- name: install python dependencies
run: pip install -U setuptools wheel twine maturin build
run: pip install -U setuptools wheel twine maturin build pkginfo>=1.10.0

- name: build sdist
run: |
Expand All @@ -54,7 +54,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu, windows, macos]
python-version: ['cp311', 'cp310', 'cp39']
python-version: ['cp312', 'cp311', 'cp310', 'cp39']
include:
- os: ubuntu
platform: linux
Expand All @@ -71,7 +71,7 @@ jobs:
- name: Set up python
uses: actions/setup-python@v4
with:
python-version: '3.11'
python-version: '3.12'

- if: matrix.os == 'macos' || matrix.os == 'windows'
name: Set up rust toolchain
Expand All @@ -91,11 +91,12 @@ jobs:
- if: matrix.os == 'windows'
name: Add i686-pc-windows-msvc target
run: |
rustup toolchain install stable-i686-pc-windows-msvc
# Disable self-update on windows to prevent race condition; see https://github.com/rust-lang/rustup/issues/2441
rustup toolchain install stable-i686-pc-windows-msvc --no-self-update
rustup target add i686-pc-windows-msvc

- name: Build ${{ matrix.platform || matrix.os }} binaries
uses: pypa/cibuildwheel@v2.11.2
uses: pypa/cibuildwheel@v2.17.0
env:
CIBW_BUILD: '${{ matrix.python-version }}-*'
# rust doesn't seem to be available for musl linux on i686
Expand All @@ -113,7 +114,7 @@ jobs:

- name: List and check wheels
run: |
pip install twine
pip install twine pkginfo>=1.10.0
${{ matrix.ls || 'ls -lh' }} wheelhouse/
twine check wheelhouse/*

Expand Down
2 changes: 2 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Version Control",
"Programming Language :: Rust",
"Programming Language :: Python :: Implementation :: CPython",
Expand Down
Loading