| 1 |
Changelog |
| 2 |
--------- |
| 3 |
|
| 4 |
21.3 - 2021-11-17 |
| 5 |
~~~~~~~~~~~~~~~~~ |
| 6 |
|
| 7 |
* Add a ``pp3-none-any`` tag (:issue:`311`) |
| 8 |
* Replace the blank pyparsing 3 exclusion with a 3.0.5 exclusion (:issue:`481`, :issue:`486`) |
| 9 |
* Fix a spelling mistake (:issue:`479`) |
| 10 |
|
| 11 |
21.2 - 2021-10-29 |
| 12 |
~~~~~~~~~~~~~~~~~ |
| 13 |
|
| 14 |
* Update documentation entry for 21.1. |
| 15 |
|
| 16 |
21.1 - 2021-10-29 |
| 17 |
~~~~~~~~~~~~~~~~~ |
| 18 |
|
| 19 |
* Update pin to pyparsing to exclude 3.0.0. |
| 20 |
|
| 21 |
21.0 - 2021-07-03 |
| 22 |
~~~~~~~~~~~~~~~~~ |
| 23 |
|
| 24 |
* PEP 656: musllinux support (:issue:`411`) |
| 25 |
* Drop support for Python 2.7, Python 3.4 and Python 3.5. |
| 26 |
* Replace distutils usage with sysconfig (:issue:`396`) |
| 27 |
* Add support for zip files in ``parse_sdist_filename`` (:issue:`429`) |
| 28 |
* Use cached ``_hash`` attribute to short-circuit tag equality comparisons (:issue:`417`) |
| 29 |
* Specify the default value for the ``specifier`` argument to ``SpecifierSet`` (:issue:`437`) |
| 30 |
* Proper keyword-only "warn" argument in packaging.tags (:issue:`403`) |
| 31 |
* Correctly remove prerelease suffixes from ~= check (:issue:`366`) |
| 32 |
* Fix type hints for ``Version.post`` and ``Version.dev`` (:issue:`393`) |
| 33 |
* Use typing alias ``UnparsedVersion`` (:issue:`398`) |
| 34 |
* Improve type inference for ``packaging.specifiers.filter()`` (:issue:`430`) |
| 35 |
* Tighten the return type of ``canonicalize_version()`` (:issue:`402`) |
| 36 |
|
| 37 |
20.9 - 2021-01-29 |
| 38 |
~~~~~~~~~~~~~~~~~ |
| 39 |
|
| 40 |
* Run `isort <https://pypi.org/project/isort/>`_ over the code base (:issue:`377`) |
| 41 |
* Add support for the ``macosx_10_*_universal2`` platform tags (:issue:`379`) |
| 42 |
* Introduce ``packaging.utils.parse_wheel_filename()`` and ``parse_sdist_filename()`` |
| 43 |
(:issue:`387` and :issue:`389`) |
| 44 |
|
| 45 |
20.8 - 2020-12-11 |
| 46 |
~~~~~~~~~~~~~~~~~ |
| 47 |
|
| 48 |
* Revert back to setuptools for compatibility purposes for some Linux distros (:issue:`363`) |
| 49 |
* Do not insert an underscore in wheel tags when the interpreter version number |
| 50 |
is more than 2 digits (:issue:`372`) |
| 51 |
|
| 52 |
20.7 - 2020-11-28 |
| 53 |
~~~~~~~~~~~~~~~~~ |
| 54 |
|
| 55 |
No unreleased changes. |
| 56 |
|
| 57 |
20.6 - 2020-11-28 |
| 58 |
~~~~~~~~~~~~~~~~~ |
| 59 |
|
| 60 |
.. note:: This release was subsequently yanked, and these changes were included in 20.7. |
| 61 |
|
| 62 |
* Fix flit configuration, to include LICENSE files (:issue:`357`) |
| 63 |
* Make `intel` a recognized CPU architecture for the `universal` macOS platform tag (:issue:`361`) |
| 64 |
* Add some missing type hints to `packaging.requirements` (issue:`350`) |
| 65 |
|
| 66 |
20.5 - 2020-11-27 |
| 67 |
~~~~~~~~~~~~~~~~~ |
| 68 |
|
| 69 |
* Officially support Python 3.9 (:issue:`343`) |
| 70 |
* Deprecate the ``LegacyVersion`` and ``LegacySpecifier`` classes (:issue:`321`) |
| 71 |
* Handle ``OSError`` on non-dynamic executables when attempting to resolve |
| 72 |
the glibc version string. |
| 73 |
|
| 74 |
20.4 - 2020-05-19 |
| 75 |
~~~~~~~~~~~~~~~~~ |
| 76 |
|
| 77 |
* Canonicalize version before comparing specifiers. (:issue:`282`) |
| 78 |
* Change type hint for ``canonicalize_name`` to return |
| 79 |
``packaging.utils.NormalizedName``. |
| 80 |
This enables the use of static typing tools (like mypy) to detect mixing of |
| 81 |
normalized and un-normalized names. |
| 82 |
|
| 83 |
20.3 - 2020-03-05 |
| 84 |
~~~~~~~~~~~~~~~~~ |
| 85 |
|
| 86 |
* Fix changelog for 20.2. |
| 87 |
|
| 88 |
20.2 - 2020-03-05 |
| 89 |
~~~~~~~~~~~~~~~~~ |
| 90 |
|
| 91 |
* Fix a bug that caused a 32-bit OS that runs on a 64-bit ARM CPU (e.g. ARM-v8, |
| 92 |
aarch64), to report the wrong bitness. |
| 93 |
|
| 94 |
20.1 - 2020-01-24 |
| 95 |
~~~~~~~~~~~~~~~~~~~ |
| 96 |
|
| 97 |
* Fix a bug caused by reuse of an exhausted iterator. (:issue:`257`) |
| 98 |
|
| 99 |
20.0 - 2020-01-06 |
| 100 |
~~~~~~~~~~~~~~~~~ |
| 101 |
|
| 102 |
* Add type hints (:issue:`191`) |
| 103 |
|
| 104 |
* Add proper trove classifiers for PyPy support (:issue:`198`) |
| 105 |
|
| 106 |
* Scale back depending on ``ctypes`` for manylinux support detection (:issue:`171`) |
| 107 |
|
| 108 |
* Use ``sys.implementation.name`` where appropriate for ``packaging.tags`` (:issue:`193`) |
| 109 |
|
| 110 |
* Expand upon the API provided by ``packaging.tags``: ``interpreter_name()``, ``mac_platforms()``, ``compatible_tags()``, ``cpython_tags()``, ``generic_tags()`` (:issue:`187`) |
| 111 |
|
| 112 |
* Officially support Python 3.8 (:issue:`232`) |
| 113 |
|
| 114 |
* Add ``major``, ``minor``, and ``micro`` aliases to ``packaging.version.Version`` (:issue:`226`) |
| 115 |
|
| 116 |
* Properly mark ``packaging`` has being fully typed by adding a `py.typed` file (:issue:`226`) |
| 117 |
|
| 118 |
19.2 - 2019-09-18 |
| 119 |
~~~~~~~~~~~~~~~~~ |
| 120 |
|
| 121 |
* Remove dependency on ``attrs`` (:issue:`178`, :issue:`179`) |
| 122 |
|
| 123 |
* Use appropriate fallbacks for CPython ABI tag (:issue:`181`, :issue:`185`) |
| 124 |
|
| 125 |
* Add manylinux2014 support (:issue:`186`) |
| 126 |
|
| 127 |
* Improve ABI detection (:issue:`181`) |
| 128 |
|
| 129 |
* Properly handle debug wheels for Python 3.8 (:issue:`172`) |
| 130 |
|
| 131 |
* Improve detection of debug builds on Windows (:issue:`194`) |
| 132 |
|
| 133 |
19.1 - 2019-07-30 |
| 134 |
~~~~~~~~~~~~~~~~~ |
| 135 |
|
| 136 |
* Add the ``packaging.tags`` module. (:issue:`156`) |
| 137 |
|
| 138 |
* Correctly handle two-digit versions in ``python_version`` (:issue:`119`) |
| 139 |
|
| 140 |
|
| 141 |
19.0 - 2019-01-20 |
| 142 |
~~~~~~~~~~~~~~~~~ |
| 143 |
|
| 144 |
* Fix string representation of PEP 508 direct URL requirements with markers. |
| 145 |
|
| 146 |
* Better handling of file URLs |
| 147 |
|
| 148 |
This allows for using ``file:///absolute/path``, which was previously |
| 149 |
prevented due to the missing ``netloc``. |
| 150 |
|
| 151 |
This allows for all file URLs that ``urlunparse`` turns back into the |
| 152 |
original URL to be valid. |
| 153 |
|
| 154 |
|
| 155 |
18.0 - 2018-09-26 |
| 156 |
~~~~~~~~~~~~~~~~~ |
| 157 |
|
| 158 |
* Improve error messages when invalid requirements are given. (:issue:`129`) |
| 159 |
|
| 160 |
|
| 161 |
17.1 - 2017-02-28 |
| 162 |
~~~~~~~~~~~~~~~~~ |
| 163 |
|
| 164 |
* Fix ``utils.canonicalize_version`` when supplying non PEP 440 versions. |
| 165 |
|
| 166 |
|
| 167 |
17.0 - 2017-02-28 |
| 168 |
~~~~~~~~~~~~~~~~~ |
| 169 |
|
| 170 |
* Drop support for python 2.6, 3.2, and 3.3. |
| 171 |
|
| 172 |
* Define minimal pyparsing version to 2.0.2 (:issue:`91`). |
| 173 |
|
| 174 |
* Add ``epoch``, ``release``, ``pre``, ``dev``, and ``post`` attributes to |
| 175 |
``Version`` and ``LegacyVersion`` (:issue:`34`). |
| 176 |
|
| 177 |
* Add ``Version().is_devrelease`` and ``LegacyVersion().is_devrelease`` to |
| 178 |
make it easy to determine if a release is a development release. |
| 179 |
|
| 180 |
* Add ``utils.canonicalize_version`` to canonicalize version strings or |
| 181 |
``Version`` instances (:issue:`121`). |
| 182 |
|
| 183 |
|
| 184 |
16.8 - 2016-10-29 |
| 185 |
~~~~~~~~~~~~~~~~~ |
| 186 |
|
| 187 |
* Fix markers that utilize ``in`` so that they render correctly. |
| 188 |
|
| 189 |
* Fix an erroneous test on Python RC releases. |
| 190 |
|
| 191 |
|
| 192 |
16.7 - 2016-04-23 |
| 193 |
~~~~~~~~~~~~~~~~~ |
| 194 |
|
| 195 |
* Add support for the deprecated ``python_implementation`` marker which was |
| 196 |
an undocumented setuptools marker in addition to the newer markers. |
| 197 |
|
| 198 |
|
| 199 |
16.6 - 2016-03-29 |
| 200 |
~~~~~~~~~~~~~~~~~ |
| 201 |
|
| 202 |
* Add support for the deprecated, PEP 345 environment markers in addition to |
| 203 |
the newer markers. |
| 204 |
|
| 205 |
|
| 206 |
16.5 - 2016-02-26 |
| 207 |
~~~~~~~~~~~~~~~~~ |
| 208 |
|
| 209 |
* Fix a regression in parsing requirements with whitespaces between the comma |
| 210 |
separators. |
| 211 |
|
| 212 |
|
| 213 |
16.4 - 2016-02-22 |
| 214 |
~~~~~~~~~~~~~~~~~ |
| 215 |
|
| 216 |
* Fix a regression in parsing requirements like ``foo (==4)``. |
| 217 |
|
| 218 |
|
| 219 |
16.3 - 2016-02-21 |
| 220 |
~~~~~~~~~~~~~~~~~ |
| 221 |
|
| 222 |
* Fix a bug where ``packaging.requirements:Requirement`` was overly strict when |
| 223 |
matching legacy requirements. |
| 224 |
|
| 225 |
|
| 226 |
16.2 - 2016-02-09 |
| 227 |
~~~~~~~~~~~~~~~~~ |
| 228 |
|
| 229 |
* Add a function that implements the name canonicalization from PEP 503. |
| 230 |
|
| 231 |
|
| 232 |
16.1 - 2016-02-07 |
| 233 |
~~~~~~~~~~~~~~~~~ |
| 234 |
|
| 235 |
* Implement requirement specifiers from PEP 508. |
| 236 |
|
| 237 |
|
| 238 |
16.0 - 2016-01-19 |
| 239 |
~~~~~~~~~~~~~~~~~ |
| 240 |
|
| 241 |
* Relicense so that packaging is available under *either* the Apache License, |
| 242 |
Version 2.0 or a 2 Clause BSD license. |
| 243 |
|
| 244 |
* Support installation of packaging when only distutils is available. |
| 245 |
|
| 246 |
* Fix ``==`` comparison when there is a prefix and a local version in play. |
| 247 |
(:issue:`41`). |
| 248 |
|
| 249 |
* Implement environment markers from PEP 508. |
| 250 |
|
| 251 |
|
| 252 |
15.3 - 2015-08-01 |
| 253 |
~~~~~~~~~~~~~~~~~ |
| 254 |
|
| 255 |
* Normalize post-release spellings for rev/r prefixes. :issue:`35` |
| 256 |
|
| 257 |
|
| 258 |
15.2 - 2015-05-13 |
| 259 |
~~~~~~~~~~~~~~~~~ |
| 260 |
|
| 261 |
* Fix an error where the arbitrary specifier (``===``) was not correctly |
| 262 |
allowing pre-releases when it was being used. |
| 263 |
|
| 264 |
* Expose the specifier and version parts through properties on the |
| 265 |
``Specifier`` classes. |
| 266 |
|
| 267 |
* Allow iterating over the ``SpecifierSet`` to get access to all of the |
| 268 |
``Specifier`` instances. |
| 269 |
|
| 270 |
* Allow testing if a version is contained within a specifier via the ``in`` |
| 271 |
operator. |
| 272 |
|
| 273 |
|
| 274 |
15.1 - 2015-04-13 |
| 275 |
~~~~~~~~~~~~~~~~~ |
| 276 |
|
| 277 |
* Fix a logic error that was causing inconsistent answers about whether or not |
| 278 |
a pre-release was contained within a ``SpecifierSet`` or not. |
| 279 |
|
| 280 |
|
| 281 |
15.0 - 2015-01-02 |
| 282 |
~~~~~~~~~~~~~~~~~ |
| 283 |
|
| 284 |
* Add ``Version().is_postrelease`` and ``LegacyVersion().is_postrelease`` to |
| 285 |
make it easy to determine if a release is a post release. |
| 286 |
|
| 287 |
* Add ``Version().base_version`` and ``LegacyVersion().base_version`` to make |
| 288 |
it easy to get the public version without any pre or post release markers. |
| 289 |
|
| 290 |
* Support the update to PEP 440 which removed the implied ``!=V.*`` when using |
| 291 |
either ``>V`` or ``<V`` and which instead special cased the handling of |
| 292 |
pre-releases, post-releases, and local versions when using ``>V`` or ``<V``. |
| 293 |
|
| 294 |
|
| 295 |
14.5 - 2014-12-17 |
| 296 |
~~~~~~~~~~~~~~~~~ |
| 297 |
|
| 298 |
* Normalize release candidates as ``rc`` instead of ``c``. |
| 299 |
|
| 300 |
* Expose the ``VERSION_PATTERN`` constant, a regular expression matching |
| 301 |
a valid version. |
| 302 |
|
| 303 |
|
| 304 |
14.4 - 2014-12-15 |
| 305 |
~~~~~~~~~~~~~~~~~ |
| 306 |
|
| 307 |
* Ensure that versions are normalized before comparison when used in a |
| 308 |
specifier with a less than (``<``) or greater than (``>``) operator. |
| 309 |
|
| 310 |
|
| 311 |
14.3 - 2014-11-19 |
| 312 |
~~~~~~~~~~~~~~~~~ |
| 313 |
|
| 314 |
* **BACKWARDS INCOMPATIBLE** Refactor specifier support so that it can sanely |
| 315 |
handle legacy specifiers as well as PEP 440 specifiers. |
| 316 |
|
| 317 |
* **BACKWARDS INCOMPATIBLE** Move the specifier support out of |
| 318 |
``packaging.version`` into ``packaging.specifiers``. |
| 319 |
|
| 320 |
|
| 321 |
14.2 - 2014-09-10 |
| 322 |
~~~~~~~~~~~~~~~~~ |
| 323 |
|
| 324 |
* Add prerelease support to ``Specifier``. |
| 325 |
* Remove the ability to do ``item in Specifier()`` and replace it with |
| 326 |
``Specifier().contains(item)`` in order to allow flags that signal if a |
| 327 |
prerelease should be accepted or not. |
| 328 |
* Add a method ``Specifier().filter()`` which will take an iterable and returns |
| 329 |
an iterable with items that do not match the specifier filtered out. |
| 330 |
|
| 331 |
|
| 332 |
14.1 - 2014-09-08 |
| 333 |
~~~~~~~~~~~~~~~~~ |
| 334 |
|
| 335 |
* Allow ``LegacyVersion`` and ``Version`` to be sorted together. |
| 336 |
* Add ``packaging.version.parse()`` to enable easily parsing a version string |
| 337 |
as either a ``Version`` or a ``LegacyVersion`` depending on it's PEP 440 |
| 338 |
validity. |
| 339 |
|
| 340 |
|
| 341 |
14.0 - 2014-09-05 |
| 342 |
~~~~~~~~~~~~~~~~~ |
| 343 |
|
| 344 |
* Initial release. |
| 345 |
|
| 346 |
|
| 347 |
.. _`master`: https://github.com/pypa/packaging/ |