summaryrefslogtreecommitdiff
path: root/tests/test_match.py
Commit message (Collapse)AuthorAgeFilesLines
* Linting.Raphaël Barrois2020-07-071-0/+1
| | | | Add missing blank lines.
* Restore Python2 support.rbarrois/restore-py2Raphaël Barrois2019-08-291-0/+7
|
* Fix inconsistent matching behaviour.Raphaël Barrois2019-08-241-11/+2
| | | | | | | | According to the stated goal of "intuitive" behaviour, we want: ``Version('0.1.1-a1') not in Spec('<0.1.1')``. Tests, code and docs have been fixed.
* Lint test code.Raphaël Barrois2019-08-241-1/+0
|
* Use unittest.subTest in tests.Raphaël Barrois2019-08-241-13/+16
| | | | This provides more helpful error messages when a test fails.
* Add support for compatible release ranges, fixes #37Martin Ek2016-02-251-0/+11
|
* Fix handling pre-1.0.0 caret versions (Closes #35)Raphaël Barrois2016-02-211-1/+1
| | | | Thanks to @autopulated for pointing the issue!
* Cleanup and document fixes from #31.Raphaël Barrois2016-02-121-2/+3
| | | | The PR was broken through fixed in ``next_minor()`` / ``next_major()``.
* Merge branch 'tilde-caret' of ↵Raphaël Barrois2016-02-121-1/+28
|\ | | | | | | https://github.com/skwashd/python-semanticversion into skwashd-tilde-caret
| * Fix broken testDave Hall2015-11-301-1/+1
| |
| * Support for alternative equals specsDave Hall2015-11-291-0/+14
| | | | | | | | | | Composer assumes equals if no operator is used npm uses a single equals operator
| * Add support for npm/composer caret and tilde condition extensionsDave Hall2015-10-151-0/+13
| |
* | Remove Copyright years (Closes #28)Raphaël Barrois2016-02-121-1/+1
|/ | | | It seems that stating the copyright years is useless after all :)
* Forbid build metadata ordering (See #18)Raphaël Barrois2015-09-151-15/+17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | SemVer 2.0.0 states that "Build metadata SHOULD be ignored when determining version precedence". This means that, when comparing ``0.1.0+1`` to ``0.1.0+bcd``:: >>> Version('0.1.0+1') == Version('0.1.0+bcd') False >>> Version('0.1.0+1') != Version('0.1.0+bcd') True >>> Version('0.1.0+1') < Version('0.1.0+bcd') False >>> Version('0.1.0+1') > Version('0.1.0+bcd') False >>> Version('0.1.0+1') <= Version('0.1.0+bcd') False >>> Version('0.1.0+1') >= Version('0.1.0+bcd') False >>> compare(Version('0.1.0+1'), Version('0.1.0+bcd')) NotImplemented This change also has the following effects: - When including build metadata in a ``Spec``, the only valid options are ``Spec('==0.1.0+sth')`` and ``Spec('!=0.1.0+sth')`` - The meaning of ``Spec('==0.1.0+')`` is now "Only version 0.1.0 without build metadata" - ``Spec('==0.1.0')`` now matches ``Version('0.1.0+anything')``
* Accept '*' as a Spec (Closes #8).Raphaël Barrois2014-03-161-0/+12
| | | | Spec('*') will match all valid Version objects.
* Update copyrightRaphaël Barrois2014-03-081-1/+1
|
* Fix license string.Raphaël Barrois2013-03-211-0/+1
|
* Fix handling of partial versions (Closes #1).Raphaël Barrois2013-03-201-1/+15
|
* Happy New Year!Raphaël Barrois2013-01-021-0/+1
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Update rules and code to follow readable specifications.Raphaël Barrois2012-05-201-17/+11
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Improve support for loose matches.Raphaël Barrois2012-05-171-3/+14
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Add __contains__ to Spec.Raphaël Barrois2012-05-161-0/+11
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* s/SemanticVersion/Version/Raphaël Barrois2012-05-151-1/+1
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Rename 'RequirementSpec' to 'Spec'.Raphaël Barrois2012-05-151-4/+4
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polyconseil.fr>
* Full coverage.Raphaël Barrois2012-05-151-1/+24
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* Make test modules runable.Raphaël Barrois2012-05-151-0/+0
| | | | Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>
* More tests.Raphaël Barrois2012-05-141-0/+67
Signed-off-by: Raphaël Barrois <raphael.barrois@polytechnique.org>