diff --git a/.github/workflows/python-publish.yml b/.github/workflows/python-publish.yml index a9aa90b..45112e0 100644 --- a/.github/workflows/python-publish.yml +++ b/.github/workflows/python-publish.yml @@ -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/python-wheels-manylinux-build@v0.3.4-manylinux2010_x86_64 uses: RalfG/python-wheels-manylinux-build@v0.3.4-manylinux2014_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 }}