-
Notifications
You must be signed in to change notification settings - Fork 73
Build wheels for Python 3.12 #275
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is "The Modern Way" and is requoired for Python 3.12. https://docs.python.org/3.12/library/importlib.metadata.html As `importlib.metadata` was added in Python 3.8, and as we still support Python 3.7, we add a fallback import for older versions.
Update: the below are now resolved Ah, the wheels build OK but it looks like are a bunch of other CI failures unrelated to this change. One related to missing And the other something to do with
|
This required updating to the latest version of `pypa/cibuildwheel`.
This reached end-of-life in June 2023: https://devguide.python.org/versions/#unsupported-versions And attempting to build the wheel fails with an error: ``` docs: install_package_deps /project> python -I -m pip install sphinx-bootstrap-theme 'sphinx>=1.6.0' docs: install_package /project> python -I -m pip install --force-reinstall --no-deps /project/.tox/.tmp/package/3/lz4-0.1.dev1180+g91fe6ef-0.editable-cp37-cp37m-linux_x86_64.whl docs: commands[0] /project> make -C docs doctest html make: Entering directory `/project/docs' sphinx-build -b doctest -d _build/doctrees . _build/doctest Running Sphinx v5.3.0 Extension error: Could not import extension sphinx.builders.linkcheck (exception: urllib3 v2.0 only supports OpenSSL 1.1.1+, currently the 'ssl' module is compiled with 'OpenSSL 1.0.2k-fips 26 Jan 2017'. See: urllib3/urllib3#2168) ```
91fe6ef
to
7182e7d
Compare
jonathanunderwood
approved these changes
Jan 1, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This required updating the
pypa/cibuildwheel
action, making a minor change to the way the current version is retrieved in the docs config, and adding an explicit dependency onsetuptools
.It also required dropping Python 3.7 support as the wheel for this no longer builds. As this reached end-of-life in June 2023 this seems reasonable and those still running against Python 3.7 can continue to use older versions of
lz4
.I've done an experimental CI build here, and verified that the Linux wheel installs correctly.
https://github.com/evansd/python-lz4/actions/runs/7289231332
Closes #274