Skip to content

Commit 0c3c956

Browse files
Search for packages in setup.py
1 parent 79f3e0c commit 0c3c956

File tree

3 files changed

+11
-13
lines changed

3 files changed

+11
-13
lines changed

Dockerfile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ FROM python:3.7.2-alpine3.8
22
LABEL maintainer="luk.zim91@gmail.com"
33

44
COPY . /tmp/pht
5-
WORKDIR /tmp/pht
6-
RUN python ./run_tests.py && python setup.py install && cd / && rm -rf /tmp/* /var/tmp/* && sync
7-
WORKDIR /
5+
RUN cd /tmp/pht && \
6+
python ./run_tests.py && \
7+
python setup.py install && \
8+
cd / && \
9+
rm -rf /tmp/* /var/tmp/* && sync
10+

examples/hello-world/entrypoint.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def run(self, info: StationRuntimeInfo) -> RunResponse:
3434
state=SUCCESS,
3535
free_text_message='Hello world',
3636
rebase=DockerRebaseStrategy(
37-
frm='personalhealthtrain/train-api-python:1.0rc1',
37+
frm='personalhealthtrain/train-api-python:1.0rc2',
3838
next_train_tag='station.2',
3939
export_files=[model_file]
4040
)

setup.py

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
from setuptools import setup
2+
import os
23

4+
packages = [r[0] for r in os.walk('pht') if not r[0].endswith('__pycache__') ]
35
setup(
46
name='pht',
57
description='PHT Train API for Python',
68
version='1.0rc2',
7-
packages=[
8-
'pht',
9-
'pht.internal',
10-
'pht.internal.describe',
11-
'pht.internal.describe.formula',
12-
'pht.internal.describe.property',
13-
'pht.rebase',
14-
'pht.response',
15-
'pht.train']
9+
packages=packages
1610
)
11+

0 commit comments

Comments
 (0)