-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
39 lines (28 loc) · 1014 Bytes
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import os
from setuptools import setup, find_packages
# Declare your non-python data_preprocessing files:
# Files underneath configuration/ will be copied into the build preserving the
# subdirectory structure if they exist.
data_files = []
def add_files_in_folder(folder, output_files):
for root, dirs, files in os.walk(folder):
output_files.append((os.path.relpath(root, folder),
[os.path.join(root, f) for f in files]))
add_files_in_folder('data_preprocessing', data_files)
setup(
name="WayfairModelServer",
version="1.0",
# declare your packages
packages=find_packages(where="src", exclude=("test",)),
package_dir={"": "src"},
# include data_preprocessing files
include_package_data=True,
data_files=data_files,
root_script_source_version="default-only",
entry_points="""\
[console_scripts]
serve = wayfair.serving.serve:start_server
client = wayfair.client.run_client:run
""",
test_command='pytest',
)