Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make UV_PYTHON_INSTALL_MIRROR configurable in pyproject.toml #8166

Open
benjs opened this issue Oct 14, 2024 · 2 comments
Open

Make UV_PYTHON_INSTALL_MIRROR configurable in pyproject.toml #8166

benjs opened this issue Oct 14, 2024 · 2 comments
Labels
configuration Settings and such needs-decision Undecided if this should be done

Comments

@benjs
Copy link

benjs commented Oct 14, 2024

It would be nice if we could specify all of our project's mirrors like index-url extra-index-url in a single place, for instance in the pyproject.toml.
Would it be possible to add an additional entry, for instance like this?

[tool.uv]
index-url = "https://<my-index-url.com>/pypi/pypi/simple"
extra-index-url = ["https://<my-index-url.com>/pypi/pypi-extra/simple"]
python-mirror-url = "https://<my-mirror-url.com>/indygreg/python-build-standalone/releases/download/"

uv version

uv 0.4.18

Thanks for all the great work.

@zanieb
Copy link
Member

zanieb commented Oct 14, 2024

I'm not sure we want to mix project configuration with things that should be configured at the user and system level. Wouldn't it be surprising if your mirror wasn't respected outside the project and downloads failed or came from another source?

@charliermarsh charliermarsh added configuration Settings and such needs-decision Undecided if this should be done labels Oct 14, 2024
@benjs
Copy link
Author

benjs commented Oct 14, 2024

Thanks for the answer.

Yes, from the view of sharing code publicly to all kinds of people, I agree.
But when within a restricted network of a company, the mirror is always the same and has to be set additionally. It is much easier to specify it once in a configuration file instead of specifying it in every container, every laptop & every cloud code instance.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
configuration Settings and such needs-decision Undecided if this should be done
Projects
None yet
Development

No branches or pull requests

3 participants