PMXBOT Log file Viewer

Help | Karma | Search:

#pypa logs for Tuesday the 15th of May, 2018

(Back to #pypa overview) (Back to channel listing) (Animate logs)
[13:41:53] <LyzardKing> Hi! I need to set the version of my python program to 18.05, but setuptools normalizes it to 18.5. Can I change this behaviour?
[13:43:28] <ngoldbaum> i don't think so
[13:43:32] <ngoldbaum> https://legacy.python.org/dev/peps/pep-0440/
[13:43:49] <ngoldbaum> although i don't see any discussion in there about leading zeros
[13:43:49] <cooperlees> I don't think that versioning is PEP440 compliant
[13:43:57] <cooperlees> O really
[13:44:07] <ngoldbaum> but it's *really* long
[13:44:14] <ngoldbaum> i just did ctrl-f "leading zeros" :)
[13:44:26] <ngoldbaum> https://github.com/pypa/setuptools/issues/302
[13:46:15] <cooperlees> Looks like you should just change your version to make life easy
[13:46:35] <ngoldbaum> yeah, use "5" for may instead of 05
[13:51:54] <LyzardKing> mmm...that's not really nice and pretty...
[13:52:15] <LyzardKing> I hoped to keep the versions yy.mm
[13:57:19] <ngoldbaum> well, you an still use that
[13:57:27] <ngoldbaum> and it will show up as that version number on pypi
[13:57:37] <ngoldbaum> but internally setuptools will strip the leading zros
[13:59:47] <LyzardKing> so is it only for the system that it's 18.5?
[14:00:30] <LyzardKing> If I want to say call it or add it as a dependency, would I have to call the version withoul the leading zero?
[14:00:51] <ngoldbaum> i don't know offhand
[14:03:56] <LyzardKing> ...I'll check. I still think it's unfortunate that I can't set a version format..but if I can get it to work it can use internally what it wants..thanks!