Skip to content

Commit

Permalink
Restrict python version for building manylinux wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
cmorganl committed Jan 5, 2021
1 parent 79dfec9 commit 3d84c7d
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,22 +24,31 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Format python version
run: echo Building wheels for cp${py_vs}-cp${py_vs}m
env:
py_vs: echo ${{ matrix.python-version }} | sed 's/\.//g'
manylinux_version: "cp${py_vs}-cp${py_vs}m"
- name: State Python version
run: echo Manylinux wheels built for $manylinux_version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools wheel twine
python -m pip install -U cibuildwheel
- name: Build manylinux Python wheels
env:
PY_VERSION: $( echo ${{ matrix.python-version }} | sed 's/\.//g')
if: ${{ matrix.os != 'macos-latest' }}
uses: RalfG/[email protected]
with:
python-versions: 'cp36-cp36m cp37-cp37m cp38-cp38m'
python-versions: "cp${PY_VERSION}-cp${PY_VERSION}m"
build-requirements: 'cython numpy'
- name: Build Python wheels
if: ${{ matrix.os == 'macos-latest' }}
run: |
python setup.py bdist_wheel
- name: Build and publish to PyPI
- name: Build source tarball and publish to PyPI
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_API_TOKEN }}
Expand Down

0 comments on commit 3d84c7d

Please sign in to comment.