Repository navigation
[Python 3] use build and twine to publish source and wheel - #3806
Merged
Merged
Conversation
Signed-off-by: Qijia Liu <liumeo@pku.edu.cn>
Contributor
|
Thanks I’ll look into this when I get back in 2 weeks. Give us a shout if I don’t.
Envoyé de mon iPhone
… Le 6 août 2022 à 01:02, Liumeo ***@***.***> a écrit :
Closes #3805
I'm using Python 3.9. I tried python setup.py sdist upload -r pypitest but got
...
Writing antlr4-python3-runtime-4.10.1/setup.cfg
Creating tar archive
removing 'antlr4-python3-runtime-4.10.1' (and everything under it)
running upload
Submitting dist/antlr4-python3-runtime-4.10.1.tar.gz to https://test.pypi.org/legacy/
Upload failed (400): Invalid value for blake2_256_digest. Error: Use a valid, hex-encoded, BLAKE2 message digest.
error: Upload failed (400): Invalid value for blake2_256_digest. Error: Use a valid, hex-encoded, BLAKE2 message digest.
The answer seems using twine instead, and from the link there calling setup.py should be deprecated.
So I use build and twine to publish both source and wheel to test pypi.
I also gave a try to Python 2, but python -m build gave error. I don't want to bother with that since Python 2 has reached EOL for 2 years and half. I think ANTLR should drop Python 2 support some time.
You can view, comment on, or merge this pull request online at:
#3806
Commit Summary
8868d4a use build and twine to publish source and wheel
File Changes (2 files)
M .gitignore (2)
M doc/releasing-antlr.md (13)
Patch Links:
https://github.com/antlr/antlr4/pull/3806.patch
https://github.com/antlr/antlr4/pull/3806.diff
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.
|
Member
|
So we need to change all of our setup.py files? ping @ericvergnaud |
Contributor
Author
|
It's not |
Member
|
Looks ok to me. thanks for info. @ericvergnaud ? |
Contributor
|
Hi, I'm fine if it's tested. Is it ? |
Member
|
Looks like I can test with pypitest. didn't know that existed! |
Member
|
Confirmed. It just worked. https://pypi.org/project/antlr4-python3-runtime/ |
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
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.
Closes #3805
I'm using Python 3.9. I tried
python setup.py sdist upload -r pypitestbut gotThe answer seems using
twineinstead, and from the link there callingsetup.pyshould be deprecated.So I use
buildandtwineto publish both source and wheel to test pypi.I also gave a try to Python 2, but
python -m buildgave error. I don't want to bother with that since Python 2 has reached EOL for 2 years and half. I think ANTLR should drop Python 2 support some time.