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

Use flit to distribute pex. #826

Merged
merged 1 commit into from
Dec 12, 2019
Merged

Conversation

jsirois
Copy link
Member

@jsirois jsirois commented Dec 12, 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

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
Copy link
Contributor

@Eric-Arellano Eric-Arellano left a 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
Copy link
Contributor

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.

Copy link
Member Author

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.

@jsirois jsirois merged commit 1c869f7 into pex-tool:master Dec 12, 2019
@jsirois jsirois deleted the issues/805-807 branch December 12, 2019 16:03

from pex.version import __version__ as __pex_version__

__version__ = __pex_version__ # N.B.: Flit uses this as out distribution version.
Copy link

@codealchemy codealchemy Dec 12, 2019

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.

@jsirois jsirois mentioned this pull request Dec 28, 2019
11 tasks
jsirois added a commit to jsirois/pex that referenced this pull request Jan 6, 2020
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.
jsirois added a commit that referenced this pull request Jan 6, 2020
This was missed in #826 but noticed creating #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.
jsirois added a commit to jsirois/pex that referenced this pull request Jan 7, 2020
This was a flub in pex-tool#826.
@jsirois jsirois mentioned this pull request Jan 7, 2020
jsirois added a commit that referenced this pull request Jan 7, 2020
This was a flub in #826.
jsirois added a commit that referenced this pull request Dec 24, 2023
This was no longer needed with the switch to the flit PEP-517 builder
back in #826 in 2019.
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.

Switch distribution publishing to twine. Move pex to a pyproject.toml build.
3 participants