Skip to content

Longbowman/python-wheels-manylinux-build

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python wheels manylinux build - GitHub Action

GitHub release (latest SemVer including pre-releases) GitHub GitHub issues

Build manylinux wheels for a (Cython) Python package.

This action uses the manylinux container to build manylinux wheels for a (Cython) Python package. The wheels are placed in a new directory wheelhouse and can then be uploaded to PyPI in the next step. Currently, only the manylinux1_x86_64 container is supported.

Usage

Inputs

python-versions (required)

Python versions for which to build (PEP 425 tags), as described in the manylinux image documentation. This can be one version, or a space-separated list of items.

For example: cp36-cp36m cp37-cp37m cp38-cp38
Default: cp36-cp36m cp37-cp37m cp38-cp38

Possible version tags (as of 12 December 2019): cp27-cp27m, cp27-cp27mu, cp34-cp34m, cp35-cp35m, cp36-cp36m, cp37-cp37m, cp38-cp38

build-requirements (optional)

Packages required at build time, space-separated
For example: cython or cython==0.29.14

Output

The action will create wheels in a new wheelhouse directory. Be sure to upload only the wheelhouse/*-manylinux1_x86_64.whl wheels, as the initial linux_x86_64 wheels are not accepted by PyPI.

Example usage

uses: actions/[email protected]
with:
  python-versions: 'cp36-cp36m cp37-cp37m'
  build-requirements: 'cython numpy'

Full workflow example

See full_workflow_example.yml for a complete example that includes linting and uploading to PyPI.

Contributing

Bugs, questions or suggestions? Feel free to post an issues in the issue tracker or to make a pull request!