Open abhi3700 opened 7 months ago
Hi thanks for the PR!
Is huak run pip freeze > requirements.txt
sufficient?
Hi thanks for the PR!
Is
huak run pip freeze > requirements.txt
sufficient?
No. Because that adds all the other dependencies that may not be required like this:
In fact, the intension is to just add the pyproject.toml
dependencies into requirements.txt
.
This would:
requirements.txt
file size.flet
)I see but then we are defining what freeze means ourselves as something different, and I don't really like that definition. The point of freezing to a requirements file is to take a snapshot of the current environment.
I think what you're looking for is a way to export the pyproject.toml to a requirements file.
Another thing to note is that I plan to bundle uv
with Huak. So at some point uv
can be used for environment reproducibility.
Well I can change the name if that's not matching the purpose.
Also, didn't know about uv
merging plan.
But, can we reproduce this with uv
?
Moreover, I personally don't like uv
as it is nowhere close to Rust's cargo
-like package manager, which huak
is pretty much close to.
Description
This PR is to add
freeze
command inhuak
so that it can create arequirements.txt
file in the same directory aspyproject.toml
.Usage
In a project with
pyproject.toml
:$ huak freeze
works like this:with
requirements.txt
as:To create a custom file:
with
deps.txt
as: