Skip to content

Commit b1120ca

Browse files
committed
add to uv
1 parent ff64a8b commit b1120ca

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

template/pyproject.toml.jinja

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,21 @@ license-files = [] # kludge until this bug is fixed https://github.com/pypa/setu
3939
[tool.uv]
4040
package = true
4141

42-
[[tool.uv.index]]
42+
{% endraw %}{% if python_package_registry == "PyPI" %}{% raw %}[[tool.uv.index]]
4343
name = "pypi"
4444
url = "https://pypi.org/simple/"
4545
publish-url = "https://upload.pypi.org/legacy/"
4646

4747
[[tool.uv.index]]
4848
name = "testpypi"
4949
url = "https://test.pypi.org/simple/"
50-
publish-url = "https://test.pypi.org/legacy/"{% endraw %}
50+
publish-url = "https://test.pypi.org/legacy/"{% endraw %}{% else %}{% raw %}
51+
52+
[[tool.uv.index]]
53+
name = "code-artifact-primary"
54+
url = "https://{% endraw %}{{ repo_org_name }}{% raw %}-{% endraw %}{{ aws_central_infrastructure_account_id }}{% raw %}.d.codeartifact.{% endraw %}{{ aws_org_home_region }}{% raw %}.amazonaws.com/pypi/{% endraw %}{{ repo_org_name }}{% raw %}-primary/simple/"
55+
56+
[[tool.uv.index]]
57+
name = "code-artifact-staging"
58+
url = "https://{% endraw %}{{ repo_org_name }}{% raw %}-{% endraw %}{{ aws_central_infrastructure_account_id }}{% raw %}.d.codeartifact.{% endraw %}{{ aws_org_home_region }}{% raw %}.amazonaws.com/pypi/{% endraw %}{{ repo_org_name }}{% raw %}-staging/simple/"
59+
{% endraw %}{% endif %}

0 commit comments

Comments
 (0)