forked from Netflix/metaflow-service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
51 lines (44 loc) · 1.77 KB
/
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
40
41
42
43
44
45
46
47
48
49
50
51
from os.path import dirname, join, exists
from setuptools import setup, find_packages
def open_and_read_if_exists(path: str):
try:
with open(join(dirname(__file__), path)) as f:
return f.read()
except:
return ""
requirements = []
for service in ["metadata_service", "migration_service", "ui_backend_service"]:
requirements += open_and_read_if_exists(
"services/{}/requirements.txt".format(service)
).splitlines()
requirements_tests = open_and_read_if_exists("requirements.dev.txt").splitlines()
long_description = open_and_read_if_exists("README.md")
setup(
name="metadata_service",
version="2.4.3",
license="Apache License 2.0",
description="Metadata Service: backend service for Metaflow",
long_description=long_description,
author="Machine Learning Infrastructure Team at Netflix",
author_email="help@metaflow.org",
url="https://github.com/Netflix/metaflow-service",
keywords=["metaflow", "machinelearning", "ml"],
py_modules=["services.metadata_service"],
packages=find_packages(exclude=("tests",)),
entry_points="""
[console_scripts]
metadata_service=services.metadata_service.server:main
migration_service=services.migration_service.migration_server:main
ui_backend_service=services.ui_backend_service.ui_server:main
""",
install_requires=requirements,
tests_require=requirements + requirements_tests,
extras_require={"test": requirements + requirements_tests},
classifiers=[
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python :: 3.11",
],
)