This repository has been archived by the owner on Dec 22, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
Copy pathsetup.py
55 lines (44 loc) · 1.71 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
54
55
from setuptools import setup, find_packages
from setuptools.command.test import test
class TestRunner(test):
def run(self):
if self.distribution.install_requires:
self.distribution.fetch_build_eggs(
self.distribution.install_requires)
if self.distribution.tests_require:
self.distribution.fetch_build_eggs(self.distribution.tests_require)
import sys
sys.path.insert(0, 'testprj')
from testprj import settings as test_settings
from django.conf import settings
settings.configure(test_settings)
from testprj.tests import mongoforms_test_runner as test_runner
test_suite = test_runner.build_suite(['testapp'])
test_runner.setup_test_environment()
result = test_runner.run_suite(test_suite)
test_runner.teardown_test_environment()
return result
setup(
name='django-mongoforms',
version='0.3.1',
description='A Django-ModelForm clone for mongoengine',
author='Stephan Jaekel',
author_email='steph@rdev.info',
maintainer='Serge Matveenko',
maintainer_email='s@matveenko.ru',
url='http://github.com/stephrdev/django-mongoforms/',
packages=find_packages(
exclude=['examples', 'examples.*', 'testprj', 'testprj.*']),
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,
cmdclass={"test": TestRunner},
requires=['Django', 'mongoengine(>=0.6)', 'pymongo(>=2.1)']
)