Skip to content

Commit 95f181f

Browse files
committed
Move pylock.toml example to an external file
Along the way, ignore a troublesome URL that's slowing down link checking significantly.
1 parent 740354d commit 95f181f

File tree

3 files changed

+64
-45
lines changed

3 files changed

+64
-45
lines changed

source/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@
149149
"https://stackoverflow.com/*",
150150
"https://pyscaffold.org/*",
151151
"https://anaconda.org",
152+
"https://www.cisa.gov/sbom",
152153
]
153154
linkcheck_retries = 5
154155
# Ignore anchors for common targets when we know they likely won't be found

source/specifications/pylock-toml.rst

Lines changed: 3 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -728,49 +728,7 @@ See :ref:`pylock-packages-archive-hashes`.
728728
Example
729729
-------
730730

731-
.. code-block:: TOML
732-
733-
lock-version = '1.0'
734-
environments = ["sys_platform == 'win32'", "sys_platform == 'linux'"]
735-
requires-python = '==3.12'
736-
created-by = 'mousebender'
737-
738-
[[packages]]
739-
name = 'attrs'
740-
version = '25.1.0'
741-
requires-python = '>=3.8'
742-
wheels = [
743-
{name = 'attrs-25.1.0-py3-none-any.whl', upload-time = 2025-01-25T11:30:10.164985+00:00, url = 'https://files.pythonhosted.org/packages/fc/30/d4986a882011f9df997a55e6becd864812ccfcd821d64aac8570ee39f719/attrs-25.1.0-py3-none-any.whl', size = 63152, hashes = {sha256 = 'c75a69e28a550a7e93789579c22aa26b0f5b83b75dc4e08fe092980051e1090a'}},
744-
]
745-
[[packages.attestation-identities]]
746-
environment = 'release-pypi'
747-
kind = 'GitHub'
748-
repository = 'python-attrs/attrs'
749-
workflow = 'pypi-package.yml'
750-
751-
[[packages]]
752-
name = 'cattrs'
753-
version = '24.1.2'
754-
requires-python = '>=3.8'
755-
dependencies = [
756-
{name = 'attrs'},
757-
]
758-
wheels = [
759-
{name = 'cattrs-24.1.2-py3-none-any.whl', upload-time = 2024-09-22T14:58:34.812643+00:00, url = 'https://files.pythonhosted.org/packages/c8/d5/867e75361fc45f6de75fe277dd085627a9db5ebb511a87f27dc1396b5351/cattrs-24.1.2-py3-none-any.whl', size = 66446, hashes = {sha256 = '67c7495b760168d931a10233f979b28dc04daf853b30752246f4f8471c6d68d0'}},
760-
]
761-
762-
[[packages]]
763-
name = 'numpy'
764-
version = '2.2.3'
765-
requires-python = '>=3.10'
766-
wheels = [
767-
{name = 'numpy-2.2.3-cp312-cp312-win_amd64.whl', upload-time = 2025-02-13T16:51:21.821880+00:00, url = 'https://files.pythonhosted.org/packages/42/6e/55580a538116d16ae7c9aa17d4edd56e83f42126cb1dfe7a684da7925d2c/numpy-2.2.3-cp312-cp312-win_amd64.whl', size = 12626357, hashes = {sha256 = '83807d445817326b4bcdaaaf8e8e9f1753da04341eceec705c001ff342002e5d'}},
768-
{name = 'numpy-2.2.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl', upload-time = 2025-02-13T16:50:00.079662+00:00, url = 'https://files.pythonhosted.org/packages/39/04/78d2e7402fb479d893953fb78fa7045f7deb635ec095b6b4f0260223091a/numpy-2.2.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl', size = 16116679, hashes = {sha256 = '3b787adbf04b0db1967798dba8da1af07e387908ed1553a0d6e74c084d1ceafe'}},
769-
]
770-
771-
[tool.mousebender]
772-
command = ['.', 'lock', '--platform', 'cpython3.12-windows-x64', '--platform', 'cpython3.12-manylinux2014-x64', 'cattrs', 'numpy']
773-
run-on = 2025-03-06T12:28:57.760769
731+
.. literalinclude:: pylock-toml/pylock.example.toml
774732

775733

