forked from jrief/django-admin-sortable2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
38 lines (33 loc) · 1.2 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
import os
from setuptools import setup, find_packages
from adminsortable import __version__
DESCRIPTION = 'Generic drag-and-drop ordering for objects in the Django admin interface'
CLASSIFIERS = [
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Software Development :: Libraries :: Python Modules',
'Development Status :: 4 - Beta',
]
def read(fname):
readme_file = os.path.join(os.path.dirname(__file__), fname)
return os.popen('[ -x "$(which pandoc 2>/dev/null)" ] && pandoc -t rst {0} || cat {0}'.format(readme_file)).read()
setup(
name='django-admin-sortable2',
version=__version__,
author='Jacob Rief',
author_email='[email protected]',
description=DESCRIPTION,
long_description=read('README.md'),
url='https://github.com/jrief/django-admin-sortable2',
license='MIT',
keywords=['django'],
platforms=['OS Independent'],
classifiers=CLASSIFIERS,
install_requires=[],
packages=find_packages(exclude=['example', 'docs']),
include_package_data=True,
)