-
Notifications
You must be signed in to change notification settings - Fork 250
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
48 changed files
with
2,896 additions
and
1,578 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Security Policy | ||
========================= | ||
|
||
To report a security issue, please follow the special [security reporting | ||
guidelines](https://packaging.pypa.io/en/latest/security/), do not report them in the public issue tracker. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,42 @@ | ||
Metadata | ||
========== | ||
======== | ||
|
||
A data representation for `core metadata`_. | ||
.. currentmodule:: packaging.markers | ||
|
||
.. _`core metadata`: https://packaging.python.org/en/latest/specifications/core-metadata/ | ||
|
||
Both `source distributions`_ and `binary distributions` | ||
(_sdists_ and _wheels_, respectively) contain files recording the | ||
`core metadata`_ for the distribution. This information is used for | ||
everything from recording the name of the distribution to the | ||
installation dependencies. | ||
|
||
|
||
Usage | ||
----- | ||
|
||
.. doctest:: | ||
|
||
>>> from packaging.metadata import parse_email | ||
>>> metadata = "Metadata-Version: 2.3\nName: packaging\nVersion: 24.0" | ||
>>> raw, unparsed = parse_email(metadata) | ||
>>> raw["metadata_version"] | ||
'2.3' | ||
>>> raw["name"] | ||
'packaging' | ||
>>> raw["version"] | ||
'24.0' | ||
|
||
|
||
Reference | ||
--------- | ||
|
||
Low Level Interface | ||
''''''''''''''''''' | ||
|
||
.. automodule:: packaging.metadata | ||
:members: | ||
:undoc-members: | ||
|
||
|
||
.. _source distributions: https://packaging.python.org/en/latest/specifications/source-distribution-format/ | ||
.. _binary distributions: https://packaging.python.org/en/latest/specifications/binary-distribution-format/ | ||
.. _core metadata: https://packaging.python.org/en/latest/specifications/core-metadata/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.