| 1 |
ChangeLog |
| 2 |
========= |
| 3 |
|
| 4 |
2.10.0 (2022-05-26) |
| 5 |
------------------- |
| 6 |
|
| 7 |
*New:* |
| 8 |
|
| 9 |
* `132 <https://github.com/rbarrois/python-semanticversion/issues/132>`_: |
| 10 |
Ensure sorting a collection of versions is always stable, even with |
| 11 |
build metadata. |
| 12 |
|
| 13 |
|
| 14 |
2.9.0 (2022-02-06) |
| 15 |
------------------ |
| 16 |
|
| 17 |
*New:* |
| 18 |
|
| 19 |
* Add support for Django 3.1, 3.2, 4.0 |
| 20 |
* Add support for Python 3.7 / 3.8 / 3.9 / 3.10 |
| 21 |
|
| 22 |
|
| 23 |
2.8.5 (2020-04-29) |
| 24 |
------------------ |
| 25 |
|
| 26 |
*Bugfix:* |
| 27 |
|
| 28 |
* `98 <https://github.com/rbarrois/python-semanticversion/issues/98>`_: |
| 29 |
Properly handle wildcards in ``SimpleSpec`` (e.g. ``==1.2.*``). |
| 30 |
|
| 31 |
|
| 32 |
2.8.4 (2019-12-21) |
| 33 |
------------------ |
| 34 |
|
| 35 |
*Bugfix:* |
| 36 |
|
| 37 |
* `#89 <https://github.com/rbarrois/python-semanticversion/issues/89>`_: |
| 38 |
Properly coerce versions with leading zeroes in components (e.g. |
| 39 |
``1.01.007``) |
| 40 |
|
| 41 |
|
| 42 |
2.8.3 (2019-11-21) |
| 43 |
------------------ |
| 44 |
|
| 45 |
*New:* |
| 46 |
- Add `Clause.prettyprint()` for debugging |
| 47 |
|
| 48 |
*Bugfix:* |
| 49 |
|
| 50 |
* `#86 <https://github.com/rbarrois/python-semanticversion/issues/86>`_: |
| 51 |
Fix handling of prerelease ranges within `NpmSpec` |
| 52 |
|
| 53 |
|
| 54 |
2.8.2 (2019-09-06) |
| 55 |
------------------ |
| 56 |
|
| 57 |
*Bugfix:* |
| 58 |
|
| 59 |
* `#82 <https://github.com/rbarrois/python-semanticversion/issues/82>`_: |
| 60 |
Restore computation of ``Spec.specs`` for single-term expressions |
| 61 |
(``>=0.1.2``) |
| 62 |
|
| 63 |
|
| 64 |
2.8.1 (2019-08-29) |
| 65 |
------------------ |
| 66 |
|
| 67 |
*Bugfix:* |
| 68 |
|
| 69 |
* Restored attribute ``Spec.specs``, removed by mistake during the refactor. |
| 70 |
|
| 71 |
|
| 72 |
2.8.0 (2019-08-29) |
| 73 |
------------------ |
| 74 |
|
| 75 |
*New:* |
| 76 |
|
| 77 |
* Restore support for Python 2. |
| 78 |
|
| 79 |
|
| 80 |
2.7.1 (2019-08-28) |
| 81 |
------------------ |
| 82 |
|
| 83 |
*Bugfix:* |
| 84 |
|
| 85 |
* Fix parsing of npm-based caret expressions. |
| 86 |
|
| 87 |
|
| 88 |
2.7.0 (2019-08-28) |
| 89 |
------------------ |
| 90 |
|
| 91 |
This release brings a couple of significant changes: |
| 92 |
|
| 93 |
- Allow to define several range description syntaxes (``SimpleSpec``, ``NpmSpec``, ...) |
| 94 |
- Fix bugs and unexpected behaviours in the ``SimpleSpec`` implementation. |
| 95 |
|
| 96 |
Backwards compatibility has been kept, but users should adjust their code for the new features: |
| 97 |
|
| 98 |
- Use ``SimpleSpec`` instead of ``Spec`` |
| 99 |
- Replace calls to ``Version('1.2', partial=True)`` with ``SimpleSpec('~1.2')`` |
| 100 |
- ``iter(some_spec)`` is deprecated. |
| 101 |
|
| 102 |
*New:* |
| 103 |
|
| 104 |
* Allow creation of a ``Version`` directly from parsed components, as keyword arguments |
| 105 |
(``Version(major=1, minor=2, patch=3)``) |
| 106 |
* Add ``Version.truncate()`` to build a truncated copy of a ``Version`` |
| 107 |
* Add ``NpmSpec(...)``, following strict NPM matching rules (https://github.com/npm/node-semver#ranges) |
| 108 |
* Add ``Spec.parse('xxx', syntax='<syntax>')`` for simpler multi-syntax support |
| 109 |
* Add ``Version().precedence_key``, for use in ``sort(versions, key=lambda v: v.precedence_key)`` calls. |
| 110 |
The contents of this attribute is an implementation detail. |
| 111 |
|
| 112 |
*Bugfix:* |
| 113 |
|
| 114 |
* Fix inconsistent behaviour regarding versions with a prerelease specification. |
| 115 |
|
| 116 |
*Deprecated:* |
| 117 |
|
| 118 |
* Deprecate the ``Spec`` class (Removed in 3.1); use the ``SimpleSpec`` class instead |
| 119 |
* Deprecate the internal ``SpecItem`` class (Removed in 3.0). |
| 120 |
* Deprecate the ``partial=True`` form of ``Version``; use ``SimpleSpec`` instead. |
| 121 |
|
| 122 |
*Removed:* |
| 123 |
|
| 124 |
* Remove support for Python2 (End of life 4 months after this release) |
| 125 |
|
| 126 |
*Refactor:* |
| 127 |
|
| 128 |
* Switch spec computation to a two-step process: convert the spec to a combination |
| 129 |
of simple comparisons with clear semantics, then use those. |
| 130 |
|
| 131 |
|
| 132 |
2.6.0 (2016-09-25) |
| 133 |
------------------ |
| 134 |
|
| 135 |
*New:* |
| 136 |
|
| 137 |
* `#43 <https://github.com/rbarrois/python-semanticversion/issues/43>`_: |
| 138 |
Add support for Django up to 1.10. |
| 139 |
|
| 140 |
*Removed:* |
| 141 |
|
| 142 |
* Remove support for Django<1.7 |
| 143 |
|
| 144 |
*Bugfix:* |
| 145 |
|
| 146 |
* `#35 <https://github.com/rbarrois/python-semanticversion/issues/35>`_: |
| 147 |
Properly handle `^0.X.Y` in a NPM-compatible way |
| 148 |
|
| 149 |
2.5.0 (2016-02-12) |
| 150 |
------------------ |
| 151 |
|
| 152 |
*Bugfix:* |
| 153 |
|
| 154 |
`#18 <https://github.com/rbarrois/python-semanticversion/issues/18>`_: According to SemVer 2.0.0, build numbers aren't ordered. |
| 155 |
|
| 156 |
* Remove specs of the ``Spec('<1.1.3+')`` form |
| 157 |
* Comparing ``Version('0.1.0')`` to ``Version('0.1.0+bcd')`` has new |
| 158 |
rules:: |
| 159 |
|
| 160 |
>>> Version('0.1.0+1') == Version('0.1.0+bcd') |
| 161 |
False |
| 162 |
>>> Version('0.1.0+1') != Version('0.1.0+bcd') |
| 163 |
True |
| 164 |
>>> Version('0.1.0+1') < Version('0.1.0+bcd') |
| 165 |
False |
| 166 |
>>> Version('0.1.0+1') > Version('0.1.0+bcd') |
| 167 |
False |
| 168 |
>>> Version('0.1.0+1') <= Version('0.1.0+bcd') |
| 169 |
False |
| 170 |
>>> Version('0.1.0+1') >= Version('0.1.0+bcd') |
| 171 |
False |
| 172 |
>>> compare(Version('0.1.0+1'), Version('0.1.0+bcd')) |
| 173 |
NotImplemented |
| 174 |
|
| 175 |
* :func:`semantic_version.compare` returns ``NotImplemented`` when its |
| 176 |
parameters differ only by build metadata |
| 177 |
* ``Spec('<=1.3.0')`` now matches ``Version('1.3.0+abde24fe883')`` |
| 178 |
|
| 179 |
* `#24 <https://github.com/rbarrois/python-semanticversion/issues/24>`_: Fix handling of bumping pre-release versions, thanks to @minchinweb. |
| 180 |
* `#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 |
| 181 |
|
| 182 |
2.4.2 (2015-07-02) |
| 183 |
------------------ |
| 184 |
|
| 185 |
*Bugfix:* |
| 186 |
|
| 187 |
* Fix tests for Django 1.7+, thanks to @mhrivnak. |
| 188 |
|
| 189 |
2.4.1 (2015-04-01) |
| 190 |
------------------ |
| 191 |
|
| 192 |
*Bugfix:* |
| 193 |
|
| 194 |
* Fix packaging metadata (advertise Python 3.4 support) |
| 195 |
|
| 196 |
2.4.0 (2015-04-01) |
| 197 |
------------------ |
| 198 |
|
| 199 |
*New:* |
| 200 |
|
| 201 |
* `#16 <https://github.com/rbarrois/python-semanticversion/issues/16>`_: Add an API for bumping versions, |
| 202 |
by @RickEyre. |
| 203 |
|
| 204 |
2.3.1 (2014-09-24) |
| 205 |
------------------ |
| 206 |
|
| 207 |
*Bugfix:* |
| 208 |
|
| 209 |
* `#13 <https://github.com/rbarrois/python-semanticversion/issues/13>`_: Fix handling of files encoding |
| 210 |
in ``setup.py``. |
| 211 |
|
| 212 |
2.3.0 (2014-03-16) |
| 213 |
------------------ |
| 214 |
|
| 215 |
*New:* |
| 216 |
|
| 217 |
* Handle the full ``semver-2.0.0`` specifications (instead of the ``2.0.0-rc2`` of previous releases) |
| 218 |
* `#8 <https://github.com/rbarrois/python-semanticversion/issues/8>`_: Allow ``'*'`` as a valid version spec |
| 219 |
|
| 220 |
|
| 221 |
2.2.2 (2013-12-23) |
| 222 |
------------------ |
| 223 |
|
| 224 |
*Bugfix:* |
| 225 |
|
| 226 |
* `#5 <https://github.com/rbarrois/python-semanticversion/issues/5>`_: Fix packaging (broken |
| 227 |
symlinks, old-style distutils, etc.) |
| 228 |
|
| 229 |
2.2.1 (2013-10-29) |
| 230 |
------------------ |
| 231 |
|
| 232 |
*Bugfix:* |
| 233 |
|
| 234 |
* `#2 <https://github.com/rbarrois/python-semanticversion/issues/2>`_: Properly expose |
| 235 |
:func:`~semantic_version.validate` as a top-level module function. |
| 236 |
|
| 237 |
2.2.0 (2013-03-22) |
| 238 |
------------------ |
| 239 |
|
| 240 |
*Bugfix:* |
| 241 |
|
| 242 |
* `#1 <https://github.com/rbarrois/python-semanticversion/issues/1>`_: Allow partial |
| 243 |
versions without minor or patch level |
| 244 |
|
| 245 |
*New:* |
| 246 |
|
| 247 |
* Add the :meth:`Version.coerce <semantic_version.Version.coerce>` class method to |
| 248 |
:class:`~semantic_version.Version` class for mapping arbitrary version strings to |
| 249 |
semver. |
| 250 |
* Add the :func:`~semantic_version.validate` method to validate a version |
| 251 |
string against the SemVer rules. |
| 252 |
* Full Python3 support |
| 253 |
|
| 254 |
2.1.2 (2012-05-22) |
| 255 |
------------------ |
| 256 |
|
| 257 |
*Bugfix:* |
| 258 |
|
| 259 |
* Properly validate :class:`~semantic_version.django_fields.VersionField` and |
| 260 |
:class:`~semantic_version.django_fields.SpecField`. |
| 261 |
|
| 262 |
2.1.1 (2012-05-22) |
| 263 |
------------------ |
| 264 |
|
| 265 |
*New:* |
| 266 |
|
| 267 |
* Add introspection rules for south |
| 268 |
|
| 269 |
2.1.0 (2012-05-22) |
| 270 |
------------------ |
| 271 |
|
| 272 |
*New:* |
| 273 |
|
| 274 |
* Add :func:`semantic_version.Spec.filter` (filter a list of :class:`~semantic_version.Version`) |
| 275 |
* Add :func:`semantic_version.Spec.select` (select the highest |
| 276 |
:class:`~semantic_version.Version` from a list) |
| 277 |
* Update :func:`semantic_version.Version.__repr__` |
| 278 |
|
| 279 |
2.0.0 (2012-05-22) |
| 280 |
------------------ |
| 281 |
|
| 282 |
*Backwards incompatible changes:* |
| 283 |
|
| 284 |
* Removed "loose" specification support |
| 285 |
* Cleanup :class:`~semantic_version.Spec` to be more intuitive. |
| 286 |
* Merge Spec and SpecList into :class:`~semantic_version.Spec`. |
| 287 |
* Remove :class:`~semantic_version.django_fields.SpecListField` |
| 288 |
|
| 289 |
1.2.0 (2012-05-18) |
| 290 |
------------------ |
| 291 |
|
| 292 |
*New:* |
| 293 |
|
| 294 |
* Allow split specifications when instantiating a |
| 295 |
:class:`~semantic_version.SpecList`:: |
| 296 |
|
| 297 |
>>> SpecList('>=0.1.1', '!=0.1.3') == SpecList('>=0.1.1,!=0.1.3') |
| 298 |
True |
| 299 |
|
| 300 |
1.1.0 (2012-05-18) |
| 301 |
------------------ |
| 302 |
|
| 303 |
*New:* |
| 304 |
|
| 305 |
* Improved "loose" specification support (``>~``, ``<~``, ``!~``) |
| 306 |
* Introduced "not equal" specifications (``!=``, ``!~``) |
| 307 |
* :class:`~semantic_version.SpecList` class combining many :class:`~semantic_version.Spec` |
| 308 |
* Add :class:`~semantic_version.django_fields.SpecListField` to store a :class:`~semantic_version.SpecList`. |
| 309 |
|
| 310 |
1.0.0 (2012-05-17) |
| 311 |
------------------ |
| 312 |
|
| 313 |
First public release. |
| 314 |
|
| 315 |
*New:* |
| 316 |
|
| 317 |
* :class:`~semantic_version.Version` and :class:`~semantic_version.Spec` classes |
| 318 |
* Related django fields: :class:`~semantic_version.django_fields.VersionField` |
| 319 |
and :class:`~semantic_version.django_fields.SpecField` |
| 320 |
|
| 321 |
.. vim:et:ts=4:sw=4:tw=79:ft=rst: |