Core utilities for Python packages https://packaging.pypa.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
layday 5f46d1532f
Remove duplicate `namedtuple` (#589)
6 days ago
.github/workflows Add python 3.11 to CI (#587) 1 month ago
docs Document exceptions raised by functions in `utils` (#544) 1 month ago
packaging Remove duplicate `namedtuple` (#589) 6 days ago
tasks Drop support for python 2.7, 3.4, and 3.5 (#376) 2 years ago
tests Fix prefix version matching (#564) 6 days ago
.flake8 Ignore obsolete flake8 warnings/errors 4 years ago
.gitignore Add docstrings to packaging.tags.Tag and packaging.tags.parse_tag() (#281) 3 years ago
.pre-commit-config.yaml Add a `metadata` module with a data class for core metadata (#518) 3 months ago
.readthedocs.yml Change documentation theme to Furo (#347) 2 years ago
CHANGELOG.rst Use `Iterator` instead of `Iterable` for specifier filter methods (#584) 1 month ago
CONTRIBUTING.rst Point locations towards the proper PyPA locations 8 years ago
LICENSE Relicense under both Apache License, v2.0 and a 2 clause BSD license 7 years ago
LICENSE.APACHE Introduce pre-commit to the dev process (#212) 3 years ago
LICENSE.BSD Relicense under both Apache License, v2.0 and a 2 clause BSD license 7 years ago
MANIFEST.in chore: update mypy and move to toml (#547) 5 months ago
README.rst Change documentation theme to Furo (#347) 2 years ago
noxfile.py Add python 3.11 to CI (#587) 1 month ago
pyproject.toml Update coverage to `>=5.0.0` (#586) 1 month ago
setup.cfg Drop support for python 2.7, 3.4, and 3.5 (#376) 2 years ago
setup.py Add python 3.11 to CI (#587) 1 month ago

README.rst

packaging

Reusable core utilities for various Python Packaging interoperability specifications.

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

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

Documentation

The documentation provides information and the API for the following:

  • Version Handling
  • Specifiers
  • Markers
  • Requirements
  • Tags
  • Utilities

Installation

Use pip to install these utilities:

pip install packaging

Discussion

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

You can also join #pypa on Freenode to ask questions or get involved.

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.

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 History

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