Skip to content

Commit

Permalink
Build wheels for Python 2.7 again (#263)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored Oct 6, 2024
1 parent 942f15b commit d356c8e
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,11 @@ jobs:
CIBW_TEST_REQUIRES: tzdata

build_wheels_python2:
name: Build wheels on ${{ matrix.os }}
name: Build wheels on ${{ matrix.os }} (Python 2.7)
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
os: [ubuntu-latest, macos-13]

steps:
- uses: actions/checkout@v4
Expand Down
41 changes: 35 additions & 6 deletions .github/workflows/github-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion ephem/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from math import acos, cos, isnan, pi, sin
from time import localtime as _localtime

__version__ = '4.1.5'
__version__ = '4.1.6'

# As a favor, compile a regular expression that our C library would
# really rather not compile for itself.
Expand Down
9 changes: 9 additions & 0 deletions ephem/doc/CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,15 @@
PyEphem CHANGELOG
=================

Version 4.1.6 (2024 October 6)
------------------------------

- Add support for Python 3.13.
`#278 <https://github.com/brandon-rhodes/pyephem/pull/278>`_

- Build wheels for Python 2.7 again.
`#263 <https://github.com/brandon-rhodes/pyephem/pull/263>`_

Version 4.1.5 (2023 October 8)
------------------------------

Expand Down

0 comments on commit d356c8e

Please sign in to comment.