Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Fix wheel platform tag #3

Closed
Closed
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: 14 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
python-version: ${{ matrix.python-version }}
- name: Prepare build environment
run: |
pip install wheel twine numpy
pip install wheel>=0.40.0 twine numpy
- name: Build wheel
run: |
curl -J -O -L 'https://pypi.io/packages/source/z/zeroc-ice/zeroc-ice-3.6.5.tar.gz'
Expand All @@ -33,6 +33,19 @@ jobs:
export MACOSX_DEPLOYMENT_TARGET=11.0
python setup.py build -j 3
python setup.py bdist_wheel
- name: Fix wheel platform tag
run: |
# If the installed Python is, for example, `unixersal2`, the default
# platform tag always be `universal2` even if the build is just
# x86_64 like it is here. We need to fix the wheels we produce so
# that we don't advertise platform tags that are not actually
# supported.
#
# See:
# * https://github.com/pypa/wheel/issues/406
python -m wheel tags \
--platform-tag=macosx_11_0_x86_64 \
--remove zeroc-ice-3.6.5/dist/*.whl
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
Expand Down