Declare Django versions in install_requires

Pip's dependency resolver (used in pipenv, pip-compile, poetry, etc.) can use this to infer whether there's a verison collision in what it's being asked to install or not.
This commit is contained in:
Adam Johnson 2019-11-21 14:38:31 +00:00 committed by GitHub
parent 7fbbfe2c60
commit e03aeb0ca2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -82,7 +82,7 @@ setup(
author_email='tom@tomchristie.com', # SEE NOTE BELOW (*) author_email='tom@tomchristie.com', # SEE NOTE BELOW (*)
packages=find_packages(exclude=['tests*']), packages=find_packages(exclude=['tests*']),
include_package_data=True, include_package_data=True,
install_requires=[], install_requires=["django>=1.11,<3.1"],
python_requires=">=3.5", python_requires=">=3.5",
zip_safe=False, zip_safe=False,
classifiers=[ classifiers=[