-
-
Notifications
You must be signed in to change notification settings - Fork 267
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
Use flit to distribute pex. #826
Conversation
This gets rid of the tricky setup.py setuptools and wheel bootstrapping we were doing using pex vendored versions and gives us non-deprecated publishing support. In the course of adding a pyproject.toml for flit, also update pex distribution metadata to officially support Python 3.8 with 1 test tweak. CI for Python 3.8 will come in a follow-up change. Fixes pex-tool#805 Fixes pex-tool#807
d32f3e4
to
12588a5
Compare
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.
Great!
@@ -1,2 +0,0 @@ | |||
[wheel] | |||
universal = 1 |
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.
Are we still marking this somehow? I don't see it in pyproject.toml
.
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.
Its an implication of requires-python = ">=2.7,<3.9,!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*"
If you run flit build
you'll see a universal wheel gets plopped to dist/. There is no tox target for this, just tox -e publish
, but that's safe to run since pypi does not allow over-writes.
|
||
from pex.version import __version__ as __pex_version__ | ||
|
||
__version__ = __pex_version__ # N.B.: Flit uses this as out distribution version. |
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.
s/out/our ?
Edit: Just caught this came in after the merge, my mistake.
This was missed in pex-tool#826 but noticed creating pex-tool#842 where pex.pex startup was slower than expected due to not using the current (python 3.8) interpreter and instead proceeding to find all interpreters and then select the min.
This was a flub in pex-tool#826.
This was no longer needed with the switch to the flit PEP-517 builder back in #826 in 2019.
This gets rid of the tricky setup.py setuptools and wheel bootstrapping
we were doing using pex vendored versions and gives us non-deprecated
publishing support. In the course of adding a pyproject.toml for flit,
also update pex distribution metadata to officially support Python 3.8
with 1 test tweak. CI for Python 3.8 will come in a follow-up change.
Fixes #805
Fixes #807
Work towards #806