forked from saxix/django-adminfilters
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
executable file
·58 lines (50 loc) · 1.72 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
#!/usr/bin/env python
import codecs
import imp
import os
import sys
from setuptools import find_packages, setup
ROOT = os.path.realpath(os.path.join(os.path.dirname(__file__)))
init = os.path.join(ROOT, 'src', 'adminfilters', '__init__.py')
app = imp.load_source('adminfilters', init)
reqs = 'install.py%d.pip' % sys.version_info[0]
def read(*files):
content = ''
for f in files:
content += codecs.open(os.path.join(ROOT, 'src',
'requirements', f), 'r').read()
return content
install_requires = read('install.any.pip', reqs)
tests_requires = read('testing.pip')
dev_requires = tests_requires + read('develop.pip')
setup(name=app.NAME,
version=app.get_version(),
url='https://github.com/saxix/django-adminfilters',
download_url='https://github.com/saxix/django-adminfilters',
author='sax',
author_email='sax@os4d.org',
description="Extra filters for django admin site",
license='MIT',
package_dir={'': 'src'},
packages=find_packages('src'),
include_package_data=True,
# install_requires=fread(reqs),
# tests_require=tests_require,
extras_require={
'test': tests_requires,
'dev': dev_requires
},
platforms=['any'],
command_options={
'build_sphinx': {
'version': ('setup.py', app.VERSION),
'release': ('setup.py', app.VERSION)}
},
classifiers=[
'Environment :: Web Environment',
'Framework :: Django',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Intended Audience :: Developers'],
long_description=codecs.open('README.rst').read()
)