On Tuesday, May 19, 2015 at 10:03:32 AM UTC-7, Jun Omae wrote:
>
> On Tue, May 19, 2015 at 9:41 PM, RjOllos <[email protected] <javascript:>> 
> 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 
>

Thanks, that sounds good. Setting "tag_build = post1" in setup.cfg I get a 
filename "Trac-1.1.6.post1.zip".

I've captured this contingency in the documentation, along with some other 
details about our versioning scheme:
http://trac.edgewall.org/wiki/TracDev/ReleaseChecklist#Versionidentification

- Ryan 

-- 
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.

Reply via email to