forked from ambitioninc/django-entity-event-slack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
executable file
·64 lines (59 loc) · 1.91 KB
/
setup.py
File metadata and controls
executable file
·64 lines (59 loc) · 1.91 KB
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
import re
from setuptools import setup, find_packages
# import multiprocessing to avoid this bug (http://bugs.python.org/issue15881#msg170215)
import multiprocessing
assert multiprocessing
def get_version():
"""
Extracts the version number from the version.py file.
"""
VERSION_FILE = 'entity_event_slack/version.py'
mo = re.search(r'^__version__ = [\'"]([^\'"]*)[\'"]', open(VERSION_FILE, 'rt').read(), re.M)
if mo:
return mo.group(1)
else:
raise RuntimeError('Unable to find version string in {0}.'.format(VERSION_FILE))
setup(
name='django-entity-event-slack',
version=get_version(),
description='A pushable slack medium for the Django Entity Event system',
long_description=open('README.rst').read(),
url='https://github.com/ambitioninc/django-entity-event-slack',
author='Wes Kendall',
author_email='opensource@ambition.com',
keywords='django-entity-event, slack',
packages=find_packages(),
classifiers=[
'Programming Language :: Python',
'Programming Language :: Python :: 3.6',
'Programming Language :: Python :: 3.7',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Framework :: Django',
'Framework :: Django :: 2.0',
'Framework :: Django :: 2.1',
'Framework :: Django :: 2.2',
],
license='MIT',
install_requires=[
'celery>=3.1',
'Django>=2.0',
'django-db-mutex>=1.2.0',
'django-entity-event>=1.2.0',
'django-manager-utils>=1.4.0',
'pyslack>=0.1.3',
'requests',
],
tests_require=[
'psycopg2',
'django-nose>=1.4',
'django-dynamic-fixture',
'freezegun',
'mock>=1.0.1',
'coverage>=3.7.1',
],
test_suite='run_tests.run_tests',
include_package_data=True,
zip_safe=False,
)