From 2fee3e2edb49dd68007789c1f94feaa517445f86 Mon Sep 17 00:00:00 2001 From: Russ Allbery Date: Mon, 28 Sep 2026 16:23:37 -0700 Subject: [PATCH] Add tool.uv.required-environments Require that all dependencies be available for x86_64 and arm64 Linux, which are our primary build environments for services. This avoids transient issues with updating dependencies where builds of our primary environments are not yet available. --- .../fastapi_safir_app/example-uws/pyproject.toml | 6 ++++++ project_templates/fastapi_safir_app/example/pyproject.toml | 6 ++++++ .../fastapi_safir_app/{{cookiecutter.name}}/pyproject.toml | 6 ++++++ .../square_pypi_package/example/pyproject.toml | 6 ++++++ .../{{cookiecutter.name}}/pyproject.toml | 6 ++++++ project_templates/technote_md/testn-000/technote.toml | 2 +- project_templates/technote_rst/testn-000/technote.toml | 2 +- 7 files changed, 32 insertions(+), 2 deletions(-) diff --git a/project_templates/fastapi_safir_app/example-uws/pyproject.toml b/project_templates/fastapi_safir_app/example-uws/pyproject.toml index 7b9155c8..6d5da58a 100644 --- a/project_templates/fastapi_safir_app/example-uws/pyproject.toml +++ b/project_templates/fastapi_safir_app/example-uws/pyproject.toml @@ -146,3 +146,9 @@ new_fragment_template = "file:changelog.d/_template.md.jinja" skip_fragments = "_template.md.jinja" [tool.setuptools_scm] + +[tool.uv] +required-environments = [ + "sys_platform == 'manylinux' and platform_machine == 'x86_64'", + "sys_platform == 'manylinux' and platform_machine == 'aarch64'", +] diff --git a/project_templates/fastapi_safir_app/example/pyproject.toml b/project_templates/fastapi_safir_app/example/pyproject.toml index 7b16747a..4147acfe 100644 --- a/project_templates/fastapi_safir_app/example/pyproject.toml +++ b/project_templates/fastapi_safir_app/example/pyproject.toml @@ -146,3 +146,9 @@ new_fragment_template = "file:changelog.d/_template.md.jinja" skip_fragments = "_template.md.jinja" [tool.setuptools_scm] + +[tool.uv] +required-environments = [ + "sys_platform == 'manylinux' and platform_machine == 'x86_64'", + "sys_platform == 'manylinux' and platform_machine == 'aarch64'", +] diff --git a/project_templates/fastapi_safir_app/{{cookiecutter.name}}/pyproject.toml b/project_templates/fastapi_safir_app/{{cookiecutter.name}}/pyproject.toml index 40ece9a0..b4f6fe1c 100644 --- a/project_templates/fastapi_safir_app/{{cookiecutter.name}}/pyproject.toml +++ b/project_templates/fastapi_safir_app/{{cookiecutter.name}}/pyproject.toml @@ -150,3 +150,9 @@ new_fragment_template = "file:changelog.d/_template.md.jinja" skip_fragments = "_template.md.jinja" [tool.setuptools_scm] + +[tool.uv] +required-environments = [ + "sys_platform == 'manylinux' and platform_machine == 'x86_64'", + "sys_platform == 'manylinux' and platform_machine == 'aarch64'", +] diff --git a/project_templates/square_pypi_package/example/pyproject.toml b/project_templates/square_pypi_package/example/pyproject.toml index ee979b52..d3d22792 100644 --- a/project_templates/square_pypi_package/example/pyproject.toml +++ b/project_templates/square_pypi_package/example/pyproject.toml @@ -147,3 +147,9 @@ new_fragment_template = "file:changelog.d/_template.md.jinja" skip_fragments = "_template.md.jinja" [tool.setuptools_scm] + +[tool.uv] +required-environments = [ + "sys_platform == 'manylinux' and platform_machine == 'x86_64'", + "sys_platform == 'manylinux' and platform_machine == 'aarch64'", +] diff --git a/project_templates/square_pypi_package/{{cookiecutter.name}}/pyproject.toml b/project_templates/square_pypi_package/{{cookiecutter.name}}/pyproject.toml index ed5dcee1..a52d1421 100644 --- a/project_templates/square_pypi_package/{{cookiecutter.name}}/pyproject.toml +++ b/project_templates/square_pypi_package/{{cookiecutter.name}}/pyproject.toml @@ -147,3 +147,9 @@ new_fragment_template = "file:changelog.d/_template.md.jinja" skip_fragments = "_template.md.jinja" [tool.setuptools_scm] + +[tool.uv] +required-environments = [ + "sys_platform == 'manylinux' and platform_machine == 'x86_64'", + "sys_platform == 'manylinux' and platform_machine == 'aarch64'", +] diff --git a/project_templates/technote_md/testn-000/technote.toml b/project_templates/technote_md/testn-000/technote.toml index 882ee840..70372cfd 100644 --- a/project_templates/technote_md/testn-000/technote.toml +++ b/project_templates/technote_md/testn-000/technote.toml @@ -4,7 +4,7 @@ series_id = "TESTN" canonical_url = "https://testn-000.lsst.io" github_url = "https://github.com/lsst/testn-000" github_default_branch = "main" -date_created = 2026-09-25T19:22:39Z +date_created = 2026-09-28T23:26:51Z organization.name = "NSF-DOE Vera C. Rubin Observatory" organization.ror = "https://ror.org/048g3cy84" license.id = "CC-BY-4.0" diff --git a/project_templates/technote_rst/testn-000/technote.toml b/project_templates/technote_rst/testn-000/technote.toml index 6f92441e..4e31047e 100644 --- a/project_templates/technote_rst/testn-000/technote.toml +++ b/project_templates/technote_rst/testn-000/technote.toml @@ -4,7 +4,7 @@ series_id = "TESTN" canonical_url = "https://testn-000.lsst.io" github_url = "https://github.com/lsst/testn-000" github_default_branch = "main" -date_created = 2026-09-25T19:22:39Z +date_created = 2026-09-28T23:26:51Z organization.name = "NSF-DOE Vera C. Rubin Observatory" organization.ror = "https://ror.org/048g3cy84" license.id = "CC-BY-4.0"