forked from thomwiggers/django-mongoengine-forms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·53 lines (43 loc) · 1.44 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
52
53
#!/usr/bin/env python
import sys
from subprocess import check_call, CalledProcessError
from setuptools import setup
requirements = ['setuptools', 'mongoengine>=0.10.0']
if sys.version_info >= (3, 5):
requirements.append('django')
else:
requirements.append('django<2')
def convert_readme():
try:
check_call(["pandoc", "-f", "markdown_github", "-t",
"rst", "-o", "README.rst", "README.md"])
except (OSError, CalledProcessError):
return open('README.md').read()
return open('README.rst').read()
setup(
name='django-mongoengine-forms',
version='0.4.7',
description="An implementation of django forms using mongoengine.",
author='Thom Wiggers',
author_email='[email protected]',
packages=['mongodbforms', 'tests'],
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',
],
license='New BSD License',
long_description=convert_readme(),
include_package_data=True,
provides=['mongodbforms'],
obsoletes=['mongodbforms'],
url='https://github.com/thomwiggers/django-mongoengine-forms/',
zip_safe=False,
install_requires=requirements,
tests_require=['mongomock'],
test_suite="tests.suite",
)