Uploading to PyPI (and conda
)
#395
Replies: 2 comments 4 replies
-
There are two stages to this. The first is to make sure that the version is ready for release. A possibly incomplete checklist for this would be:
When ready to release:
Create $ git tag -a vX.X.X -m "Release version X.X.X" The mechanisms for
|
Beta Was this translation helpful? Give feedback.
-
If there are any problems with the above, I would be grateful if you would please include the corrections below as well as in the ultimate documentation. |
Beta Was this translation helpful? Give feedback.
-
I'd like to ensure I am following proper procedure for uploading to PyPI (specifically for this package, in case there is a specific workflow that is desired), and also have that discussion documented here, with it potentially being moved to some part of the actual documentation once a set procedure is identified.
Steps as I understand them
1. Ensure local branch is up-to-date with the changes to be included.
2. Then run:
which generates a new
.tar.gz
.13. Publish using:
python -m twine upload --repository-url https://pypi.org/project/pyani/ dist/*
or, perhaps, a slight variation on that.
Questions
Do I need to do anything else prior to uploading, or should I be running
to generate the files for upload instead? It looks like there is currently a wheel on PyPI:
pyani-0.2.11-py3-none-any.whl
.Footnotes
Related to the version numbering. PyPI currently shows
pyani 0.2.11
, and the file I have just generated is calledpyani-0.2.11.tar.gz
. It seems that it should bepyani-0.2.12.tar.gz
, and I believe this discrepancy is perhaps because this is an untracked file(?) that @widdowquinn would have generated for0.2.11
. I believe that running this command just automatically increments the file name based on existing.tar.gz
files, but it may also look at checksums or something, in order to determine if any changes have been made. If the former is correct, then I can just run the command again to get the file to upload. However, if not, I'm unsure how to force increment it so that there is a new version number attached to the changes. ↩Beta Was this translation helpful? Give feedback.
All reactions