forked from mpokrass/django-rq-scheduler
-
Notifications
You must be signed in to change notification settings - Fork 2
/
setup.py
67 lines (56 loc) · 1.9 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
64
65
66
67
#!/usr/bin/env python
import os
from distutils.core import setup
from setuptools import find_packages
def long_desc(root_path):
FILES = ["README.md"]
for filename in FILES:
filepath = os.path.realpath(os.path.join(root_path, filename))
if os.path.isfile(filepath):
with open(filepath, mode="r") as f:
yield f.read()
PATH_OF_RUNNING_SCRIPT = os.path.abspath(os.path.dirname(__file__))
long_description = "\n\n".join(long_desc(PATH_OF_RUNNING_SCRIPT))
def get_version(root_path):
with open(os.path.join(root_path, "scheduler", "__init__.py")) as f:
for line in f:
if line.startswith("__version__ ="):
return line.split("=")[1].strip().strip("\"'")
tests_require = [
'factory_boy>=2.11.1',
]
setup(
name='readwise-django-rq-scheduler',
version='1.2.2',
description="A database backed job scheduler for Django RQ",
long_description=long_description,
packages=find_packages(),
include_package_data=True,
author="Chad Shryock",
author_email="[email protected]",
url="https://github.com/isl-x/django-rq-scheduler",
zip_safe=True,
install_requires=[
"django>=2.0",
"django-model-utils>=2.4.0",
"django-rq>=0.9.3",
"rq-scheduler>=0.6.0",
"pytz>=2015.7",
"croniter>=0.3.24",
],
tests_require=tests_require,
extras_require={"test": tests_require,},
classifiers=[
"Development Status :: 4 - Beta",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Framework :: Django",
"Framework :: Django :: 2.0",
"Framework :: Django :: 3.0",
],
)