-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
48 lines (41 loc) · 1.35 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
#!/usr/bin/env python
# -*- coding: utf-8 -*-
from __future__ import absolute_import, unicode_literals
import sys
import formit
from setuptools import find_packages, setup
try:
from pypandoc import convert
except ImportError:
import io
def convert(filename, fmt):
with io.open(filename, encoding='utf-8') as fd:
return fd.read()
CLASSIFIERS = [
'Environment :: Web Environment',
'Framework :: Django',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
]
setup(
author='Dino Perovic',
author_email='dino.perovic@gmail.com',
name='django-formit',
version=formit.__version__,
description='Simple Django form formating',
long_description=convert('README.md', 'rst'),
url='https://github.com/dinoperovic/django-formit',
license='BSD License',
platforms=['OS Independent'],
classifiers=CLASSIFIERS,
packages=find_packages(exclude=['tests']),
include_package_data=True,
zip_safe=False,
install_requires=['django-classy-tags>=0.8.0'],
setup_requires=['pytest-runner'] if {'pytest', 'test', 'ptr'}.intersection(sys.argv) else [],
tests_require=['pytest-django'],
)