8000 PEP 691: Fix minor nits with headers and reST syntax (#2603) · python/peps@703362a · GitHub
[go: up one dir, main page]

Skip to content

Commit 703362a

Browse files
authored
PEP 691: Fix minor nits with headers and reST syntax (#2603)
1 parent 9111678 commit 703362a

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

pep-0691.rst

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ Author: Donald Stufft <donald@stufft.io>,
44
Pradyun Gedam <pradyunsg@gmail.com>,
55
Cooper Lees <me@cooperlees.com>,
66
Dustin Ingram <di@python.org>
7+
PEP-Delegate: Brett Cannon <brett@python.org>
8+
Discussions-To: https://discuss.python.org/t/pep-691-json-based-simple-api-for-python-package-indexes/15553
79
Status: Draft
810
Type: Standards Track
911
Content-Type: text/x-rst
10-
PEP-Delegate: Brett Cannon <brett@python.org>
11-
Discussions-To: https://discuss.python.org/t/pep-691-json-based-simple-api-for-python-package-indexes/15553
1212
Created: 04-May-2022
1313
Post-History: `05-May-2022 <https://discuss.python.org/t/pep-691-json-based-simple-api-for-python-package-indexes/15553>`__
1414

@@ -290,9 +290,11 @@ This PEP proposes that all responses from the Simple API will have a standard
290290
content type that describes what the response is (a Simple API response), what
291291
version of the API it represents, and what serialization format has been used.
292292

293-
The structure of this content type will be::
293+
The structure of this content type will be:
294+
295+
.. code-block:: text
294296
295-
application/vnd.pypi.simple.$version+format
297+
application/vnd.pypi.simple.$version+format
296298
297299
Since only major versions should be disruptive to clients attempting to
298300
understand one of these API responses, only the major version will be included
@@ -403,7 +405,7 @@ so the risks for actual breakages is low.
403405

404406
An example of how a client can operate would look like:
405407

406-
.. code-block:: python3
408+
.. code-block:: python
407409
408410
import cgi
409411
import requests
@@ -839,10 +841,10 @@ how they use the Simple + JSON APIs today:
839841
- List of all files for a particular release
840842
- Metadata of each individual artifact:
841843

842-
- was it yanked? (`data-yanked`)
843-
- what's the python-requires? (`data-python-requires`)
844+
- was it yanked? (``data-yanked``)
845+
- what's the python-requires? (``data-python-requires``)
844846
- what's the hash of this file? (currently, hash in URL)
845-
- Full metadata (`data-dist-info-metadata`)
847+
- Full metadata (``data-dist-info-metadata``)
846848
- [Bonus] what are the declared dependencies, if available (list-of-strings, null if unavailable)?
847849

848850
- ``bandersnatch`` - Only uses legacy JSON API + XMLRPC today:
@@ -859,11 +861,12 @@ how they use the Simple + JSON APIs today:
859861

860862
- Write out the JSON to mirror storage today (disk/S3)
861863

862-
- Required metadata used (via Package class - https://github.com/pypa/bandersnatch/blob/main/src/bandersnatch/package.py):
864+
- Required metadata used
865+
(via `Package class <https://github.com/pypa/bandersnatch/blob/main/src/bandersnatch/package.py>`__):
863866

864-
- metadata["info"]
865-
- metadata["last_serial"]
866-
- metadata["releases"]
867+
- ``metadata["info"]``
868+
- ``metadata["last_serial"]``
869+
- ``metadata["releases"]``
867870

868871
- digests
869872
- URL

0 commit comments

Comments
 (0)
0