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"],
|
||||
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",
|
||||
],
|
||||
},
|
||||
)
|
||||
|
|
|
@ -23,5 +23,11 @@ setup(
|
|||
"kombu==4.6.10",
|
||||
"configobj",
|
||||
],
|
||||
extras_require={
|
||||
"prod": [],
|
||||
"dev": [
|
||||
"pylint",
|
||||
],
|
||||
},
|
||||
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
|
||||
"pycairo==1.19.1",
|
||||
],
|
||||
extras_require={
|
||||
"prod": [],
|
||||
"dev": [
|
||||
"distro",
|
||||
"pylint",
|
||||
"pytest",
|
||||
"pytest-cov",
|
||||
"pytest-xdist",
|
||||
],
|
||||
},
|
||||
zip_safe=False,
|
||||
)
|
||||
|
|
|
@ -1,4 +0,0 @@
|
|||
pylint
|
||||
pytest
|
||||
pytest-cov
|
||||
pytest-xdist
|
|
@ -23,5 +23,14 @@ setup(
|
|||
"python-dateutil>=2.7.0",
|
||||
"requests",
|
||||
],
|
||||
extras_require={
|
||||
"prod": [],
|
||||
"dev": [
|
||||
"pylint",
|
||||
"pytest",
|
||||
"pytest-cov",
|
||||
"pytest-xdist",
|
||||
],
|
||||
},
|
||||
zip_safe=False,
|
||||
)
|
||||
|
|
|
@ -37,5 +37,11 @@ setup(
|
|||
"pytz",
|
||||
"requests",
|
||||
],
|
||||
extras_require={
|
||||
"prod": [],
|
||||
"dev": [
|
||||
"pylint",
|
||||
],
|
||||
},
|
||||
zip_safe=False,
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue