-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
69 lines (57 loc) · 1.96 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
66
67
68
69
import os
from setuptools import setup
def get_version(package):
with open(os.path.join(package, "__init__.py")) as file:
ver_line = list(filter(lambda l: l.startswith("VERSION"), file))[0]
ver_tuple = eval(ver_line.split("=")[-1])
return ".".join(map(str, ver_tuple))
def get_long_description():
with open("README.rst") as file:
long_description = file.read()
return long_description.strip()
version = get_version("apistar_mongoengine")
description = "Shameless bootleg copy of flask-mongoengine for API Star."
long_description = get_long_description()
classifiers = [
"Development Status :: 1 - Planning",
"Environment :: Web Environment",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.5",
"Programming Language :: Python :: 3.6",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
"Topic :: Software Development :: Libraries :: Python Modules",
]
packages = ["apistar_mongoengine"]
install_requires = ["mongoengine>=0.15.0", "apistar>=0.5.12"]
tests_require = [
"coverage>=4.5.1",
"flake8>=3.5.0",
"mongomock>=3.10.0",
"pytest-cov>=2.5.1",
"pytest-flake8>=1.0.1",
"pytest>=3.5.1",
"tox>=3.0.0",
]
setup_requires = ["pytest-runner"]
options = {
"name": "apistar-mongoengine",
"version": version,
"url": "http://github.com/njncalub/apistar-mongoengine",
"description": description,
"long_description": long_description,
"author": "Nap Joseph Calub",
"author_email": "[email protected]",
"license": "MIT",
"packages": packages,
"install_requires": install_requires,
"include_package_data": True,
"classifiers": classifiers,
"platforms": "any",
"zip_safe": False,
"tests_require": tests_require,
"setup_requires": setup_requires,
}
setup(**options)