-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restrict python version for building manylinux wheels
- Loading branch information
Showing
1 changed file
with
11 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 }} | ||
|