# HG changeset patch # User Dennis Concepcion Martin # Date 1637517250 -3600 # Node ID 7d3cc440e578160322985acdcce9ef112c9d9d9d # Parent c75ee64c812ca9c1f013c2e6acbffa6801e1550d add setup.py diff -r c75ee64c812c -r 7d3cc440e578 Dockerfile --- a/Dockerfile Sun Nov 21 18:38:18 2021 +0100 +++ b/Dockerfile Sun Nov 21 18:54:10 2021 +0100 @@ -4,13 +4,13 @@ FROM python:3.8-slim-buster # Create working directory and install dependencies -WORKDIR /app -COPY requirements.txt requirements.txt -RUN pip3 install -r requirements.txt +WORKDIR /bitcaviar-plus # Copy files -COPY src/bitcaviar_plus bitcaviar_plus/ -COPY tests/implementation_testing.py . +COPY . . -# Run script -CMD ["python3", "-u", "implementation_testing.py"] \ No newline at end of file +# Install package +RUN ["python", "setup.py", "install"] + +# Test package +CMD ["python3", "-u", "tests/implementation_testing.py"] \ No newline at end of file diff -r c75ee64c812c -r 7d3cc440e578 setup.cfg --- a/setup.cfg Sun Nov 21 18:38:18 2021 +0100 +++ b/setup.cfg Sun Nov 21 18:54:10 2021 +0100 @@ -19,6 +19,9 @@ = src packages = find: python_requires = >=3.8 +install_requires = + plyvel~=1.3.0 + testfixtures~=6.18.3 [options.packages.find] where = src \ No newline at end of file diff -r c75ee64c812c -r 7d3cc440e578 setup.py --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/setup.py Sun Nov 21 18:54:10 2021 +0100 @@ -0,0 +1,4 @@ +from setuptools import setup + + +setup() \ No newline at end of file