-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Enable universal wheel build on CI #883
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,7 +7,7 @@ Changelog | |
file is managed by towncrier. You *may* edit previous change logs to | ||
fix problems like typo corrections or such. | ||
To add a new change log entry, please see | ||
https://pip.pypa.io/en/latest/development/#adding-a-news-entry | ||
https://pip.pypa.io/en/latest/development/contributing/#news-entries | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This update could be useful as a separate PR. |
||
we named the news folder "changes". | ||
|
||
WARNING: Don't drop the next directive! | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Enable publishing a universal (pure Python) wheel on PyPI | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The change notes should use the past tense with the end-users as the target audience in mind. They should include full sentences with periods et al. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import os | ||
import platform | ||
|
||
NO_EXTENSIONS = bool(os.environ.get("MULTIDICT_NO_EXTENSIONS")) | ||
NO_EXTENSIONS = os.environ.get("MULTIDICT_NO_EXTENSIONS", "0") == "1" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a semantic change that isn't even mentioned in the changelog. It's undesired at this point. But if we were to change it, this would mean a feature PR, made with more care. |
||
|
||
PYPY = platform.python_implementation() == "PyPy" | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
|
||
from setuptools import Extension, setup | ||
|
||
NO_EXTENSIONS = bool(os.environ.get("MULTIDICT_NO_EXTENSIONS")) | ||
NO_EXTENSIONS = os.environ.get("MULTIDICT_NO_EXTENSIONS", "0") == "1" | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same as the previous comment. Although, it doesn't matter much now, since I'll align the packaging with frozenlist and yarl soon. |
||
|
||
if sys.implementation.name != "cpython": | ||
NO_EXTENSIONS = True | ||
|
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.
This is not the right places to add it. It would essentially run the same wheel creation under each Python version + waste a CI job. It can be done together with the sdist. Although, that should also be updated as it still invokes
setup.py
.I'm doing a round of maintenance updates across the repos, including packaging and CI changes. frozenlist and yarl are updated, multidict is next on my list. So I'll take care of this in a standardized way.