forked from slacy/minimongo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
62 lines (46 loc) · 1.48 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
# -*- coding: utf-8 -*-
import os
import sys
import subprocess
try:
from setuptools import find_packages, setup, Command
except ImportError:
from distutils.core import find_packages, setup, Command
here = os.path.abspath(os.path.dirname(__file__))
DESCRIPTION = "Minimal database Model management for MongoDB"
try:
LONG_DESCRIPTION = open(os.path.join(here, "README.rst")).read()
except IOError:
pass
CLASSIFIERS = (
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python",
"Topic :: Database",
)
class PyTest(Command):
"""Unfortunately :mod:`setuptools` support only :mod:`unittest`
based tests, thus, we have to overider build-in ``test`` command
to run :mod:`pytest`."""
user_options = []
initialize_options = finalize_options = lambda self: None
def run(self):
errno = subprocess.call([sys.executable, "runtests.py"])
raise SystemExit(errno)
requires = ["pymongo"]
setup(name="minimongo",
version="0.2.6",
packages=find_packages(),
cmdclass={"test": PyTest},
platforms=["any"],
install_requires = ["pymongo>=1.9"],
zip_safe=False,
include_package_data=True,
author="Steve Lacy",
author_email="slacy@slacy.com",
description=DESCRIPTION,
long_description=LONG_DESCRIPTION,
classifiers=CLASSIFIERS,
keywords=["mongo", "mongodb", "pymongo", "orm"],
url="http://github.com/slacy/minimongo",
)