From 8601ac2f44f31a962719a45e83a2c8c4aec85644 Mon Sep 17 00:00:00 2001 From: cortadocodes Date: Thu, 21 Apr 2022 12:10:12 +0100 Subject: [PATCH] OPS: Use setup.py instead of requirements-dev.txt --- Dockerfile | 4 ++-- requirements-dev.txt | 4 ---- setup.py | 11 +++++++++++ 3 files changed, 13 insertions(+), 6 deletions(-) delete mode 100644 requirements-dev.txt create mode 100644 setup.py diff --git a/Dockerfile b/Dockerfile index 16a2223..18fc4ce 100644 --- a/Dockerfile +++ b/Dockerfile @@ -6,10 +6,10 @@ ENV PYTHONUNBUFFERED True ENV PROJECT_ROOT=/app WORKDIR $PROJECT_ROOT -COPY requirements-dev.txt . +COPY setup.py setup.py COPY . . -RUN pip3 install -r requirements-dev.txt +RUN pip3 install -e . EXPOSE $PORT diff --git a/requirements-dev.txt b/requirements-dev.txt deleted file mode 100644 index ec03992..0000000 --- a/requirements-dev.txt +++ /dev/null @@ -1,4 +0,0 @@ -# Note that pyFAST is not mentioned in here as it has to be installed in an unconventional way to be usable - this is -# dealt with in the Dockerfile. - -octue==0.3.20 diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..7585d81 --- /dev/null +++ b/setup.py @@ -0,0 +1,11 @@ +from setuptools import setup + + +setup( + name="turbsim-service", + version="0.1.0", + py_modules=["app"], + install_requires=[ + "octue @ https://github.com/octue/octue-sdk-python/archive/fix/miscellaneous-fixes.zip", + ], +)