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 example for compile current env packages #1968

Merged
merged 2 commits into from
Mar 19, 2024
Merged

Conversation

T-256
Copy link
Contributor

@T-256 T-256 commented Feb 25, 2024

Summary

I was going to create a feature-request issue for adding graph like showing of currently installed dependencies in venv, but then I found uv pip freeze | uv pip compile is what I'm looking for.

As one who manually pip-installs packages every once in a while (instead of edit requirements.in each time), after a while I would need to have graph of installed packages (e.g. to see how uninstallinga packages effects on others).

I found this command is so useful and wondered if we could have this in docs as one of uv features.

Test Plan

@mitsuhiko

This comment was marked as outdated.

@charliermarsh
Copy link
Member

Can you say a bit more about how / when you use this?

@charliermarsh charliermarsh added the documentation Improvements or additions to documentation label Mar 3, 2024
@T-256
Copy link
Contributor Author

T-256 commented Mar 3, 2024

Can you say a bit more about how / when you use this?

When I need a dependencies-tree in an environment, and I didn't have/use requirements.in.
So, first step is to export deps using pip freeze. Also, I don't want to create temporary requirements.in, so I pipe it to pip compile.

README.md Outdated Show resolved Hide resolved
README.md Outdated Show resolved Hide resolved
@zanieb zanieb self-assigned this Mar 18, 2024
Co-authored-by: Zanie Blue <contact@zanie.dev>
@zanieb
Copy link
Member

zanieb commented Mar 19, 2024

Thanks!

@zanieb zanieb merged commit eb59cda into astral-sh:main Mar 19, 2024
30 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants