forked from peopledoc/django-generic-filters
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
44 lines (38 loc) · 1.41 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
# -*- coding: utf-8 -*-
import os
from setuptools import setup
def read_relative_file(filename):
"""Returns contents of the given file, which path is supposed relative
to this module."""
with open(os.path.join(os.path.dirname(__file__), filename)) as f:
return f.read().strip()
NAME = 'django-generic-filters'
README = read_relative_file('README.rst')
VERSION = read_relative_file('VERSION')
PACKAGES = ['django_genericfilters']
REQUIRES = [
'setuptools',
'Django',
'bunch',
'django-templateaddons',
]
if __name__ == '__main__': # Don't run setup() when we import this module.
setup(name=NAME,
version=VERSION,
description='Easy filters for your Generic ListView with Django.',
long_description=README,
classifiers=['Development Status :: 4 - Beta',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 2.6',
'Framework :: Django',
],
keywords='class-based view, generic view, filters',
author='Novapost Team',
author_email='peopleask@novapost.fr',
url='https://github.com/novapost/%s' % NAME,
license='BSD',
packages=PACKAGES,
include_package_data=True,
install_requires=REQUIRES,
)