ChangeLog¶
2.6.0 (2016-09-25)¶
New:
- #43: Add support for Django up to 1.10.
Removed:
- Remove support for Django<1.7
Bugfix:
- #35: Properly handle ^0.X.Y in a NPM-compatible way
2.5.0 (2016-02-12)¶
Bugfix:
#18: According to SemVer 2.0.0, build numbers aren’t ordered.
Remove specs of the
Spec('<1.1.3+')
formComparing
Version('0.1.0')
toVersion('0.1.0+bcd')
has new rules:>>> 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
semantic_version.compare()
returnsNotImplemented
when its parameters differ only by build metadata
Spec('<=1.3.0')
now matchesVersion('1.3.0+abde24fe883')
#24: Fix handling of bumping pre-release versions, thanks to @minchinweb.
#30: Add support for NPM-style
^1.2.3
and~2.3.4
specs, thanks to @skwashd
2.3.0 (2014-03-16)¶
New:
- Handle the full
semver-2.0.0
specifications (instead of the2.0.0-rc2
of previous releases)- #8: Allow
'*'
as a valid version spec
2.2.0 (2013-03-22)¶
Bugfix:
- #1: Allow partial versions without minor or patch level
New:
- Add the
Version.coerce
class method toVersion
class for mapping arbitrary version strings to semver.- Add the
validate()
method to validate a version string against the SemVer rules.- Full Python3 support
2.1.0 (2012-05-22)¶
New:
- Add
semantic_version.Spec.filter()
(filter a list ofVersion
)- Add
semantic_version.Spec.select()
(select the highestVersion
from a list)- Update
semantic_version.Version.__repr__()
1.2.0 (2012-05-18)¶
New:
Allow split specifications when instantiating a
SpecList
:>>> SpecList('>=0.1.1', '!=0.1.3') == SpecList('>=0.1.1,!=0.1.3') True
1.1.0 (2012-05-18)¶
New:
- Improved “loose” specification support (
>~
,<~
,!~
)- Introduced “not equal” specifications (
!=
,!~
)SpecList
class combining manySpec
- Add
SpecListField
to store aSpecList
.
1.0.0 (2012-05-17)¶
First public release.
New:
Version
andSpec
classes- Related django fields:
VersionField
andSpecField