Use setup extra_requires for dev/prod dependencies
Also add pylint by default.
This commit is contained in:
parent
1742f91a34
commit
0d88d17f7c
12
api/setup.py
12
api/setup.py
|
@ -22,11 +22,19 @@ setup(
|
||||||
scripts=["bin/libretime-api"],
|
scripts=["bin/libretime-api"],
|
||||||
install_requires=[
|
install_requires=[
|
||||||
"coreapi",
|
"coreapi",
|
||||||
"Django~=3.0",
|
"django~=3.0",
|
||||||
"djangorestframework",
|
"djangorestframework",
|
||||||
"django-url-filter",
|
"django-url-filter",
|
||||||
"markdown",
|
"markdown",
|
||||||
"model_bakery",
|
"model_bakery",
|
||||||
"psycopg2",
|
|
||||||
],
|
],
|
||||||
|
extras_require={
|
||||||
|
"prod": [
|
||||||
|
"psycopg2",
|
||||||
|
],
|
||||||
|
"dev": [
|
||||||
|
"psycopg2-binary",
|
||||||
|
"pylint",
|
||||||
|
],
|
||||||
|
},
|
||||||
)
|
)
|
||||||
|
|
|
@ -23,5 +23,11 @@ setup(
|
||||||
"kombu==4.6.10",
|
"kombu==4.6.10",
|
||||||
"configobj",
|
"configobj",
|
||||||
],
|
],
|
||||||
|
extras_require={
|
||||||
|
"prod": [],
|
||||||
|
"dev": [
|
||||||
|
"pylint",
|
||||||
|
],
|
||||||
|
},
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
distro
|
|
||||||
pylint
|
|
||||||
pytest
|
|
||||||
pytest-cov
|
|
||||||
pytest-xdist
|
|
|
@ -33,5 +33,15 @@ setup(
|
||||||
# If this version is changed, it needs changing in the install script too
|
# If this version is changed, it needs changing in the install script too
|
||||||
"pycairo==1.19.1",
|
"pycairo==1.19.1",
|
||||||
],
|
],
|
||||||
|
extras_require={
|
||||||
|
"prod": [],
|
||||||
|
"dev": [
|
||||||
|
"distro",
|
||||||
|
"pylint",
|
||||||
|
"pytest",
|
||||||
|
"pytest-cov",
|
||||||
|
"pytest-xdist",
|
||||||
|
],
|
||||||
|
},
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
)
|
)
|
||||||
|
|
|
@ -1,4 +0,0 @@
|
||||||
pylint
|
|
||||||
pytest
|
|
||||||
pytest-cov
|
|
||||||
pytest-xdist
|
|
|
@ -23,5 +23,14 @@ setup(
|
||||||
"python-dateutil>=2.7.0",
|
"python-dateutil>=2.7.0",
|
||||||
"requests",
|
"requests",
|
||||||
],
|
],
|
||||||
|
extras_require={
|
||||||
|
"prod": [],
|
||||||
|
"dev": [
|
||||||
|
"pylint",
|
||||||
|
"pytest",
|
||||||
|
"pytest-cov",
|
||||||
|
"pytest-xdist",
|
||||||
|
],
|
||||||
|
},
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
)
|
)
|
||||||
|
|
|
@ -37,5 +37,11 @@ setup(
|
||||||
"pytz",
|
"pytz",
|
||||||
"requests",
|
"requests",
|
||||||
],
|
],
|
||||||
|
extras_require={
|
||||||
|
"prod": [],
|
||||||
|
"dev": [
|
||||||
|
"pylint",
|
||||||
|
],
|
||||||
|
},
|
||||||
zip_safe=False,
|
zip_safe=False,
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue