-
Notifications
You must be signed in to change notification settings - Fork 77
/
setup.py
63 lines (56 loc) · 1.7 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
62
63
import os
from setuptools import setup
def rel(*xs):
return os.path.join(os.path.abspath(os.path.dirname(__file__)), *xs)
with open(rel("django_dramatiq", "__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="django_dramatiq",
version=version,
description="A Django app for Dramatiq.",
long_description="Visit https://github.com/Bogdanp/django_dramatiq for more information.",
packages=[
"django_dramatiq",
"django_dramatiq.management",
"django_dramatiq.management.commands",
"django_dramatiq.migrations",
],
install_requires=[
"django>=3.2",
"dramatiq>=1.11",
],
classifiers=[
"Environment :: Web Environment",
"Operating System :: OS Independent",
"Framework :: Django",
"Framework :: Django :: 3.2",
"Framework :: Django :: 4.1",
"Framework :: Django :: 4.2",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
],
extras_require={
"dev": [
"bumpversion",
"flake8",
"flake8-quotes",
"isort",
"pytest",
"pytest-cov",
"pytest-django",
"twine",
]
},
python_requires=">=3.8",
include_package_data=True,
)