forked from Bogdanp/dramatiq_sqs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
41 lines (35 loc) · 1.03 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
import os
from setuptools import setup
def rel(*xs):
return os.path.join(os.path.abspath(os.path.dirname(__file__)), *xs)
with open(rel("dramatiq_sqs", "__init__.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="dramatiq_sqs",
version=version,
description="An Amazon SQS broker for Dramatiq.",
long_description="Visit https://github.com/Bogdanp/dramatiq_sqs for more information.",
packages=["dramatiq_sqs"],
include_package_data=True,
install_requires=["boto3", "dramatiq"],
extras_require={
"dev": [
"bumpversion",
"flake8",
"flake8-quotes",
"isort",
"mypy",
"pytest",
"pytest-cov",
"twine",
],
},
python_requires=">=3.5",
)