forked from inactivist/django-endless-pagination
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
45 lines (41 loc) · 1.46 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
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
import os
root_dir = os.path.dirname(__file__)
if root_dir:
os.chdir(root_dir)
data_files = []
for dirpath, dirnames, filenames in os.walk('endless_pagination'):
for i, dirname in enumerate(dirnames):
if dirname.startswith('.'): del dirnames[i]
if '__init__.py' in filenames:
continue
elif filenames:
for f in filenames:
data_files.append(os.path.join(dirpath[len("endless_pagination")+1:], f))
version = "%s.%s" % __import__('endless_pagination').VERSION[:2]
setup(name='django-endless-pagination',
version=version,
description='Django pagination tools supporting ajax, multiple and lazy pagination, Twitter-style and Digg-style pagination.',
author='Francesco Banconi',
author_email='[email protected]',
url='http://code.google.com/p/django-endless-pagination/',
zip_safe=False,
packages=[
'endless_pagination',
'endless_pagination.templatetags',
],
package_data={'endless_pagination': data_files},
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: MIT License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Topic :: Utilities'
],
)