-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
41 lines (36 loc) · 1.54 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
"""Setup script."""
from pathlib import Path
import re
import setuptools
if __name__ == "__main__":
# Read metadata from version.py
with Path("fromconfig_mlflow/version.py").open(encoding="utf-8") as file:
metadata = dict(re.findall(r'__([a-z]+)__\s*=\s*"([^"]+)"', file.read()))
# Read description from README
with Path(Path(__file__).parent, "README.md").open(encoding="utf-8") as file:
long_description = file.read()
# Run setup
setuptools.setup(
author=metadata["author"],
version=metadata["version"],
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Intended Audience :: Developers",
],
data_files=[(".", ["requirements.txt", "README.md"])],
dependency_links=[],
description=long_description.split("\n")[0],
entry_points={"fromconfig0": ["mlflow = fromconfig_mlflow"]},
# "sqlparse>=0.3.1" is not listed as a depepndency of mlflow-skinny
# 1.23.1 (the last version supporting Python 3.6)
install_requires=["fromconfig>=0.5", "mlflow-skinny", "sqlparse>=0.3.1"],
long_description=long_description,
long_description_content_type="text/markdown",
name="fromconfig_mlflow",
packages=setuptools.find_packages(),
tests_require=["pytest"],
url="https://github.com/criteo/fromconfig-mlflow",
)