Skip to content

Commit

Permalink
[Fix] Fix manylinux pkg build workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
innerNULL committed Sep 3, 2021
1 parent b09c416 commit 679c160
Showing 1 changed file with 10 additions and 26 deletions.
36 changes: 10 additions & 26 deletions .github/workflows/python-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down

0 comments on commit 679c160

Please sign in to comment.