Use setup extra_requires for dev/prod dependencies

Also add pylint by default.
This commit is contained in:
jo 2021-09-10 13:45:27 +02:00
parent 1742f91a34
commit 0d88d17f7c
7 changed files with 41 additions and 11 deletions

View File

@ -22,11 +22,19 @@ setup(
scripts=["bin/libretime-api"],
install_requires=[
"coreapi",
"Django~=3.0",
"django~=3.0",
"djangorestframework",
"django-url-filter",
"markdown",
"model_bakery",
"psycopg2",
],
extras_require={
"prod": [
"psycopg2",
],
"dev": [
"psycopg2-binary",
"pylint",
],
},
)

View File

@ -23,5 +23,11 @@ setup(
"kombu==4.6.10",
"configobj",
],
extras_require={
"prod": [],
"dev": [
"pylint",
],
},
zip_safe=False,
)

View File

@ -1,5 +0,0 @@
distro
pylint
pytest
pytest-cov
pytest-xdist

View File

@ -33,5 +33,15 @@ setup(
# If this version is changed, it needs changing in the install script too
"pycairo==1.19.1",
],
extras_require={
"prod": [],
"dev": [
"distro",
"pylint",
"pytest",
"pytest-cov",
"pytest-xdist",
],
},
zip_safe=False,
)

View File

@ -1,4 +0,0 @@
pylint
pytest
pytest-cov
pytest-xdist

View File

@ -23,5 +23,14 @@ setup(
"python-dateutil>=2.7.0",
"requests",
],
extras_require={
"prod": [],
"dev": [
"pylint",
"pytest",
"pytest-cov",
"pytest-xdist",
],
},
zip_safe=False,
)

View File

@ -37,5 +37,11 @@ setup(
"pytz",
"requests",
],
extras_require={
"prod": [],
"dev": [
"pylint",
],
},
zip_safe=False,
)