Skip to content

Commit 9a6e8a4

Browse files
committed
added setup.py
1 parent f10b047 commit 9a6e8a4

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

Dockerfile

+3-2
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM python:3.7
22

33
ENV LC_ALL=C.UTF-8
44
ENV LANG=C.UTF-8
5+
ENV PYTHONUNBUFFERED 1
56

67
RUN echo "export LC_ALL=$LC_ALL" >> /etc/profile.d/locale.sh
78
RUN echo "export LANG=$LANG" >> /etc/profile.d/locale.sh
@@ -13,9 +14,9 @@ RUN apt-get update && apt-get install -y \
1314

1415
RUN pip install -U pip
1516
COPY requirements.txt ./
16-
RUN pip install -r requirements.txt
17+
COPY setup.py ./
18+
RUN pip install -e .
1719

18-
ENV PYTHONUNBUFFERED 1
1920
COPY synthetic_data /synthetic_data
2021
COPY .env /synthetic_data/.env
2122

setup.py

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
from setuptools import find_packages, setup
2+
3+
with open("requirements.txt") as requirement_file:
4+
requirements = requirement_file.read().split()
5+
6+
7+
setup(
8+
name="synthetic-data",
9+
version="1.0.0",
10+
description="Synthetic Time-Series",
11+
author="Andreas Øie",
12+
author_email="[email protected]",
13+
url="https://github.com/ML4ITS/synthetic-data",
14+
packages=find_packages(exclude=["pyproject.toml"]),
15+
install_requires=requirements,
16+
)

0 commit comments

Comments
 (0)