-
Notifications
You must be signed in to change notification settings - Fork 899
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
Documentation feedback #5605
Comments
https://docs.astral.sh/uv/concepts/python-versions/#adjusting-python-version-preferences |
We don't have a commands to modify a persistent configuration file — you can put it in a
Thanks for the feedback though! Sounds like we should link to the persistent configuration documentation here. |
A little suggestion: add the use of I habitually use --help to see what commands I can use. PS: I don't understand why it should be hidden in --help. Except for this command, the outputs of |
I'm not sure why it's hidden — I copied this from Ruff. I think it might be because it shifts the indent for the rest of the commands way to the right and dramatically reduces the space we have for concise documentation. Thanks for the feedback! Tracked in #6153 |
Maybe we can improve the |
On
This sounded to me as if By the way, I added this to my 00 00 * * * uv self update |
Minor confusion for me in https://docs.astral.sh/uv/concepts/tools/, emphasis mine:
...
For Furthermore, what does it mean "disposable" in this context? In my first reading I understood If I do |
One suggestion would be to reiterate in the CLI reference docs for Another thing is that in the tool concepts page, it directly references
In both these cases, the implicit assumption is that the user knows that |
(Thanks for the feedback everyone, I'll attempt to address all that) We should talk about defining constraints in the |
@gusutabopb let me know if #6468 is sufficient! |
Hi! I hope this is the correct place, but I would request examples for:
I ask because this does not work from my existing pyproject.toml:
I add auth to the config by running:
Finding the equivalent of that last line for I'm similarly interested in jfrog examples, but this is the one I can provide the most specific details on. |
The FastAPI guide needs to be updated to reflect the changes introduced to the default behavior of |
|
I'm not sure why there's a python-version file if this information is also in the |
The documentation about running scripts using the inline metadata (link) doesn't mention support for specifying the dependency sources via the # /// script
# requires-python = ">=3.12"
# dependencies = [
# "requests",
# ]
# [tool.uv.sources]
# requests = { git = "https://github.com/psf/requests.git", tag = "v2.32.2" }
# ///
import requests
print(requests.__version__) # 2.32.2 (2.32.3 is the latest) I think the documentation can be explicit about officially supporting (or not supporting) it. |
@shunichironomura thanks! I think we need to create a separate "Scripts" concept page because that's way too advanced for the "guide" documentation. |
Would be nice to have information on whether virtual workspaces (no |
You might be looking for this: https://docs.astral.sh/uv/concepts/projects/#applications |
That is still an application that has its own python code from what I can tell. The Cargo virtual workspaces just combine related packages together, where there isn't necessarily one "main" binary. Taking from the workspace example in uv docs,
imagine And just to be clear, I'm not asking this feature to be implemented, only clarification on whether or not it is supported because the documentation page explicitly refers to Cargo. |
I have a couple questions about the lockfile after reading the docs on it. Is the The reason I'm looking for a schema / specification is that I would like to be able to parse My other question is whether you expect the |
@scimas Virtual projects were removed in #6720 (from the docs at least - cannot quickly find other pointers) |
@scimas -- Yeah that layout is fully supported. You can create a @astrojuanlu -- We removed most mentions of "virtual" since it wasn't a familiar concept, but the idea of a project that just lists members and dependencies is still supported. |
In addition to the poetry migration guide requested above, migration guides for pipenv, requirements.txt, and even direct from the environment would be helpful. It took too long to find that the Really a nit -- The concept pages are very in the weeds with details about the CLI. Being more opinionated on the patterns/anti-patterns of python project/dep/version/tool management with uv and focusing on concepts that influence user decisions (e.g. do I use |
The "when (not) to use workspaces" section conflates
uv/docs/concepts/workspaces.md Lines 152 to 165 in 94fc35e
uv/docs/concepts/workspaces.md Lines 167 to 168 in 94fc35e
It would be nice if the latter were more clearly explained, specifically the "independent/loosely related packages with possibly conflicting dependencies". The docs give an example of a "path dependency", but that seems to be targeted to a root member depending on a subpackage, which maybe isn't even needed. And the potential overlap with Dependency Groups is unclear. Maybe a dedicated page (and, dare I say, another name?) |
My question was not how to edit the lock file, but how to let it dictate the dependencies of a project. |
I don't quite understand. The lockfile is created from the |
@charliermarsh Thank you for taking the time, and sorry for creating confusion. From the documentation:
I understand how this important for two reason, knowing the exact packages and version used for every commit in the project, and if anyone want to fork or clone a project and replicate the environment. So say that I fork SomeRepo, that contains a uv.lock, to a new machine and want to have the exact resolved versions that was installed in the project environment by the creator of SomeRepo. How do I interact with uv.lock to replicate the project environment? Reading the documentation it is described how uv.lock is generated (or how we avoid it to be changed), but it doesn't detail how uv.lock is used by uv. (Is there for instance a |
Maybe |
I think it would be better to have a chapter to introduce how to integrate uv into existing projects, or to improve the user experience of using uv to replace the tools it claims to replace. Taking me as an example, I use pip/requirements.txt to maintain the dependencies of existing projects, use pyenv to manage multiple versions of Python interpreters, and use virtualenvwrapper to manage virtual environments. When I heard about the all-in-one tool uv, I was excited, but the next second I was frustrated: I had to figure out the details of UV to gradually replace these tools Take this issue as an example to illustrate the challenges that new users of uv might encounter. |
If anybody is looking to get started with migrating from poetry to uv, I documented the approach I took here: #5200 (comment). |
Thank you, that seems what I am after! |
Could you please provide information on the best way to install PyTorch with GPU support in a project that is portable across different systems and can be easily upgraded? |
Hi guys, I just wanted to report that the Discord invitation link provided here in the documentation is expired. |
As a Chinese language user, I would like to inquire whether the UV community's documentation requires internationalization translation, and I am willing to contribute a Pull Request for the Chinese translation of the UV documentation. |
Hey @GiovanniGiacometti — that link works for me still, are you sure? @Muzych I appreciate the offer! I'm not quite sure how we'd maintain that — we make frequent changes to the documentation. What do you think the long-term plan for that would be? |
Hello, my idea is to first complete the internationalization translation based on the current version, and then make minor adjustments to the details once UV's performance is stable. What do you think about this approach? |
A surprising behaviour I've noticed, that I couldn't see documented and possibly good to capture somewhere:
|
I think this should only be the case if the current directory is a workspace member of the parent directory. |
We'll be making large, frequent adjustments to the documentation. I'm concerned it will go out of date. Let's discuss this over in a dedicated issue #9606 |
In my case I hadn’t set up a workspace. |
@tekumara that sounds like a bug, could you open an issue with a reproduction? |
https://docs.astral.sh/uv/guides/scripts/ doesn't explain where |
@abitrolly that's beyond the scope of the a "guide", when we introduce a "concept" document for scripts we can cover that — but they're just in the uv cache. |
@eliasdabbas cool thank you! cc @dhruvmanila for Ruff's documentation. |
@zanieb it still may worth to mention it somewhere in the middle, or link to relevant cleanup docs. I assume |
Hi! I noticed the documentation about configuring alternative indexes seems to be outdated and incomplete: https://docs.astral.sh/uv/guides/integration/alternative-indexes/
Also the Environment variables page doesn't explain how to properly authenticate to alternative indexes other than embedding the credentials in the URL Have a good day! |
This is a tracking issue for feedback on the new documentation at https://docs.astral.sh/uv/
The text was updated successfully, but these errors were encountered: