Skip to content

Commit 8d52a53

Browse files
committed
auth
1 parent 6e3d9d3 commit 8d52a53

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

template/.github/workflows/publish_to_staging.yaml.jinja

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,14 @@ jobs:
9595
code-artifact-auth-role-name: CoreInfraBaseAccess
9696
code-artifact-auth-role-account-id: "{% endraw %}{{ aws_central_infrastructure_account_id }}{% raw %}"
9797
code-artifact-auth-region: {% endraw %}{{ aws_org_home_region }}{% endif %}{% raw %}
98+
{% endraw %}{% if python_package_registry == "AWS CodeArtifact" %}{% raw %}
99+
- name: OIDC Auth for Installing any dependencies that uv may need for build (sometimes it likes to install setuptools...even if it's already in the package dependencies)
100+
uses: aws-actions/configure-aws-credentials@{% endraw %}{{ gha_configure_aws_credentials }}{% raw %}
101+
with:
102+
role-to-assume: arn:aws:iam::{% endraw %}{{ aws_central_infrastructure_account_id }}{% raw %}:role/CoreInfraBaseAccess
103+
aws-region: {% endraw %}{{ aws_org_home_region }}{% raw %}
98104

105+
{% endraw %}{% endif %}{% raw %}
99106
- name: Build package
100107
run: uv build --no-sources
101108
{% endraw %}{% if python_package_registry == "AWS CodeArtifact" %}{% raw %}

template/pyproject.toml.jinja

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ dev = [
2929
"pytest>={% endraw %}{{ pytest_version }}{% raw %}",
3030
"pytest-cov>={% endraw %}{{ pytest_cov_version }}{% raw %}",
3131
"pytest-randomly>={% endraw %}{{ pytest_randomly_version }}{% raw %}",
32-
"setuptools>={% endraw %}{{ setuptools_version }}{% raw %}", # likely related to the kludge for license-files below
3332
{% endraw %}{% if create_docs %}{% raw %} "sphinx=={% endraw %}{{ sphinx_version }}{% raw %}",{% endraw %}{% endif %}{% raw %}
3433
{% endraw %}{% if is_frozen_executable %}{% raw %} "pyinstaller>={% endraw %}{{ pyinstaller_version }}{% raw %}",{% endraw %}{% endif %}{% raw %}
3534
]

0 commit comments

Comments
 (0)