On Tue, May 19, 2015 at 9:41 PM, RjOllos <[email protected]> wrote:
> I made an error uploading a package to PyPI yesterday and discovered that
> there has been a change that prevents re-uploading a file with the same
> name, even after deleting that file from PyPI.
>
> https://mail.python.org/pipermail/distutils-sig/2015-January/025683.html
>
> My plan is to use the version 1.0.6.1 in the filename, e.g.
> Trac-1.0.6.1.tar.gz, but not change the package metadata. Please let me know
> if you have any suggestions.
I consider versions in the filename and the metadata should be same.
Otherwise, "pip freeze" would generate Trac==1.0.6 in the output
however "pip install Trac==1.0.6" would fail, e.g. "pip install -r"
with the output.
I think we could use post-releases, .post{N} suffix. However we should
use the same version in both the filename and the metadata even with
the use of .post{N} suffix.
https://www.python.org/dev/peps/pep-0440/#post-releases
distribute 0.6.24
>>> import setuptools
>>> from pkg_resources import parse_version
>>> setuptools.__version__
'0.6'
>>> parse_version('1.0.6') < parse_version('1.0.6.post1')
True
>>> parse_version('1.0.6.post1') < parse_version('1.0.6.1')
True
>>> parse_version('1.0.6.1') < parse_version('1.0.7')
True
setuptools 16.0
>>> import setuptools
>>> from pkg_resources import parse_version
>>> setuptools.__version__
'16.0'
>>> parse_version('1.0.6') < parse_version('1.0.6.post1')
True
>>> parse_version('1.0.6.post1') < parse_version('1.0.6.1')
True
>>> parse_version('1.0.6.1') < parse_version('1.0.7')
True
--
Jun Omae <[email protected]> (大前 潤)
--
You received this message because you are subscribed to the Google Groups "Trac
Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/trac-dev.
For more options, visit https://groups.google.com/d/optout.