package-management

Use poetry to create templated Python projects

Use poetry to create templated Python projects Question: Having struggled with Python package management, I have come to like Poetry. I am (mostly) able to use it without issues and installing packages is working well for me. However, I find myself repeating the same pattern over and over again: poetry new my_new_package cd my_new_package poetry …

Total answers: 2

How to extract dependencies from a PyPi package without downloading it?

How to extract dependencies from a PyPi package without downloading it? Question: I want to get the dependency of a PyPi package remotely without needing to download it completely. I seem to understand (reading the pip code) that pip when resolving dependencies seems to read the egg once the package has been downloaded. Is there …

Total answers: 5

Split requirements files in pip

Split requirements files in pip Question: To create Python virtual environments I use virtualenv and pip. The workflow is very simple: $ virtualenv project $ cd project $ . bin/activate $ pip install -r /path/to/requirements/req1.txt $ pip install -r /path/to/requirements/req2.txt The number of different requirement files can grow enough to make handy to have a …

Total answers: 2