-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
85 lines (68 loc) · 2.08 KB
/
setup.py
File metadata and controls
85 lines (68 loc) · 2.08 KB
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
#!/usr/bin/env python
import sys
import os
# try:
# import subprocess
# has_subprocess = True
# except:
# has_subprocess = False
import shutil
# from ez_setup import use_setuptools
# use_setuptools()
from setuptools import setup
from setuptools import Feature
from distutils.cmd import Command
from distutils.command.build_ext import build_ext
from distutils.errors import CCompilerError
from distutils.errors import DistutilsPlatformError, DistutilsExecError
from distutils.core import Extension
requirements = ['pymongo']
# f = open('README.rst')
# try:
# try:
# readme_content = f.read()
# except:
# readme_content = ''
# finally:
# f.close()
readme_content = ''
# class GenerateDoc(Command):
# user_options = []
# def initialize_options(self):
# pass
# def finalize_options(self):
# pass
# def run(self):
# path = 'doc/%s' % version
# shutil.rmtree('doc', ignore_errors=True)
# os.makedirs(path)
# if has_subprocess:
# subprocess.call(['epydoc', '--config', 'epydoc-config', '-o', path])
# else:
# print """
# `setup.py doc` is not supported for this version of Python.
# Please ask in the user forums for help.
# """
setup(
name = 'mongol',
version = '0.1.0',
description = 'A lightweight Object Document Mapper for PyMongo and MongoDB <http://www.mongodb.org>',
long_description = readme_content,
author = 'Yuanhao Li',
author_email = 'yuanhao.li [at] gmail [dot] com',
url = 'https://github.com/yuanhao/mongol/',
packages = ['mongol', ],
install_requires = requirements,
license = 'New BSD License',
test_suite = 'tests',
classifiers = [
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: MacOS :: MacOS X',
'Operating System :: Microsoft :: Windows',
'Operating System :: POSIX',
'Programming Language :: Python',
'Topic :: Database'],
# cmdclass = {'doc': GenerateDoc},
)