changeset 26:7d3cc440e578

add setup.py
author Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com>
date Sun, 21 Nov 2021 18:54:10 +0100
parents c75ee64c812c
children 348a07008703
files Dockerfile setup.cfg setup.py
diffstat 3 files changed, 14 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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
--- 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
--- /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