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

Add more use-case based documentation - syncing projects across machines #10961

Open
bjornasm opened this issue Oct 30, 2024 · 1 comment
Open

Comments

@bjornasm
Copy link

bjornasm commented Oct 30, 2024

First of all, thank you for a great tool!

I have not used anything else than .venv and pip before, so I may have different needs from the documentation than most. With that in mind, could we get more use-case based documentation?

My specific use case was that I had a project in a repo that I wanted to set up on a different computer. Reading the documentation, about lockfiles: This file should be checked into version control, allowing for consistent and reproducible installations across machines., I figured that the uv.lock file should be checked into version control, and used to reproduce the environment on the differenct computer. However git clone (..) & uv init & uv sync overwrites the uv.lock file. I think that means that both pyproj.toml and uv.lock should be checked into version control?

Just a small proposal:

Syncing projects across machines

To sync projects between machines using version control, check in both the uv.lock file and pyproj.toml into version control. On the new machine, clone your repository. Run uv init (?) / run uv sync (...)

Related to this is the use case of adding uv on already existing projects (uv init will generate a folder structure and hello.py and thus doesn't like the right way of doing this.)

I think for us that are new to tooling systems like this, it will help a lot to follow specific use-case as all the different concepts can be a bit overwhelming when trying to piece it together.

@bjornasm bjornasm changed the title Add more use-case based documentation Add more use-case based documentation - syncing projects across machines Oct 30, 2024
@zanieb
Copy link
Member

zanieb commented Jan 25, 2025

Missed this because it's actually a uv issue — transferring there.

@zanieb zanieb transferred this issue from astral-sh/docs Jan 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants