mirror of https://github.com/astral-sh/uv
Use Bearer authentication for pyx publish test (#16864)
This commit is contained in:
parent
76d769d7a0
commit
eaa4651df0
|
|
@ -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
|
# If we're publishing to pyx, we need to give the httpx client
|
||||||
# access to an appropriate credential.
|
# access to an appropriate credential.
|
||||||
if target == "pyx-token":
|
if target == "pyx-token":
|
||||||
client.auth = httpx.BasicAuth(
|
client.headers.update(
|
||||||
username="__token__", password=os.environ["UV_TEST_PUBLISH_PYX_TOKEN"]
|
{"Authorization": f"Bearer {os.environ['UV_TEST_PUBLISH_PYX_TOKEN']}"}
|
||||||
)
|
)
|
||||||
|
|
||||||
project_name = all_targets[target].project_name
|
project_name = all_targets[target].project_name
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue