├── .editorconfig ├── .git-blame-ignore-revs ├── .gitattributes ├── .github ├── actionlint.yaml ├── copilot-instructions.md ├── dependabot.yml ├── python.json ├── release-drafter.yml ├── scripts │ └── check-all-tests-passed-needs.ts └── workflows │ ├── codeql-analysis.yml │ ├── release-drafter.yml │ ├── test.yml │ ├── update-known-versions.yml │ └── update-major-minor-tags.yml ├── .gitignore ├── .nvmrc ├── .vscode ├── extensions.json └── settings.json ├── CODEOWNERS ├── LICENSE ├── README.md ├── __tests__ ├── download │ ├── checksum │ │ └── checksum.test.ts │ └── custom-manifest.json ├── fixtures │ ├── .tool-versions │ ├── cache-dir-defined-project │ │ ├── README.md │ │ ├── pyproject.toml │ │ ├── src │ │ │ └── uv_project │ │ │ │ └── __init__.py │ │ └── uv.lock │ ├── checksumfile │ ├── malformed-pyproject-toml-project │ │ ├── .python-version │ │ ├── README.md │ │ ├── hello.py │ │ └── pyproject.toml │ ├── old-python-constraint-project │ │ ├── README.md │ │ ├── pyproject.toml │ │ ├── src │ │ │ └── old_python_constraint_project │ │ │ │ └── __init__.py │ │ └── uv.lock │ ├── pyproject-toml-project │ │ ├── .python-version │ │ ├── README.md │ │ ├── hello.py │ │ └── pyproject.toml │ ├── requirements-txt-project │ │ ├── hello_world.py │ │ └── requirements.txt │ ├── uv-in-requirements-hash-txt-project │ │ ├── hello_world.py │ │ └── requirements.txt │ ├── uv-in-requirements-txt-project │ │ ├── hello_world.py │ │ └── requirements.txt │ ├── uv-project │ │ ├── README.md │ │ ├── pyproject.toml │ │ ├── src │ │ │ └── uv_project │ │ │ │ └── __init__.py │ │ └── uv.lock │ └── uv-toml-project │ │ ├── .python-version │ │ ├── README.md │ │ ├── hello.py │ │ ├── pyproject.toml │ │ └── uv.toml ├── utils │ └── inputs.test.ts └── version │ ├── requirements-file.test.ts │ ├── requirements-hashes-file.test.ts │ └── tool-versions-file.test.ts ├── action.yml ├── biome.json ├── dist ├── save-cache │ └── index.js ├── setup │ └── index.js └── update-known-versions │ └── index.js ├── docs ├── advanced-version-configuration.md ├── caching.md ├── customization.md └── environment-and-tools.md ├── jest.config.js ├── package.json ├── src ├── cache │ └── restore-cache.ts ├── download │ ├── checksum │ │ ├── checksum.ts │ │ ├── known-checksums.ts │ │ └── update-known-checksums.ts │ ├── download-version.ts │ └── version-manifest.ts ├── hash │ └── hash-files.ts ├── save-cache.ts ├── setup-uv.ts ├── update-known-versions.ts ├── utils │ ├── config-file.ts │ ├── constants.ts │ ├── fetch.ts │ ├── inputs.ts │ ├── octokit.ts │ └── platforms.ts └── version │ ├── requirements-file.ts │ ├── resolve.ts │ └── tool-versions-file.ts ├── tsconfig.json └── version-manifest.json /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/.editorconfig -------------------------------------------------------------------------------- /.git-blame-ignore-revs: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | * text=auto eol=lf 2 | dist/** -diff linguist-generated=true 3 | -------------------------------------------------------------------------------- /.github/actionlint.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/.github/actionlint.yaml -------------------------------------------------------------------------------- /.github/copilot-instructions.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/.github/copilot-instructions.md -------------------------------------------------------------------------------- /.github/dependabot.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/.github/dependabot.yml -------------------------------------------------------------------------------- /.github/python.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/.github/python.json -------------------------------------------------------------------------------- /.github/release-drafter.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/.github/release-drafter.yml -------------------------------------------------------------------------------- /.github/scripts/check-all-tests-passed-needs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/.github/scripts/check-all-tests-passed-needs.ts -------------------------------------------------------------------------------- /.github/workflows/codeql-analysis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/.github/workflows/codeql-analysis.yml -------------------------------------------------------------------------------- /.github/workflows/release-drafter.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/.github/workflows/release-drafter.yml -------------------------------------------------------------------------------- /.github/workflows/test.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/.github/workflows/test.yml -------------------------------------------------------------------------------- /.github/workflows/update-known-versions.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/.github/workflows/update-known-versions.yml -------------------------------------------------------------------------------- /.github/workflows/update-major-minor-tags.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/.github/workflows/update-major-minor-tags.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/.gitignore -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | 24 2 | -------------------------------------------------------------------------------- /.vscode/extensions.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/.vscode/extensions.json -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/.vscode/settings.json -------------------------------------------------------------------------------- /CODEOWNERS: -------------------------------------------------------------------------------- 1 | * @eifinger 2 | -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/README.md -------------------------------------------------------------------------------- /__tests__/download/checksum/checksum.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/download/checksum/checksum.test.ts -------------------------------------------------------------------------------- /__tests__/download/custom-manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/download/custom-manifest.json -------------------------------------------------------------------------------- /__tests__/fixtures/.tool-versions: -------------------------------------------------------------------------------- 1 | uv 0.5.15 2 | -------------------------------------------------------------------------------- /__tests__/fixtures/cache-dir-defined-project/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /__tests__/fixtures/cache-dir-defined-project/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/fixtures/cache-dir-defined-project/pyproject.toml -------------------------------------------------------------------------------- /__tests__/fixtures/cache-dir-defined-project/src/uv_project/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/fixtures/cache-dir-defined-project/src/uv_project/__init__.py -------------------------------------------------------------------------------- /__tests__/fixtures/cache-dir-defined-project/uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/fixtures/cache-dir-defined-project/uv.lock -------------------------------------------------------------------------------- /__tests__/fixtures/checksumfile: -------------------------------------------------------------------------------- 1 | Random file content -------------------------------------------------------------------------------- /__tests__/fixtures/malformed-pyproject-toml-project/.python-version: -------------------------------------------------------------------------------- 1 | 3.11 2 | -------------------------------------------------------------------------------- /__tests__/fixtures/malformed-pyproject-toml-project/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /__tests__/fixtures/malformed-pyproject-toml-project/hello.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/fixtures/malformed-pyproject-toml-project/hello.py -------------------------------------------------------------------------------- /__tests__/fixtures/malformed-pyproject-toml-project/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/fixtures/malformed-pyproject-toml-project/pyproject.toml -------------------------------------------------------------------------------- /__tests__/fixtures/old-python-constraint-project/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /__tests__/fixtures/old-python-constraint-project/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/fixtures/old-python-constraint-project/pyproject.toml -------------------------------------------------------------------------------- /__tests__/fixtures/old-python-constraint-project/src/old_python_constraint_project/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/fixtures/old-python-constraint-project/src/old_python_constraint_project/__init__.py -------------------------------------------------------------------------------- /__tests__/fixtures/old-python-constraint-project/uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/fixtures/old-python-constraint-project/uv.lock -------------------------------------------------------------------------------- /__tests__/fixtures/pyproject-toml-project/.python-version: -------------------------------------------------------------------------------- 1 | 3.11 2 | -------------------------------------------------------------------------------- /__tests__/fixtures/pyproject-toml-project/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /__tests__/fixtures/pyproject-toml-project/hello.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/fixtures/pyproject-toml-project/hello.py -------------------------------------------------------------------------------- /__tests__/fixtures/pyproject-toml-project/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/fixtures/pyproject-toml-project/pyproject.toml -------------------------------------------------------------------------------- /__tests__/fixtures/requirements-txt-project/hello_world.py: -------------------------------------------------------------------------------- 1 | print("Hello world") 2 | -------------------------------------------------------------------------------- /__tests__/fixtures/requirements-txt-project/requirements.txt: -------------------------------------------------------------------------------- 1 | ruff>=0.6.2 2 | -------------------------------------------------------------------------------- /__tests__/fixtures/uv-in-requirements-hash-txt-project/hello_world.py: -------------------------------------------------------------------------------- 1 | print("Hello world") 2 | -------------------------------------------------------------------------------- /__tests__/fixtures/uv-in-requirements-hash-txt-project/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/fixtures/uv-in-requirements-hash-txt-project/requirements.txt -------------------------------------------------------------------------------- /__tests__/fixtures/uv-in-requirements-txt-project/hello_world.py: -------------------------------------------------------------------------------- 1 | print("Hello world") 2 | -------------------------------------------------------------------------------- /__tests__/fixtures/uv-in-requirements-txt-project/requirements.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/fixtures/uv-in-requirements-txt-project/requirements.txt -------------------------------------------------------------------------------- /__tests__/fixtures/uv-project/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /__tests__/fixtures/uv-project/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/fixtures/uv-project/pyproject.toml -------------------------------------------------------------------------------- /__tests__/fixtures/uv-project/src/uv_project/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/fixtures/uv-project/src/uv_project/__init__.py -------------------------------------------------------------------------------- /__tests__/fixtures/uv-project/uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/fixtures/uv-project/uv.lock -------------------------------------------------------------------------------- /__tests__/fixtures/uv-toml-project/.python-version: -------------------------------------------------------------------------------- 1 | 3.11 2 | -------------------------------------------------------------------------------- /__tests__/fixtures/uv-toml-project/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /__tests__/fixtures/uv-toml-project/hello.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/fixtures/uv-toml-project/hello.py -------------------------------------------------------------------------------- /__tests__/fixtures/uv-toml-project/pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/fixtures/uv-toml-project/pyproject.toml -------------------------------------------------------------------------------- /__tests__/fixtures/uv-toml-project/uv.toml: -------------------------------------------------------------------------------- 1 | required-version = "==0.5.15" 2 | -------------------------------------------------------------------------------- /__tests__/utils/inputs.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/utils/inputs.test.ts -------------------------------------------------------------------------------- /__tests__/version/requirements-file.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/version/requirements-file.test.ts -------------------------------------------------------------------------------- /__tests__/version/requirements-hashes-file.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/version/requirements-hashes-file.test.ts -------------------------------------------------------------------------------- /__tests__/version/tool-versions-file.test.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/__tests__/version/tool-versions-file.test.ts -------------------------------------------------------------------------------- /action.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/action.yml -------------------------------------------------------------------------------- /biome.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/biome.json -------------------------------------------------------------------------------- /dist/save-cache/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/dist/save-cache/index.js -------------------------------------------------------------------------------- /dist/setup/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/dist/setup/index.js -------------------------------------------------------------------------------- /dist/update-known-versions/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/dist/update-known-versions/index.js -------------------------------------------------------------------------------- /docs/advanced-version-configuration.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/docs/advanced-version-configuration.md -------------------------------------------------------------------------------- /docs/caching.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/docs/caching.md -------------------------------------------------------------------------------- /docs/customization.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/docs/customization.md -------------------------------------------------------------------------------- /docs/environment-and-tools.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/docs/environment-and-tools.md -------------------------------------------------------------------------------- /jest.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/jest.config.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/package.json -------------------------------------------------------------------------------- /src/cache/restore-cache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/cache/restore-cache.ts -------------------------------------------------------------------------------- /src/download/checksum/checksum.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/download/checksum/checksum.ts -------------------------------------------------------------------------------- /src/download/checksum/known-checksums.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/download/checksum/known-checksums.ts -------------------------------------------------------------------------------- /src/download/checksum/update-known-checksums.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/download/checksum/update-known-checksums.ts -------------------------------------------------------------------------------- /src/download/download-version.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/download/download-version.ts -------------------------------------------------------------------------------- /src/download/version-manifest.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/download/version-manifest.ts -------------------------------------------------------------------------------- /src/hash/hash-files.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/hash/hash-files.ts -------------------------------------------------------------------------------- /src/save-cache.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/save-cache.ts -------------------------------------------------------------------------------- /src/setup-uv.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/setup-uv.ts -------------------------------------------------------------------------------- /src/update-known-versions.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/update-known-versions.ts -------------------------------------------------------------------------------- /src/utils/config-file.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/utils/config-file.ts -------------------------------------------------------------------------------- /src/utils/constants.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/utils/constants.ts -------------------------------------------------------------------------------- /src/utils/fetch.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/utils/fetch.ts -------------------------------------------------------------------------------- /src/utils/inputs.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/utils/inputs.ts -------------------------------------------------------------------------------- /src/utils/octokit.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/utils/octokit.ts -------------------------------------------------------------------------------- /src/utils/platforms.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/utils/platforms.ts -------------------------------------------------------------------------------- /src/version/requirements-file.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/version/requirements-file.ts -------------------------------------------------------------------------------- /src/version/resolve.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/version/resolve.ts -------------------------------------------------------------------------------- /src/version/tool-versions-file.ts: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/src/version/tool-versions-file.ts -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/tsconfig.json -------------------------------------------------------------------------------- /version-manifest.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/astral-sh/setup-uv/HEAD/version-manifest.json --------------------------------------------------------------------------------