I'm following the without setup.py
example in the pip-tools
documentation at https://github.com/jazzband/pip-tools#without-setuppy
What I did is I have this as my requirements.in
# To update requirements.txt, run:
#
# pip-compile requirements.in
#
# To install in localhost, run:
#
# pip-sync requirements.txt
#
django==3.2.5 # https://www.djangoproject.com/
psycopg2-binary==2.8.6 # https://github.com/psycopg/psycopg2
Then I have this as prod-requirements.in
# To update prod-requirements.txt, run:
#
# pip-compile prod-requirements.in
#
# To install in prod, run:
#
# pip-sync requirements.txt prod-requirements.txt
#
-c requirements.txt
gunicorn==20.1.0 # https://github.com/benoitc/gunicorn
At the production I run
$ pip-sync requirements.txt prod-requirements.txt
My question is how do I enforce a minimum python version? I only want to set up to the minor python version. meaning I want a way to pin to python 3.8 for example.
Can I do that with pip-tools? Do I need to choose the setup.py method?
I prefer to do it with just the requirements.in method as I'm most familiar with it