forked from conbench/conbench
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·52 lines (43 loc) · 1.37 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
import pathlib
import setuptools
repo_root = pathlib.Path(__file__).parent
with open(repo_root / "README.md", "r") as readme:
long_description = readme.read()
__version__ = ""
with open(repo_root / "conbench" / "_version.py", "r") as f:
exec(f.read()) # only overwrites the __version__ variable
def parse_requirements(path: str):
return [
line.strip()
for line in pathlib.Path(__file__)
.parent.joinpath(path)
.read_text()
.splitlines()
]
requirements_webapp = parse_requirements(path="requirements-webapp.txt")
requirements_dev = parse_requirements(path="requirements-dev.txt")
setuptools.setup(
name="conbench",
version=__version__,
description="Continuous Benchmarking (CB) Framework",
long_description=long_description,
long_description_content_type="text/markdown",
packages=setuptools.find_packages(),
entry_points={
"console_scripts": [
"conbench=conbench.cli:conbench",
],
},
classifiers=[
"Programming Language :: Python :: 3.8",
"License :: OSI Approved :: MIT License",
],
python_requires=">=3.8",
maintainer="Apache Arrow Developers",
maintainer_email="[email protected]",
url="https://github.com/conbench/conbench",
install_requires=requirements_webapp,
extras_require={
"dev": requirements_dev,
},
)