-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsetup.py
61 lines (54 loc) · 1.8 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
import os
from setuptools import find_packages, setup
def long_description():
this_directory = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(this_directory, "README.md"), encoding="utf-8") as f:
return f.read()
def list_requirements(file):
with open(file) as f:
return [line.strip() for line in f.readlines() if "." not in line]
setup(
name="Motor-ODM",
url="https://github.com/Codello/Motor-ODM/",
license="MIT",
author="Kim Wittenburg",
author_email="[email protected]",
description="A MongoDB ODM based on Motor and Pydantic.",
long_description=long_description(),
long_description_content_type="text/markdown",
keywords="MongoDB AsyncIO ODM Pydantic",
packages=find_packages(),
zip_safe=False,
include_package_data=True,
platforms="any",
use_scm_version={
"local_scheme": "no-local-version",
}, # Support Legacy Installations
install_requires=["PyMongo", "Motor", "Pydantic"],
extras_require={
"doc": list_requirements("docs/requirements.txt"),
"test": [
"pytest",
"pytest-cov",
"pytest-asyncio",
"flake8",
"flake8-isort",
"flake8-black",
"mypy",
"invoke",
"fastapi",
],
"typing": ["fastapi"],
},
classifiers=[
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Topic :: Database",
"Topic :: Software Development :: Libraries :: Python Modules",
],
)