You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello! Have you considered adding # via ... for direct dependencies as is currently done by pip-tools pip-compile?
Consider the following pyproject.toml:
[project]
name = "uv_test"dynamic = ["version"]
dependencies = ["pandas", "numpy"]
$ uv pip compile -o requirements.txt pyproject.toml
Resolved 6 packages in 10ms
# This file was autogenerated by uv via the following command:# uv pip compile -o requirements.txt pyproject.toml
numpy==1.26.4
# via pandas
pandas==2.2.1
python-dateutil==2.9.0.post0
# via pandas
pytz==2024.1
# via pandas
six==1.16.0
# via python-dateutil
tzdata==2024.1
# via pandas
$ pip-compile -o requirements.txt pyproject.toml
## This file is autogenerated by pip-compile with Python 3.12# by the following command:## pip-compile --output-file=requirements.txt pyproject.toml#
numpy==1.26.4
# via# pandas# uv_test (pyproject.toml)
pandas==2.2.1
# via uv_test (pyproject.toml)
python-dateutil==2.9.0.post0
# via pandas
pytz==2024.1
# via pandas
six==1.16.0
# via python-dateutil
tzdata==2024.1
# via pandas
As you can see, pip-compile adds # via uv_test (pyproject.toml) for the direct dependencies. I think it is useful to add this information to the requirements.txt file.
Hello! Have you considered adding
# via ...
for direct dependencies as is currently done by pip-toolspip-compile
?Consider the following
pyproject.toml
:As you can see,
pip-compile
adds# via uv_test (pyproject.toml)
for the direct dependencies. I think it is useful to add this information to therequirements.txt
file.The text was updated successfully, but these errors were encountered: