forked from saxix/django-adminactions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·71 lines (60 loc) · 2.15 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
#!/usr/bin/env python
# pylint: disable=W,I,C
from __future__ import absolute_import
import ast
import codecs
import os
import sys
import re
from setuptools import find_packages, setup
ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__)))
init = os.path.join(ROOT, 'src', 'adminactions', '__init__.py')
def read(*parts):
with codecs.open(os.path.join(ROOT, 'src', 'requirements', *parts), 'r') as fp:
return fp.read()
_version_re = re.compile(r'__version__\s+=\s+(.*)')
with open(init, 'rb') as f:
version = str(ast.literal_eval(_version_re.search(
f.read().decode('utf-8')).group(1)))
# rel = lambda fname: os.path.join(os.path.dirname(__file__),
# 'src',
# 'requirements', fname)
requirements = read("install.pip")
tests_require = read('testing.pip')
dev_require = read('develop.pip')
setup(
name='django-adminactions',
version=version,
url='https://github.com/saxix/django-adminactions',
download_url='https://github.com/saxix/django-adminactions',
author='sax',
author_email='s.apostolico@gmail.com',
description="Collections of useful actions to use with django.contrib.admin.ModelAdmin",
license='MIT',
package_dir={'': 'src'},
packages=find_packages('src'),
include_package_data=True,
install_requires=requirements,
tests_require=tests_require,
extras_require={
'test': requirements + tests_require,
'dev': dev_require + tests_require,
},
zip_safe=False,
platforms=['any'],
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Operating System :: OS Independent',
'Framework :: Django :: 1.8',
'Framework :: Django :: 1.9',
'Framework :: Django :: 1.10',
'Framework :: Django :: 1.11',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: 3.6',
'Intended Audience :: Developers'],
long_description=open('README.rst').read()
)