forked from tortoise/tortoise-orm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
73 lines (65 loc) · 2.32 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
70
71
72
73
# coding: utf8
import re
import sys
from setuptools import find_packages, setup
if sys.version_info < (3, 7):
raise RuntimeError("Tortoise-ORM requires Python >= 3.7")
def version():
verstrline = open("tortoise/__init__.py", "rt").read()
mob = re.search(r"^__version__ = ['\"]([^'\"]*)['\"]", verstrline, re.M)
if not mob:
raise RuntimeError("Unable to find version string")
return mob.group(1)
def requirements(fname):
return open(fname, "rt").read().splitlines()
setup(
# Application name:
name="tortoise-orm",
# Version number:
version=version(),
# Application author details:
author="Andrey Bondar",
author_email="[email protected]",
# License
license="Apache License Version 2.0",
# Packages
packages=find_packages(include=["tortoise*"]),
zip_safe=True,
# Include additional files into the package
include_package_data=True,
# Details
url="https://github.com/tortoise/tortoise-orm",
description="Easy async ORM for python, built with relations in mind",
long_description=open("README.rst", "r").read(),
long_description_content_type="text/x-rst",
project_urls={"Documentation": "https://tortoise-orm.readthedocs.io/"},
classifiers=[
"License :: OSI Approved :: Apache Software License",
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
"Programming Language :: PL/SQL",
"Framework :: AsyncIO",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Database",
"Operating System :: POSIX",
"Operating System :: MacOS :: MacOS X",
],
keywords=(
"sql mysql postgres psql "
"sqlite aiosqlite asyncpg "
"relational database rdbms "
"orm object mapper "
"async asyncio aio"
),
# Dependent packages (distributions)
install_requires=requirements("requirements.txt"),
extras_require={
'accel': requirements("requirements-accel.txt")
}
)