Use Bearer authentication for pyx publish test (#16864)

This commit is contained in:
William Woodruff 2025-11-26 12:05:48 -05:00 committed by GitHub
parent 76d769d7a0
commit eaa4651df0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -431,8 +431,8 @@ def publish_project(target: str, uv: Path, client: httpx.Client):
# If we're publishing to pyx, we need to give the httpx client
# access to an appropriate credential.
if target == "pyx-token":
client.auth = httpx.BasicAuth(
username="__token__", password=os.environ["UV_TEST_PUBLISH_PYX_TOKEN"]
client.headers.update(
{"Authorization": f"Bearer {os.environ['UV_TEST_PUBLISH_PYX_TOKEN']}"}
)
project_name = all_targets[target].project_name