Commit 87dcdb9f authored by J. Fernando Sánchez's avatar J. Fernando Sánchez

Refactor requirements

parent 67ef4b60
...@@ -21,8 +21,8 @@ ONBUILD WORKDIR /senpy-plugins/ ...@@ -21,8 +21,8 @@ ONBUILD WORKDIR /senpy-plugins/
WORKDIR /usr/src/app WORKDIR /usr/src/app
COPY test-requirements.txt requirements.txt /usr/src/app/ COPY test-requirements.txt requirements.txt /usr/src/app/
RUN pip install --no-cache-dir -r test-requirements.txt -r requirements.txt RUN pip install --no-cache-dir -r test-requirements.txt -r requirements.txt -r extra-requirements.txt
COPY . /usr/src/app/ COPY . /usr/src/app/
RUN pip install --no-cache-dir --editable '/usr/src/app[evaluation]' RUN pip install --no-cache-dir --no-index --no-deps --editable .
ENTRYPOINT ["python", "-m", "senpy", "-f", "/senpy-plugins/", "--host", "0.0.0.0"] ENTRYPOINT ["python", "-m", "senpy", "-f", "/senpy-plugins/", "--host", "0.0.0.0"]
...@@ -14,6 +14,7 @@ def parse_requirements(filename): ...@@ -14,6 +14,7 @@ def parse_requirements(filename):
install_reqs = parse_requirements("requirements.txt") install_reqs = parse_requirements("requirements.txt")
test_reqs = parse_requirements("test-requirements.txt") test_reqs = parse_requirements("test-requirements.txt")
extra_reqs = parse_requirements("extra-requirements.txt")
setup( setup(
...@@ -34,9 +35,7 @@ setup( ...@@ -34,9 +35,7 @@ setup(
tests_require=test_reqs, tests_require=test_reqs,
setup_requires=['pytest-runner', ], setup_requires=['pytest-runner', ],
extras_require={ extras_require={
'evaluation': [ 'evaluation': extra_reqs
'gsitk'
]
}, },
include_package_data=True, include_package_data=True,
entry_points={ entry_points={
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment