METADATA 15 KB

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