Skip to content

Commit 0589680

Browse files
Merge branch 'main' into ajnelson-nist-single-sourcing-version-warning
2 parents 6e0fd92 + 6d85043 commit 0589680

16 files changed

Lines changed: 700 additions & 142 deletions

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Set up Python
13+
uses: actions/setup-python@v2
14+
with:
15+
python-version: 3.9
16+
17+
- name: pip cache
18+
uses: actions/cache@v2
19+
with:
20+
path: ~/.cache/pip
21+
key:
22+
${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('**/requirements.txt') }}-${{ hashFiles('noxfile.py') }}
23+
restore-keys: |
24+
${{ matrix.os }}-${{ matrix.python-version }}-
25+
26+
- name: Install dependencies
27+
run: |
28+
python -m pip install --upgrade nox virtualenv
29+
30+
- name: Nox build
31+
run: |
32+
python -m nox -s build

.travis.yml

Lines changed: 0 additions & 6 deletions
This file was deleted.

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
sphinx==3.2.0
22
sphinx-autobuild==0.7.1
3+
sphinx-inline-tabs==2020.10.19b4
34
git+https://github.com/python/python-docs-theme.git#egg=python-docs-theme
45
git+https://github.com/pypa/pypa-docs-theme.git#egg=pypa-docs-theme

source/conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@
3434
'sphinx.ext.extlinks',
3535
'sphinx.ext.intersphinx',
3636
'sphinx.ext.todo',
37+
'sphinx_inline_tabs',
3738
]
3839

3940
# Add any paths that contain templates here, relative to this directory.
@@ -375,6 +376,7 @@
375376
'python': ('https://docs.python.org/3', None),
376377
'python2': ('https://docs.python.org/2', None),
377378
'pip': ('https://pip.pypa.io/en/latest/', None),
379+
'setuptools': ('https://setuptools.rtfd.io/en/latest/', None),
378380
}
379381

380382

source/index.rst

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,13 @@ Get started
3838
Essential tools and concepts for working within the Python
3939
development ecosystem are covered in our :doc:`tutorials/index` section:
4040

41-
* to learn how to install packages, see the
41+
* To learn how to install packages, see the
4242
:doc:`tutorial on installing packages <tutorials/installing-packages>`.
43-
* to learn how to manage dependencies in a version controlled project, see the
43+
* To learn how to manage dependencies in a version controlled project, see the
4444
:doc:`tutorial on managing application dependencies <tutorials/managing-dependencies>`.
45-
* to learn how to package and distribute your projects, see the
46-
:doc:`tutorial on packaging and distributing <tutorials/packaging-projects>`
47-
* to get an overview of packaging options for Python libraries and
45+
* To learn how to package and distribute your projects, see the
46+
:doc:`tutorial on packaging and distributing <tutorials/packaging-projects>`.
47+
* To get an overview of packaging options for Python libraries and
4848
applications, see the :doc:`Overview of Python Packaging <overview>`.
4949

5050

@@ -53,11 +53,11 @@ Learn more
5353

5454
Beyond our :doc:`tutorials/index`, this guide has several other resources:
5555

56-
* the :doc:`guides/index` section for walk throughs, such as
57-
:doc:`guides/installing-using-linux-tools` or :doc:`guides/packaging-binary-extensions`
58-
* the :doc:`discussions/index` section for in-depth references on topics such as
59-
:doc:`discussions/deploying-python-applications` or :doc:`discussions/pip-vs-easy-install`
60-
* the :doc:`specifications/index` section for packaging interoperability specifications
56+
* The :doc:`guides/index` section for walk throughs, such as
57+
:doc:`guides/installing-using-linux-tools` or :doc:`guides/packaging-binary-extensions`.
58+
* The :doc:`discussions/index` section for in-depth references on topics such as
59+
:doc:`discussions/deploying-python-applications` or :doc:`discussions/pip-vs-easy-install`.
60+
* The :doc:`specifications/index` section for packaging interoperability specifications.
6161

6262
Additionally, there is a list of :doc:`other projects <key_projects>` maintained
6363
by members of the Python Packaging Authority.

source/overview.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -450,7 +450,7 @@ ride. This impression is mostly a byproduct of Python's
450450
versatility. Once you understand the natural boundaries between each
451451
packaging solution, you begin to realize that the varied landscape is
452452
a small price Python programmers pay for using one of the most
453-
balanced, flexible language available.
453+
balanced, flexible languages available.
454454

455455

456456
.. Editing notes:
@@ -503,7 +503,7 @@ balanced, flexible language available.
503503
504504
- Avoid words that trivialize using JupyterLab
505505
such as “simply” or “just.” Tasks that developers find simple or
506-
easy may not be for users."
506+
easy may not be for users.
507507
508508
Among other useful points. Read more here:
509509
https://jupyterlab.readthedocs.io/en/latest/developer/documentation.html
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
2+
.. _binary-distribution-format:
3+
4+
==========================
5+
Binary distribution format
6+
==========================
7+
8+
The binary distribution format (:term:`wheel <Wheel>`) is defined in :pep:`427`.

source/specifications/core-metadata.rst

Lines changed: 33 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
Core metadata specifications
55
============================
66

7-
The current core metadata file format, version 2.1, is specified in :pep:`566`.
8-
It defines the following specification as the canonical source for the core
9-
metadata file format.
10-
117
Fields defined in the following specification should be considered valid,
128
complete and not subject to change. The required fields are:
139

@@ -32,7 +28,8 @@ Metadata-Version
3228

3329
.. versionadded:: 1.0
3430

35-
Version of the file format; legal values are "1.0", "1.1", "1.2" and "2.1".
31+
Version of the file format; legal values are "1.0", "1.1", "1.2", "2.1"
32+
and "2.2".
3633

3734
Automated tools consuming metadata SHOULD warn if ``metadata_version`` is
3835
greater than the highest version they support, and MUST fail if
@@ -46,7 +43,7 @@ all of the needed fields.
4643

4744
Example::
4845

49-
Metadata-Version: 2.1
46+
Metadata-Version: 2.2
5047

5148

5249
.. _core-metadata-name:
@@ -86,6 +83,36 @@ Example::
8683
Version: 1.0a2
8784

8885

86+
Dynamic (multiple use)
87+
======================
88+
89+
.. versionadded:: 2.2
90+
91+
A string containing the name of another core metadata field. The field
92+
names ``Name`` and ``Version`` may not be specified in this field.
93+
94+
When found in the metadata of a source distribution, the following
95+
rules apply:
96+
97+
1. If a field is *not* marked as ``Dynamic``, then the value of the field
98+
in any wheel built from the sdist MUST match the value in the sdist.
99+
If the field is not in the sdist, and not marked as ``Dynamic``, then
100+
it MUST NOT be present in the wheel.
101+
2. If a field is marked as ``Dynamic``, it may contain any valid value in
102+
a wheel built from the sdist (including not being present at all).
103+
104+
If the sdist metadata version is older than version 2.2, then all fields should
105+
be treated as if they were specified with ``Dynamic`` (i.e. there are no special
106+
restrictions on the metadata of wheels built from the sdist).
107+
108+
In any context other than a source distribution, ``Dynamic`` is for information
109+
only, and indicates that the field value was calculated at wheel build time,
110+
and may not be the same as the value in the sdist or in other wheels for the
111+
project.
112+
113+
Full details of the semantics of ``Dynamic`` are described in :pep:`643`.
114+
115+
89116
Platform (multiple use)
90117
=======================
91118

0 commit comments

Comments
 (0)