forked from mopub/django-reversion-compare
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·86 lines (73 loc) · 2.88 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#!/usr/bin/env python
# coding: utf-8
"""
distutils setup
~~~~~~~~~~~~~~~
:copyleft: 2012 by the django-reversion-compare team, see AUTHORS for more details.
:license: GNU GPL v3 or above, see LICENSE for more details.
"""
import os
import sys
from setuptools import setup, find_packages
from reversion_compare import VERSION_STRING
PACKAGE_ROOT = os.path.dirname(os.path.abspath(__file__))
try:
from creole.setup_utils import get_long_description
except ImportError:
if "register" in sys.argv or "sdist" in sys.argv or "--long-description" in sys.argv:
etype, evalue, etb = sys.exc_info()
evalue = etype("%s - Please install python-creole >= v0.8 - e.g.: pip install python-creole" % evalue)
raise etype, evalue, etb
long_description = None
else:
long_description = get_long_description(PACKAGE_ROOT)
def get_authors():
try:
f = file(os.path.join(PACKAGE_ROOT, "AUTHORS"), "r")
authors = [l.strip(" *\r\n") for l in f if l.strip().startswith("*")]
f.close()
except Exception, err:
authors = "[Error: %s]" % err
return authors
setup(
name='django-reversion-compare',
version=VERSION_STRING,
description='history compare for django-reversion',
keywords = ["django", "django-reversion", "reversion", "diff", "compare"],
long_description=long_description,
author=get_authors(),
maintainer="Jens Diemer",
maintainer_email="[email protected]",
url='https://github.com/jedie/django-reversion-compare/',
download_url = 'http://pypi.python.org/pypi/django-reversion-compare/',
packages=find_packages(),
include_package_data=True, # include package data under svn source control
install_requires=[
"Django>=1.4,<1.5",
"django-reversion>=1.6",
],
tests_require=[
"django-tools", # https://github.com/jedie/django-tools/
"south", # django-reversion has migrations
# see also: https://github.com/jedie/django-reversion-compare/commit/3e62a4a1276cd5a7330b88211d675282634a84b2
],
zip_safe=False,
classifiers=[
# "Development Status :: 4 - Beta",
"Development Status :: 5 - Production/Stable",
"Environment :: Web Environment",
"Intended Audience :: Developers",
# "Intended Audience :: Education",
# "Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: GNU General Public License (GPL)",
"Programming Language :: Python",
'Framework :: Django',
"Topic :: Database :: Front-Ends",
"Topic :: Documentation",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Internet :: WWW/HTTP :: Site Management",
"Topic :: Internet :: WWW/HTTP :: WSGI :: Application",
"Operating System :: OS Independent",
],
test_suite = "reversion_compare_test_project.runtests.runtests",
)