mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
![]() This PR provides a script that uses environment variables to determine which registries to test. This script is being used to run automated registry tests in CI for AWS, Azure, GCP, Artifactory, GitLab, Cloudsmith, and Gemfury. You must configure the following required env vars for each registry: ``` UV_TEST_<registry_name>_URL URL for the registry UV_TEST_<registry_name>_TOKEN authentication token UV_TEST_<registry_name>_PKG private package to install ``` The username defaults to "\_\_token\_\_" but can be optionally set with: ``` UV_TEST_<registry_name>_USERNAME ``` For each configured registry, the test will attempt to install the specified package. Some registries can fall back to PyPI internally, so it's important to choose a package that only exists in the registry you are testing. Currently, a successful test means that it finds the line “ + <package_name>” in the output. This is because in its current form we don’t know ahead of time what package it is and hence what the exact expected output would be. The advantage if that anyone can run this locally, though they would have to have access to the registries they want to test. You can also use the `--use-op` command line argument to derive these test env vars from a 1Password vault (default is "RegistryTests" but can be configured with `--op-vault`). It will look at all items in the vault with names following the pattern `UV_TEST_<registry_name>` and will derive the env vars as follows: ``` `UV_TEST_<registry_name>_USERNAME` from the `username` field `UV_TEST_<registry_name>_TOKEN` from the `password` field `UV_TEST_<registry_name>_URL` from a field with the label `url` `UV_TEST_<registry_name>_PKG` from a field with the label `pkg` ``` |
||
---|---|---|
.. | ||
benchmark | ||
links | ||
packages | ||
popular_packages | ||
publish | ||
requirements | ||
scenarios | ||
smoke-test | ||
workspaces | ||
check_cache_compat.py | ||
check_embedded_python.py | ||
check_registry.py | ||
check_system_python.py | ||
create-python-mirror.py | ||
registries-test.py | ||
release.sh | ||
reverse-changelog.py | ||
sync_scenarios.sh | ||
transform_readme.py | ||
update_schemastore.py | ||
uv-run-remote-script-test.py |