Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Cannot create partial versions #1
If I pass '2.0' to the
If this is intended behavior, then the documentation should be fixed to reflect that.
Indeed, the documentation is not very clear on that topic.
That's not a very useful behaviour, my plan on this topic is:
The docs are just plain wrong on the topic. They claim:
Python 2.7.3 (default, Feb 5 2013, 11:06:02) [GCC 4.2.1 Compatible Apple Clang 4.0 ((tags/Apple/clang-421.0.60))] on darwin Type "help", "copyright", "credits" or "license" for more information. >>> import semantic_version >>> v = semantic_version.Version('0.1', partial=True) Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/Users/chris.rebert/envs/frank/lib/python2.7/site-packages/semantic_version/base.py", line 64, in __init__ major, minor, patch, prerelease, build = self.parse(version_string, partial) File "/Users/chris.rebert/envs/frank/lib/python2.7/site-packages/semantic_version/base.py", line 86, in parse raise ValueError('Invalid version string: %r' % version_string) ValueError: Invalid version string: '0.1'