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

Modernize setup.py, extend Python bindings CI #1535

Merged
merged 1 commit into from
Feb 3, 2023

Conversation

nicholasjng
Copy link
Contributor

distutils is deprecated and will be removed in Python 3.12, so this commit modernizes the Python bindings setup.py file in order to future-proof the code.

On top of this, type hints were added for all of the convenience functions to make static type checking adoption easier in the future, if desired.

A context manager was added to temporarily write the Python include path to the Bazel WORKSPACE file - but unlike previously, the WORKSPACE file is reverted to its previous state after the build to not produce changes on every rebuild.

Lastly, the Python bindings test matrix was extended to all major platforms to create a more complete picture of the current state of the bindings, especially with regards to upcoming wheel builds.

@nicholasjng nicholasjng force-pushed the modernize-setup branch 2 times, most recently from 5eabb82 to 64a50e0 Compare February 2, 2023 21:26
distutils is deprecated and will be removed in Python 3.12, so this
commit modernizes the Python bindings `setup.py` file in order to
future-proof the code.

On top of this, type hints were added for all of the convenience
functions to make static type checking adoption easier in the future,
if desired.

A context manager was added to temporarily write the Python include
path to the Bazel WORKSPACE file - but unlike previously, the
WORKSPACE file is reverted to its previous state after the build to not
produce changes on every rebuild.

Lastly, the Python bindings test matrix was extended to all major
platforms to create a more complete picture of the current state of
the bindings, especially with regards to upcoming wheel builds.
@dmah42 dmah42 merged commit f59d021 into google:main Feb 3, 2023
@dmah42
Copy link
Member

dmah42 commented Feb 3, 2023

thanks

@nicholasjng nicholasjng deleted the modernize-setup branch July 10, 2023 09:57
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.

2 participants