-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build wheels for Python 2.7 again (#263)
- Loading branch information
Showing
4 changed files
with
47 additions
and
9 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
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 |
---|---|---|
|
@@ -52,11 +52,6 @@ jobs: | |
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- uses: actions/setup-python@v5 | ||
name: Install Python | ||
with: | ||
python-version: '3.8' | ||
|
||
- name: Generate build name for artifact upload | ||
id: build-name | ||
run: | | ||
|
@@ -91,6 +86,40 @@ jobs: | |
path: ./wheelhouse/*.whl | ||
overwrite: true | ||
|
||
build_wheels_python2: | ||
name: Build wheels on ${{ matrix.os }} (Python 2.7) | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-13] | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
# https://cibuildwheel.readthedocs.io/en/stable/faq/#emulation | ||
# offers this stanza plus “CIBW_ARCHS_LINUX” below: | ||
- name: Set up QEMU | ||
if: runner.os == 'Linux' | ||
uses: docker/setup-qemu-action@v3 | ||
with: | ||
platforms: all | ||
|
||
- name: Build wheels | ||
uses: pypa/[email protected] | ||
env: | ||
CIBW_ARCHS_LINUX: auto aarch64 s390x | ||
CIBW_BUILD: cp27-* | ||
CIBW_SKIP: pp* | ||
CIBW_TEST_COMMAND: python -m unittest discover ephem | ||
CIBW_TEST_REQUIRES: tzdata | ||
|
||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: wheels-2.7-${{ matrix.os }} | ||
path: ./wheelhouse/*.whl | ||
overwrite: true | ||
|
||
build_sdist: | ||
name: Build source distribution | ||
runs-on: ubuntu-latest | ||
|
@@ -112,7 +141,7 @@ jobs: | |
overwrite: true | ||
|
||
upload_pypi: | ||
needs: [build_wheels, build_sdist] | ||
needs: [build_wheels, build_wheels_python2, build_sdist] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/download-artifact@v4 | ||
|
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