Conversation
packaging/version.py
Outdated
There was a problem hiding this comment.
more than just sorting, the fact that you're allowing letters at all.
the spec is written to only support -N[.N]+], although there was a recent conversation to change that.
There was a problem hiding this comment.
There was a problem hiding this comment.
I mean gosh, it's a whole 2 days old, keep up! ;)
There was a problem hiding this comment.
ok, that hasn't made it up to the PEP page yet.
There was a problem hiding this comment.
I had brought it up recently here: https://mail.python.org/pipermail/distutils-sig/2014-May/024185.html
so I figured an update was coming.
Instead of normalizing 1.0 to 1, we'll continue to keep all of the digits that a version normally contains so we can more faithfully recreate it. The compare key will still continue to drop trailing zeros for comparing versions.
The : character has special connotations on Windows, which makes it an invalid character, so we'll use ! instead which is not an invalid character.
tox.ini
Outdated
There was a problem hiding this comment.
You should put the exclude in the flake8 section so that people can just run flake8 on the CLI.
There was a problem hiding this comment.
The reason I did this, was at the time the tasks were Python 3 only. That might not actually be the case anymore though.
There was a problem hiding this comment.
IIRC the things in parens in a Sphinx class definition should be base classes, not arguments for init.
There was a problem hiding this comment.
http://sphinx-doc.org/domains.html#directive-py:class seems to indicate otherwise!
TODO
~=Nis a valid operator (issue).~=N.Version()and.Version.suggest()pkg_resourcessorts them.ImplementVersion.suggest().Version().is_prereleaseor something similar.+as a separator rather than~. See issue..devNsegment (e.g.==1.0.dev1.*).===<anything>which can be used as an escape hatch for non conformant versions.Pending PEP Updates
.~=like~=1.pkg_resourcesstyle.rcandcequivalency.+instead of~for local versions..devNsegment (e.g.==1.0.dev1.*).===<anything>escape hatch.