-
Notifications
You must be signed in to change notification settings - Fork 1
/
setup.py
61 lines (52 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
52
53
54
55
56
57
58
59
60
61
import sys
import re
from setuptools import setup, find_namespace_packages
from pathlib import Path
with open("requirements.txt") as f:
lines = f.readlines()
reqs = []
for line in lines:
line = line.strip()
if ' #' in line: # line with comment text as suffix
line = line.split(' #')[0].strip()
if not line or line.startswith("#"):
continue # skip empty and comment lines
reqs.append(line)
PACKAGE = 'boteval'
init_file = Path(__file__).parent / PACKAGE / '__init__.py'
init_txt = init_file.read_text()
version = re.search(
r'''__version__ = ['"]([0-9.]+(-dev)?)['"]''', init_txt).group(1)
description = 'Chat Bot Evaluation'
assert version
assert description
packages = find_namespace_packages(include=[f"{PACKAGE}*"])
print(f"packages:: {packages}", file=sys.stderr)
setup(name=PACKAGE,
version=version,
description=description,
author="Thamme Gowda",
author_email="[email protected]",
long_description=Path("README.md").read_text(),
long_description_content_type="text/markdown",
url="https://github.com/thammegowda/boteval",
python_requires=">=3.9",
packages=packages,
license="Apache",
install_requires=reqs,
include_package_data=True,
zip_safe=False,
entry_points={
"console_scripts": [
"boteval=boteval.app:main",
"boteval-quickstart=boteval.quickstart:main",
]
},
classifiers=[
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"License :: OSI Approved :: MIT License",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
],
)