Core utilities for Python packages https://packaging.pypa.io/
  • Python 99.8%
  • Shell 0.2%
Find a file
Aria_ovo 1eb66ee0a5
Reject backslashes in marker values (#1403)
Co-authored-by: WSks-ui <WSks-ui@users.noreply.github.com>
2026-12-02 09:30:41 -05:00
.github chore(deps): bump the github-actions group with 4 updates (#1597) 2026-12-01 11:59:09 -05:00
benchmarks chore(bench): rename pubgrub benchmark to resolver: pubgrub (#1570) 2026-11-23 00:51:59 -05:00
docs docs: fix typos (#1565) 2026-11-21 11:37:20 -05:00
src/packaging Reject backslashes in marker values (#1403) 2026-12-02 09:30:41 -05:00
tasks test: check 26.2 and 26.3 pickles, including pylock and direct_url (#1550) 2026-11-17 11:38:37 -05:00
tests Reject backslashes in marker values (#1403) 2026-12-02 09:30:41 -05:00
.gitignore chore: support parallel nox (#1381) 2026-08-10 22:06:34 -04:00
.pre-commit-config.yaml chore(deps): bump the pre-commit group with 6 updates (#1598) 2026-12-01 11:59:25 -05:00
.readthedocs.yml ci: use native uv integration in rtd (#1175) 2026-04-24 13:16:26 -04:00
asv.conf.json ci: add Python 3.15 to benchmarks (#1380) 2026-08-11 15:04:50 -04:00
CHANGELOG.rst Bump for development 2026-11-23 16:29:15 -05:00
CONTRIBUTING.rst Fix typos found by codespell (#706) 2023-08-15 13:22:28 -07:00
LICENSE Relicense under both Apache License, v2.0 and a 2 clause BSD license 2015-10-20 08:04:16 -04:00
LICENSE.APACHE Introduce pre-commit to the dev process (#212) 2019-09-30 16:43:51 -07:00
LICENSE.BSD Relicense under both Apache License, v2.0 and a 2 clause BSD license 2015-10-20 08:04:16 -04:00
noxfile.py ci: update the build downstream fixture (#1576) 2026-12-02 09:28:54 -05:00
pyproject.toml fix: load 26.3 pickles of pylock and direct_url dataclasses (#1548) 2026-11-16 19:26:30 -05:00
README.rst docs: point README to discuss.python.org instead of GitHub Discussions (#1553) 2026-11-18 14:21:58 -05:00
SECURITY.md Fix documentation: grammar, typos, formatting, and outdated references (#1084) 2026-02-09 22:21:06 +00:00

packaging
=========

.. start-intro

Reusable core utilities for various Python Packaging
`interoperability specifications <https://packaging.python.org/specifications/>`_.

This library provides utilities that implement the interoperability
specifications which have clearly one correct behaviour (eg: :pep:`440`)
or benefit greatly from having a single shared implementation (eg: :pep:`425`).

.. end-intro

The ``packaging`` project includes the following: version handling, specifiers,
markers, requirements, tags, metadata, lockfiles, utilities.

Documentation
-------------

The `documentation`_ provides information and the API for the following:

- Version Handling
- Specifiers
- Markers
- Licenses
- Requirements
- Metadata
- Tags
- Lockfiles (pylock)
- Direct URL helpers
- Dependency groups
- Errors
- Utilities

Installation
------------

Use ``pip`` to install these utilities::

    pip install packaging

The ``packaging`` library uses calendar-based versioning (``YY.N``).

Discussion
----------

If you run into bugs, you can file them in our `issue tracker`_.

You can also ask questions or get involved in the `Packaging category`_ on
discuss.python.org.

.. _`documentation`: https://packaging.pypa.io/
.. _`issue tracker`: https://github.com/pypa/packaging/issues
.. _`Packaging category`: https://discuss.python.org/c/packaging/14


Code of Conduct
---------------

Everyone interacting in the packaging project's codebases, issue trackers, chat
rooms, and mailing lists is expected to follow the `PSF Code of Conduct`_.

.. _PSF Code of Conduct: https://github.com/pypa/.github/blob/main/CODE_OF_CONDUCT.md

Contributing
------------

The ``CONTRIBUTING.rst`` file outlines how to contribute to this project as
well as how to report a potential security issue. The documentation for this
project also covers information about `project development`_ and `security`_.

.. _`project development`: https://packaging.pypa.io/en/latest/development/
.. _`security`: https://packaging.pypa.io/en/latest/security/

Project History
---------------

Please review the ``CHANGELOG.rst`` file or the `Changelog documentation`_ for
recent changes and project history.

.. _`Changelog documentation`: https://packaging.pypa.io/en/latest/changelog/