-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.py
65 lines (55 loc) · 2.08 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
56
57
58
59
60
61
62
63
64
65
# -*- encoding: UTF-8 -*-
from __future__ import absolute_import
from setuptools import setup
from setuptools.command.test import test as TestCommand
from sys import exit
from mongorest import __version__ as version
class Test(TestCommand):
def finalize_options(self):
self.test_suite = self.test_suite or ' '
TestCommand.finalize_options(self)
def run_tests(self):
from unittest import TextTestRunner, defaultTestLoader as loader
result = TextTestRunner().run(
loader.loadTestsFromName(
'tests.{0}'.format(self.test_suite).strip('. ')
)
)
return exit(0) if not (result.failures + result.errors) else exit(1)
install_requires = [
'cerberus==0.9.2',
'pymongo==3.4.0',
'six==1.10.0',
'werkzeug==0.11.11',
]
setup(
name='mongorest',
packages=['mongorest'],
version=version,
description='Easy REST APIs using MongoDB.',
author='Luis Vieira',
author_email='[email protected]',
url='https://github.com/lvieirajr/mongorest',
install_requires=install_requires,
cmdclass={'test': Test},
keywords=['mongodb', 'mongo', 'rest', 'api', 'pymongo', 'werkzeug'],
classifiers=[
'Development Status :: 5 - Production/Stable',
'Environment :: Web Environment',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Programming Language :: Python',
'Programming Language :: Python :: 2',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.3',
'Programming Language :: Python :: 3.4',
'Programming Language :: Python :: 3.5',
'Programming Language :: Python :: Implementation :: PyPy',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Internet :: WWW/HTTP :: Dynamic Content',
'Topic :: Internet :: WWW/HTTP :: WSGI',
'Topic :: Software Development :: Libraries :: Application Frameworks',
'Topic :: Software Development :: Libraries :: Python Modules',
],
)