generated from thoth-station/template-project
-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
37 lines (31 loc) · 1.06 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
"""Setup configuration for investigator."""
import os
from pathlib import Path
from setuptools import setup
def get_version():
"""Get current version of investigator module."""
with open(os.path.join("thoth", "investigator", "__init__.py")) as f:
content = f.readlines()
for line in content:
if line.startswith("__version__ ="):
# dirty, remove trailing and leading chars
return line.split(" = ")[1][1:-2]
raise ValueError("No version identifier found")
VERSION = get_version()
setup(
name="thoth-investigator",
version=VERSION,
description="Thoth's investigator is a Kafka based component that consumes "
"all messages produced by Thoth components",
long_description=Path("README.rst").read_text(),
license="GPLv3+",
url="https://github.com/thoth-station/investigator",
zip_safe=False,
long_description_content_type="text/x-rst",
command_options={
"build_sphinx": {
"version": ("setup.py", VERSION),
"release": ("setup.py", VERSION),
}
},
)