About Automatic Detection of Private Wheel Versions
To install a Python package from a private wheel, you would have this in your requirements.txt:
file:./private_wheels/django_gdpr_cookie_consent-5.0.0-py3-none-any.whl
However, this way, you must pin to a specific version of the wheel.
To automatically pick the version from the private_wheels directory, set this instead:
--find-links=./private_wheels/
django-gdpr-cookie-consent>=5.0.0,<6.0.0
This works analogically in the tox.ini file:
[testenv]
deps =
--find-links={toxinidir}/private_wheels/
django-gdpr-cookie-consent>=5.0.0,<6.0.0
You can use pip-compile and --find-links setting without problems:
$ pip-compile requirements.in
However the current version of pip-compile-multi strips out the --find-links setting. If you are using pip-compile-multi, a workaround would be to append it back to the output files, e.g.:
$ pip-compile-multi --uv
$ echo "--find-links=./private_wheels/" >> requirements/_base.txt
Tips and Tricks Programming Testing Packaging Python 3 tox pip Wheel pip-tools pip-compile-multi
Also by me
Django Messaging
For Django-based social platforms.
Django Paddle Subscriptions
For Django-based SaaS projects.
Django GDPR Cookie Consent
For Django websites that use cookies.