-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Fix] Fix manylinux pkg build workflow.
- Loading branch information
Showing
1 changed file
with
10 additions
and
26 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 |
---|---|---|
|
@@ -5,58 +5,42 @@ | |
# They are provided by a third-party and are governed by | ||
# separate terms of service, privacy policy, and support | ||
# documentation. | ||
|
||
name: Upload Python Package | ||
name: Python package build and publish | ||
|
||
on: | ||
release: | ||
types: [published] | ||
types: [created] | ||
|
||
jobs: | ||
deploy: | ||
|
||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
python-version: [3.7] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
- name: Set up Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: '3.x' | ||
#python-version: ${{ matrix.python-version }} | ||
- name: Config | ||
run: | | ||
sudo apt-get update | ||
sudo apt-get install zip unzip wget python-is-python3 | ||
which python | ||
which python3 | ||
python-version: 3.8 | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install build twine flake8 | ||
pip install twine flake8 | ||
- name: Lint with flake8 for syntax errors | ||
run: | | ||
pip install flake8 | ||
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics | ||
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics | ||
pwd | ||
ls -lh | ||
- name: Build manylinux Python wheels | ||
#uses: RalfG/[email protected]_x86_64 | ||
uses: RalfG/[email protected]_x86_64 | ||
with: | ||
python-versions: 'cp37-cp37m cp38-cp38m cp39-cp39m' | ||
# Note that starting with CPython 3.8, default sys.abiflags became an empty string: | ||
# the m flag for pymalloc became useless (builds with and without pymalloc are ABI | ||
# compatible) and so has been removed. (e.g. /opt/python/cp38-cp38) | ||
python-versions: 'cp37-cp37m cp38-cp38 cp39-cp39' | ||
build-requirements: 'cython' | ||
package-path: './' | ||
system-packages: 'zip unzip wget git glibc' | ||
pip-wheel-args: '-w ./dist --no-deps -vvv' | ||
- name: Build package | ||
#run: python -m build | ||
run: ls -lh | ||
- name: Publish wheels to PyPI | ||
env: | ||
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }} | ||
|