-
Notifications
You must be signed in to change notification settings - Fork 10
/
setup.py
63 lines (57 loc) · 2.25 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
import re
from os.path import join, dirname
from setuptools import setup, find_packages
def get_version(*file_paths):
"""Retrieves the version from the given path"""
filename = os.path.join(os.path.dirname(__file__), *file_paths)
version_file = open(filename).read()
version_match = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", version_file, re.M)
if version_match:
return version_match.group(1)
raise RuntimeError("Unable to find version string.")
def long_description():
"""Return long description from README.rst if it's present
because it doesn't get installed."""
try:
return open(join(dirname(__file__), 'README.md')).read()
except IOError:
return ''
setup(
name='django-datawatch',
packages=find_packages(exclude=['example*']),
version=get_version("django_datawatch", "__init__.py"),
description='Django Datawatch runs automated data checks in your Django installation',
author='Jens Nistler <[email protected]>, Bogdan Radko <[email protected]>',
author_email='[email protected]',
long_description=long_description(),
long_description_content_type='text/markdown',
install_requires=[
'celery>=5.0.0',
'Django>=3.2,<6.0',
'django-extensions>=3.0.0',
'django-model-utils>=4.2.0',
'python-dateutil>=2.8.0',
],
license='MIT',
url='https://github.com/RegioHelden/django-datawatch',
download_url='',
keywords=['django', 'monitoring', 'datawatch', 'check', 'checks'],
include_package_data=True,
classifiers=[
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Topic :: Software Development",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: System :: Monitoring",
]
)