776734
------------
@@ -882,11 +840,11 @@ History
882840
.. _HEAD: https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/HEAD
883841
.. _PDM: https://pypi.org/project/pdm/
884842
.. _pip-tools: https://pypi.org/project/pip-tools/
885-
.. _Poetry: https://python-poetry.org/
843+
.. _Poetry: https://pypi.org/project/poetry/
886844
.. _requirements file:
887845
.. _requirements files: https://pip.pypa.io/en/stable/reference/requirements-file-format/
888846
.. _software bill of materials: https://www.cisa.gov/sbom
889847
.. _TOML: https://toml.io/
890-
.. _uv: https://github.com/astral-sh/uv
848+
.. _uv: https://pypi.org/project/uv/
891849
.. _URL: https://url.spec.whatwg.org/
892850
.. _URL: https://url.spec.whatwg.org/
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
lock-version = '1.0'
2+
environments = ["sys_platform == 'win32'", "sys_platform == 'linux'"]
3+
requires-python = '==3.12'
4+
created-by = 'mousebender'
5+
6+
[[packages]]
7+
name = 'attrs'
8+
version = '25.1.0'
9+
requires-python = '>=3.8'
10+
11+
[[packages.wheels]]
12+
name = 'attrs-25.1.0-py3-none-any.whl'
13+
upload-time = 2025-01-25T11:30:10.164985+00:00
14+
url = 'https://files.pythonhosted.org/packages/fc/30/d4986a882011f9df997a55e6becd864812ccfcd821d64aac8570ee39f719/attrs-25.1.0-py3-none-any.whl'
15+
size = 63152
16+
hashes = {sha256 = 'c75a69e28a550a7e93789579c22aa26b0f5b83b75dc4e08fe092980051e1090a'}
17+
18+
[[packages.attestation-identities]]
19+
environment = 'release-pypi'
20+
kind = 'GitHub'
21+
repository = 'python-attrs/attrs'
22+
workflow = 'pypi-package.yml'
23+
24+
[[packages]]
25+
name = 'cattrs'
26+
version = '24.1.2'
27+
requires-python = '>=3.8'
28+
dependencies = [
29+
{name = 'attrs'},
30+
]
31+
32+
[[packages.wheels]]
33+
name = 'cattrs-24.1.2-py3-none-any.whl'
34+
upload-time = 2024-09-22T14:58:34.812643+00:00
35+
url = 'https://files.pythonhosted.org/packages/c8/d5/867e75361fc45f6de75fe277dd085627a9db5ebb511a87f27dc1396b5351/cattrs-24.1.2-py3-none-any.whl'
36+
size = 66446
37+
hashes = {sha256 = '67c7495b760168d931a10233f979b28dc04daf853b30752246f4f8471c6d68d0'}
38+
39+
[[packages]]
40+
name = 'numpy'
41+
version = '2.2.3'
42+
requires-python = '>=3.10'
43+
44+
[[packages.wheels]]
45+
name = 'numpy-2.2.3-cp312-cp312-win_amd64.whl'
46+
upload-time = 2025-02-13T16:51:21.821880+00:00
47+
url = 'https://files.pythonhosted.org/packages/42/6e/55580a538116d16ae7c9aa17d4edd56e83f42126cb1dfe7a684da7925d2c/numpy-2.2.3-cp312-cp312-win_amd64.whl'
48+
size = 12626357
49+
hashes = {sha256 = '83807d445817326b4bcdaaaf8e8e9f1753da04341eceec705c001ff342002e5d'}
50+
51+
[[packages.wheels]]
52+
name = 'numpy-2.2.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl'
53+
upload-time = 2025-02-13T16:50:00.079662+00:00
54+
url = 'https://files.pythonhosted.org/packages/39/04/78d2e7402fb479d893953fb78fa7045f7deb635ec095b6b4f0260223091a/numpy-2.2.3-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl'
55+
size = 16116679
56+
hashes = {sha256 = '3b787adbf04b0db1967798dba8da1af07e387908ed1553a0d6e74c084d1ceafe'}
57+
58+
[tool.mousebender]
59+
command = ['.', 'lock', '--platform', 'cpython3.12-windows-x64', '--platform', 'cpython3.12-manylinux2014-x64', 'cattrs', 'numpy']
60+
run-on = 2025-03-06T12:28:57.760769

0 commit comments

Comments
 (0)