METADATA 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373
  1. Metadata-Version: 2.1
  2. Name: packaging
  3. Version: 20.4
  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 :: 2
  16. Classifier: Programming Language :: Python :: 2.7
  17. Classifier: Programming Language :: Python :: 3
  18. Classifier: Programming Language :: Python :: 3.4
  19. Classifier: Programming Language :: Python :: 3.5
  20. Classifier: Programming Language :: Python :: 3.6
  21. Classifier: Programming Language :: Python :: 3.7
  22. Classifier: Programming Language :: Python :: 3.8
  23. Classifier: Programming Language :: Python :: Implementation :: CPython
  24. Classifier: Programming Language :: Python :: Implementation :: PyPy
  25. Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*
  26. Description-Content-Type: text/x-rst
  27. Requires-Dist: pyparsing (>=2.0.2)
  28. Requires-Dist: six
  29. packaging
  30. =========
  31. Core utilities for Python packages.
  32. The ``packaging`` project includes the following: version handling, specifiers,
  33. markers, requirements, tags, utilities.
  34. Documentation
  35. -------------
  36. The `documentation`_ provides information and the API for the following:
  37. - Version Handling
  38. - Specifiers
  39. - Markers
  40. - Requirements
  41. - Tags
  42. - Utilities
  43. Installation
  44. ------------
  45. Use ``pip`` to install these utilities::
  46. pip install packaging
  47. Discussion
  48. ----------
  49. If you run into bugs, you can file them in our `issue tracker`_.
  50. You can also join ``#pypa`` on Freenode to ask questions or get involved.
  51. .. _`documentation`: https://packaging.pypa.io/
  52. .. _`issue tracker`: https://github.com/pypa/packaging/issues
  53. Code of Conduct
  54. ---------------
  55. Everyone interacting in the packaging project's codebases, issue trackers, chat
  56. rooms, and mailing lists is expected to follow the `PyPA Code of Conduct`_.
  57. .. _PyPA Code of Conduct: https://www.pypa.io/en/latest/code-of-conduct/
  58. Contributing
  59. ------------
  60. The ``CONTRIBUTING.rst`` file outlines how to contribute to this project as
  61. well as how to report a potential security issue. The documentation for this
  62. project also covers information about `project development`_ and `security`_.
  63. .. _`project development`: https://packaging.pypa.io/en/latest/development/
  64. .. _`security`: https://packaging.pypa.io/en/latest/security/
  65. Project History
  66. ---------------
  67. Please review the ``CHANGELOG.rst`` file or the `Changelog documentation`_ for
  68. recent changes and project history.
  69. .. _`Changelog documentation`: https://packaging.pypa.io/en/latest/changelog/
  70. Changelog
  71. ---------
  72. 20.4 - 2020-05-19
  73. ~~~~~~~~~~~~~~~~~
  74. * Canonicalize version before comparing specifiers. (`#282 <https://github.com/pypa/packaging/issues/282>`__)
  75. * Change type hint for ``canonicalize_name`` to return
  76. ``packaging.utils.NormalizedName``.
  77. This enables the use of static typing tools (like mypy) to detect mixing of
  78. normalized and un-normalized names.
  79. 20.3 - 2020-03-05
  80. ~~~~~~~~~~~~~~~~~
  81. * Fix changelog for 20.2.
  82. 20.2 - 2020-03-05
  83. ~~~~~~~~~~~~~~~~~
  84. * Fix a bug that caused a 32-bit OS that runs on a 64-bit ARM CPU (e.g. ARM-v8,
  85. aarch64), to report the wrong bitness.
  86. 20.1 - 2020-01-24
  87. ~~~~~~~~~~~~~~~~~~~
  88. * Fix a bug caused by reuse of an exhausted iterator. (`#257 <https://github.com/pypa/packaging/issues/257>`__)
  89. 20.0 - 2020-01-06
  90. ~~~~~~~~~~~~~~~~~
  91. * Add type hints (`#191 <https://github.com/pypa/packaging/issues/191>`__)
  92. * Add proper trove classifiers for PyPy support (`#198 <https://github.com/pypa/packaging/issues/198>`__)
  93. * Scale back depending on ``ctypes`` for manylinux support detection (`#171 <https://github.com/pypa/packaging/issues/171>`__)
  94. * Use ``sys.implementation.name`` where appropriate for ``packaging.tags`` (`#193 <https://github.com/pypa/packaging/issues/193>`__)
  95. * Expand upon the API provded by ``packaging.tags``: ``interpreter_name()``, ``mac_platforms()``, ``compatible_tags()``, ``cpython_tags()``, ``generic_tags()`` (`#187 <https://github.com/pypa/packaging/issues/187>`__)
  96. * Officially support Python 3.8 (`#232 <https://github.com/pypa/packaging/issues/232>`__)
  97. * Add ``major``, ``minor``, and ``micro`` aliases to ``packaging.version.Version`` (`#226 <https://github.com/pypa/packaging/issues/226>`__)
  98. * Properly mark ``packaging`` has being fully typed by adding a `py.typed` file (`#226 <https://github.com/pypa/packaging/issues/226>`__)
  99. 19.2 - 2019-09-18
  100. ~~~~~~~~~~~~~~~~~
  101. * Remove dependency on ``attrs`` (`#178 <https://github.com/pypa/packaging/issues/178>`__, `#179 <https://github.com/pypa/packaging/issues/179>`__)
  102. * Use appropriate fallbacks for CPython ABI tag (`#181 <https://github.com/pypa/packaging/issues/181>`__, `#185 <https://github.com/pypa/packaging/issues/185>`__)
  103. * Add manylinux2014 support (`#186 <https://github.com/pypa/packaging/issues/186>`__)
  104. * Improve ABI detection (`#181 <https://github.com/pypa/packaging/issues/181>`__)
  105. * Properly handle debug wheels for Python 3.8 (`#172 <https://github.com/pypa/packaging/issues/172>`__)
  106. * Improve detection of debug builds on Windows (`#194 <https://github.com/pypa/packaging/issues/194>`__)
  107. 19.1 - 2019-07-30
  108. ~~~~~~~~~~~~~~~~~
  109. * Add the ``packaging.tags`` module. (`#156 <https://github.com/pypa/packaging/issues/156>`__)
  110. * Correctly handle two-digit versions in ``python_version`` (`#119 <https://github.com/pypa/packaging/issues/119>`__)
  111. 19.0 - 2019-01-20
  112. ~~~~~~~~~~~~~~~~~
  113. * Fix string representation of PEP 508 direct URL requirements with markers.
  114. * Better handling of file URLs
  115. This allows for using ``file:///absolute/path``, which was previously
  116. prevented due to the missing ``netloc``.
  117. This allows for all file URLs that ``urlunparse`` turns back into the
  118. original URL to be valid.
  119. 18.0 - 2018-09-26
  120. ~~~~~~~~~~~~~~~~~
  121. * Improve error messages when invalid requirements are given. (`#129 <https://github.com/pypa/packaging/issues/129>`__)
  122. 17.1 - 2017-02-28
  123. ~~~~~~~~~~~~~~~~~
  124. * Fix ``utils.canonicalize_version`` when supplying non PEP 440 versions.
  125. 17.0 - 2017-02-28
  126. ~~~~~~~~~~~~~~~~~
  127. * Drop support for python 2.6, 3.2, and 3.3.
  128. * Define minimal pyparsing version to 2.0.2 (`#91 <https://github.com/pypa/packaging/issues/91>`__).
  129. * Add ``epoch``, ``release``, ``pre``, ``dev``, and ``post`` attributes to
  130. ``Version`` and ``LegacyVersion`` (`#34 <https://github.com/pypa/packaging/issues/34>`__).
  131. * Add ``Version().is_devrelease`` and ``LegacyVersion().is_devrelease`` to
  132. make it easy to determine if a release is a development release.
  133. * Add ``utils.canonicalize_version`` to canonicalize version strings or
  134. ``Version`` instances (`#121 <https://github.com/pypa/packaging/issues/121>`__).
  135. 16.8 - 2016-10-29
  136. ~~~~~~~~~~~~~~~~~
  137. * Fix markers that utilize ``in`` so that they render correctly.
  138. * Fix an erroneous test on Python RC releases.
  139. 16.7 - 2016-04-23
  140. ~~~~~~~~~~~~~~~~~
  141. * Add support for the deprecated ``python_implementation`` marker which was
  142. an undocumented setuptools marker in addition to the newer markers.
  143. 16.6 - 2016-03-29
  144. ~~~~~~~~~~~~~~~~~
  145. * Add support for the deprecated, PEP 345 environment markers in addition to
  146. the newer markers.
  147. 16.5 - 2016-02-26
  148. ~~~~~~~~~~~~~~~~~
  149. * Fix a regression in parsing requirements with whitespaces between the comma
  150. separators.
  151. 16.4 - 2016-02-22
  152. ~~~~~~~~~~~~~~~~~
  153. * Fix a regression in parsing requirements like ``foo (==4)``.
  154. 16.3 - 2016-02-21
  155. ~~~~~~~~~~~~~~~~~
  156. * Fix a bug where ``packaging.requirements:Requirement`` was overly strict when
  157. matching legacy requirements.
  158. 16.2 - 2016-02-09
  159. ~~~~~~~~~~~~~~~~~
  160. * Add a function that implements the name canonicalization from PEP 503.
  161. 16.1 - 2016-02-07
  162. ~~~~~~~~~~~~~~~~~
  163. * Implement requirement specifiers from PEP 508.
  164. 16.0 - 2016-01-19
  165. ~~~~~~~~~~~~~~~~~
  166. * Relicense so that packaging is available under *either* the Apache License,
  167. Version 2.0 or a 2 Clause BSD license.
  168. * Support installation of packaging when only distutils is available.
  169. * Fix ``==`` comparison when there is a prefix and a local version in play.
  170. (`#41 <https://github.com/pypa/packaging/issues/41>`__).
  171. * Implement environment markers from PEP 508.
  172. 15.3 - 2015-08-01
  173. ~~~~~~~~~~~~~~~~~
  174. * Normalize post-release spellings for rev/r prefixes. `#35 <https://github.com/pypa/packaging/issues/35>`__
  175. 15.2 - 2015-05-13
  176. ~~~~~~~~~~~~~~~~~
  177. * Fix an error where the arbitary specifier (``===``) was not correctly
  178. allowing pre-releases when it was being used.
  179. * Expose the specifier and version parts through properties on the
  180. ``Specifier`` classes.
  181. * Allow iterating over the ``SpecifierSet`` to get access to all of the
  182. ``Specifier`` instances.
  183. * Allow testing if a version is contained within a specifier via the ``in``
  184. operator.
  185. 15.1 - 2015-04-13
  186. ~~~~~~~~~~~~~~~~~
  187. * Fix a logic error that was causing inconsistent answers about whether or not
  188. a pre-release was contained within a ``SpecifierSet`` or not.
  189. 15.0 - 2015-01-02
  190. ~~~~~~~~~~~~~~~~~
  191. * Add ``Version().is_postrelease`` and ``LegacyVersion().is_postrelease`` to
  192. make it easy to determine if a release is a post release.
  193. * Add ``Version().base_version`` and ``LegacyVersion().base_version`` to make
  194. it easy to get the public version without any pre or post release markers.
  195. * Support the update to PEP 440 which removed the implied ``!=V.*`` when using
  196. either ``>V`` or ``<V`` and which instead special cased the handling of
  197. pre-releases, post-releases, and local versions when using ``>V`` or ``<V``.
  198. 14.5 - 2014-12-17
  199. ~~~~~~~~~~~~~~~~~
  200. * Normalize release candidates as ``rc`` instead of ``c``.
  201. * Expose the ``VERSION_PATTERN`` constant, a regular expression matching
  202. a valid version.
  203. 14.4 - 2014-12-15
  204. ~~~~~~~~~~~~~~~~~
  205. * Ensure that versions are normalized before comparison when used in a
  206. specifier with a less than (``<``) or greater than (``>``) operator.
  207. 14.3 - 2014-11-19
  208. ~~~~~~~~~~~~~~~~~
  209. * **BACKWARDS INCOMPATIBLE** Refactor specifier support so that it can sanely
  210. handle legacy specifiers as well as PEP 440 specifiers.
  211. * **BACKWARDS INCOMPATIBLE** Move the specifier support out of
  212. ``packaging.version`` into ``packaging.specifiers``.
  213. 14.2 - 2014-09-10
  214. ~~~~~~~~~~~~~~~~~
  215. * Add prerelease support to ``Specifier``.
  216. * Remove the ability to do ``item in Specifier()`` and replace it with
  217. ``Specifier().contains(item)`` in order to allow flags that signal if a
  218. prerelease should be accepted or not.
  219. * Add a method ``Specifier().filter()`` which will take an iterable and returns
  220. an iterable with items that do not match the specifier filtered out.
  221. 14.1 - 2014-09-08
  222. ~~~~~~~~~~~~~~~~~
  223. * Allow ``LegacyVersion`` and ``Version`` to be sorted together.
  224. * Add ``packaging.version.parse()`` to enable easily parsing a version string
  225. as either a ``Version`` or a ``LegacyVersion`` depending on it's PEP 440
  226. validity.
  227. 14.0 - 2014-09-05
  228. ~~~~~~~~~~~~~~~~~
  229. * Initial release.
  230. .. _`master`: https://github.com/pypa/packaging/