-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
34 lines (27 loc) · 852 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
import os
from setuptools import setup
def rel(*xs):
return os.path.join(os.path.abspath(os.path.dirname(__file__)), *xs)
with open(rel("apistar_sentry.py"), "r") as f:
version_marker = "__version__ = "
for line in f:
if line.startswith(version_marker):
_, version = line.split(version_marker)
version = version.strip().strip('"')
break
else:
raise RuntimeError("Version marker not found.")
setup(
name="apistar_sentry",
version=version,
description="A Sentry component for API Star.",
long_description="Visit https://github.com/Bogdanp/apistar_sentry for more information.",
packages=[],
py_modules=["apistar_sentry"],
install_requires=[
"apistar>=0.4",
"raven",
],
python_requires=">=3.5",
include_package_data=True,
)