Semantic-version

Latest version: v2.10.0

Safety actively analyzes 681866 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 3 of 5

2.5.0

------------------

*Bugfix:*

`18 <https://github.com/rbarrois/python-semanticversion/issues/18>`_: According to SemVer 2.0.0, build numbers aren't ordered.

* Remove specs of the ``Spec('<1.1.3+')`` form
* Comparing ``Version('0.1.0')`` to ``Version('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

* :func:`semantic_version.compare` returns ``NotImplemented`` when its
parameters differ only by build metadata
* ``Spec('<=1.3.0')`` now matches ``Version('1.3.0+abde24fe883')``

* `24 <https://github.com/rbarrois/python-semanticversion/issues/24>`_: Fix handling of bumping pre-release versions, thanks to minchinweb.
* `30 <https://github.com/rbarrois/python-semanticversion/issues/30>`_: Add support for NPM-style ``^1.2.3`` and ``~2.3.4`` specs, thanks to skwashd

2.4.2

------------------

*Bugfix:*

* Fix tests for Django 1.7+, thanks to mhrivnak.

2.4.1

------------------

*Bugfix:*

* Fix packaging metadata (advertise Python 3.4 support)

2.4.0

------------------

*New:*

* `16 <https://github.com/rbarrois/python-semanticversion/issues/16>`_: Add an API for bumping versions,
by RickEyre.

2.3.1

------------------

*Bugfix:*

* `13 <https://github.com/rbarrois/python-semanticversion/issues/13>`_: Fix handling of files encoding
in ``setup.py``.

2.3.0

------------------

*New:*

* Handle the full ``semver-2.0.0`` specifications (instead of the ``2.0.0-rc2`` of previous releases)
* `8 <https://github.com/rbarrois/python-semanticversion/issues/8>`_: Allow ``'*'`` as a valid version spec

Page 3 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.