4 ms·
What do I have to put into pyproject.toml so that pip saves dependency ranges by default?
by Timon3 2y ago
What do I have to put into pyproject.toml so that pip saves dependency ranges by default?
- VagabundoP 2y agoSo pyproject.toml will be used by uv and others, like poetry. Pip uses a requirements.txt for depandancy management. Using uv as an example[0]: uv add "tqdm >=4.66.2,<5" [0]https://docs.astral.sh/uv/concepts/dependencies/#project-dependencies https://docs.astral.sh/uv/concepts/dependencies/#project-dep... I don't have access to uv to test that command at the moment, but that should work. uv then installs the dependency in the .venv directory in the project directory. This may include a specific version of python as well, if you pin one.
- Timon3 2y agoAs I already replied to another user, I know that this exists, and it doesn't have anything to do with my point. So sadly your suggestion doesn't help in any way.