-
Notifications
You must be signed in to change notification settings - Fork 5
/
setup.py
39 lines (30 loc) · 1015 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 typing import List
import setuptools
def get_long_description() -> str:
with open("README.md") as fh:
return fh.read()
def get_required() -> List[str]:
with open("requirements.txt") as fh:
return fh.read().splitlines()
def get_version():
with open(os.path.join("metaflowbot", "version.py")) as fh:
for line in fh:
if line.startswith("__version__ = "):
return line.split()[-1].strip().strip("'").replace("\"","")
setuptools.setup(
name="metaflowbot",
packages=setuptools.find_packages(),
version=get_version(),
license="Apache License 2.0",
author="Outerbounds",
include_package_data=True,
url="https://github.com/outerbounds/metaflowbot",
long_description=get_long_description(),
long_description_content_type="text/markdown",
install_requires=get_required(),
python_requires=">=3.6",
entry_points={
"console_scripts": ["metaflowbot=metaflowbot.__main__:main"],
},
)