forked from SeldonIO/MLServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
40 lines (31 loc) · 1.08 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
import os
from typing import Dict
from setuptools import setup, find_packages
ROOT_PATH = os.path.dirname(__file__)
PKG_NAME = "mlserver-mlflow"
PKG_PATH = os.path.join(ROOT_PATH, PKG_NAME.replace("-", "_"))
def _load_version() -> str:
version = ""
version_path = os.path.join(PKG_PATH, "version.py")
with open(version_path) as fp:
version_module: Dict[str, str] = {}
exec(fp.read(), version_module)
version = version_module["__version__"]
return version
def _load_description() -> str:
readme_path = os.path.join(ROOT_PATH, "README.md")
with open(readme_path) as fp:
return fp.read()
setup(
name=PKG_NAME,
version=_load_version(),
url="https://github.com/SeldonIO/MLServer.git",
author="Seldon Technologies Ltd.",
author_email="[email protected]",
description="MLflow runtime for MLServer",
packages=find_packages(exclude=["tests", "tests.*"]),
install_requires=["mlserver", "mlflow"],
long_description=_load_description(),
long_description_content_type="text/markdown",
license="Apache 2.0",
)