forked from chrisspen/django-ajax-forms
/
setup.py
51 lines (47 loc) · 1.57 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
import os
from setuptools import setup, find_packages
import ajax_forms
CURRENT_DIR = os.path.abspath(os.path.dirname(__file__))
def get_reqs(*fns):
lst = []
for fn in fns:
for package in open(os.path.join(CURRENT_DIR, fn)).readlines():
package = package.strip()
if not package:
continue
lst.append(package.strip())
return lst
setup(
name='django-ajax-forms-mega',
version=ajax_forms.__version__,
description='Provides support for doing validation using Ajax(currently with jQuery) using your existing Django forms.',
author='Chris Spencer',
author_email='chrisspen@gmail.com',
url='https://github.com/chrisspen/django-ajax-forms',
packages=find_packages(),
package_data={
'ajax_forms': [
'templates/*.*',
'templates/*/*.*',
'templates/*/*/*.*',
'templatetags/*.*',
'tests/templates/*.*',
'static/*.*',
'static/*/*.*',
'static/*/*/*.*',
],
},
#https://pypi.python.org/pypi?%3Aaction=list_classifiers
classifiers=[
'Development Status :: 3 - Alpha',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python',
'Framework :: Django',
],
zip_safe=False,
install_requires=get_reqs('requirements-min-django.txt', 'requirements.txt'),
tests_require=get_reqs('requirements-test.txt'),
)