-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathsetup.py
More file actions
51 lines (47 loc) · 1.47 KB
/
setup.py
File metadata and controls
51 lines (47 loc) · 1.47 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
# import multiprocessing to avoid this bug (http://bugs.python.org/issue15881#msg170215)
import multiprocessing
assert multiprocessing
import re
from setuptools import setup, find_packages
def get_version():
"""
Extracts the version number from the version.py file.
"""
VERSION_FILE = 'entity_subscription/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-subscription',
version=get_version(),
description='Make subscription management easy and entity-based.',
long_description=open('README.rst').read(),
url='https://github.com/ambitioninc/django-entity-subscription',
author='Erik Swanson',
author_email='opensource@ambition.com',
keywords='',
packages=find_packages(),
classifiers=[
'Programming Language :: Python',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Framework :: Django',
],
license='MIT',
install_requires=[
'django>=1.6,<1.7',
'django-entity>=1.5.0',
],
tests_require=[
'django-dynamic-fixture ',
'django-nose',
'south',
'mock',
],
test_suite='run_tests.run_tests',
include_package_data=True,
zip_safe=False,
)