-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.py
More file actions
44 lines (40 loc) · 1.23 KB
/
setup.py
File metadata and controls
44 lines (40 loc) · 1.23 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
import re
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
version = ''
with open('mongoext/__init__.py', 'r') as fd:
regex = re.compile(r'__version__\s*=\s*[\'"]([^\'"]*)[\'"]')
for line in fd:
m = regex.match(line)
if m:
version = m.group(1)
break
REQUIREMENTS = ['pymongo==3.0', 'six==1.10.0']
setup(
name='mongoext',
packages=['mongoext'],
package_data={'': ['LICENSE']},
install_requires=REQUIREMENTS,
tests_require=REQUIREMENTS,
version=version,
description='MongoDB ORM',
author='Andrey Gubarev',
author_email='mylokin@me.com',
url='https://github.com/mylokin/mongoext',
keywords=['mongodb', 'orm', 'models'],
license='MIT',
classifiers=(
'Development Status :: 4 - Beta',
'Intended Audience :: Developers',
'Operating System :: OS Independent',
'License :: OSI Approved :: MIT License',
'Programming Language :: Python',
'Programming Language :: Python :: 2.7',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3.5',
'Topic :: Database',
'Topic :: Database :: Database Engines/Servers',
),
)