Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automate build and upload of CPython wheels #72

Merged
merged 20 commits into from
Jan 7, 2022
Merged

Conversation

q-posev
Copy link
Member

@q-posev q-posev commented Jan 7, 2022

Releasing Python packages for different platforms is a difficult task (see PEP 517, PEP 600).
This PR concerns automation of this process via one GitHub action, which can be triggered by a commit containing [wheel build] in its message. Currently this workflow supports:

  • Building manylinux-compatible wheels with 2010_x86_64, 2014_x86_64 and 2_24_x86_64 tags for CPython 3.6 to 3.10;
  • Building macosx-compatible wheels with macosx_10_14_x86_64 tag for CPython 3.7 to 3.10.

Also minor improvements in the Python API build process:

  • Dropped deprecated python setup.py sdist | bdist_wheel execution and replaced with the recommended python -m build --sdist --wheel;
  • Seems that the above change fixes the issue with NUMPY_INCLUDEDIR, which had to be manually specified using the script from the python/tools directory.

@q-posev q-posev merged commit dcb9760 into TREX-CoE:master Jan 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant