I'm using https://github.com/jazzband/pip-tools to handle compiling the requirements.txt for a Django project.
Previously, I was using without a setup.py and so i was using base.in, local.in, and production.in.
When I needed a local requirements.txt after i finish pip-compile, I just run pip-sync base.txt local.txt
and it will install the requirements for local environment.
When I needed a production requirements.txt after i finish pip-compile, I just run pip-sync base.txt production.txt
and it will install the requirements for production environment.
So I switch away from using base.in is because I wanted to also lock the python version and i realized, setup.py and setup.cfg can help using python_requires
But now i become unsure of how to use setup.py and setup.cfg along with pip-tools to compile requirements.txt that can be environment-specific.
The only documentation for layered requirements is by using the different .in files as written in the README as https://github.com/jazzband/pip-tools#workflow-for-layered-requirements
So my question is:
Given:
- pip-tools
- setup.py and setup.cfg
how to still have layered requirements?