-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathsetup.py
56 lines (54 loc) · 1.54 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
import setuptools
BASE_REQUIREMENTS = [
"SQLAlchemy==1.4.49",
"databases==0.8.0",
"redis>=4.2.0",
"pydantic>=1.9.1",
"pydantic<2",
"alembic==1.8.1",
]
MYSQL_REQUIREMENTS = [
"aiomysql==0.0.21",
"cryptography==3.4.8",
"mysqlclient==2.0.3",
"PyMySQL==0.9.3",
]
POSTGRES_REQUIREMENTS = [
"asyncpg==0.24.0",
"psycopg2==2.9.1",
]
LITE_REQUIREMENTS = [
"aiosqlite==0.17.0",
]
with open("README.md", "r") as fh:
long_description = fh.read()
setuptools.setup(
name="pydbantic",
version="NEXT_VERSION",
packages=setuptools.find_packages(include=["pydbantic"], exclude=["build"]),
author="Joshua Jamison",
author_email="[email protected]",
description="'db' within pydantic - A single model for shaping, creating, accessing, storing data within a Database",
long_description=long_description,
long_description_content_type="text/markdown",
url="https://github.com/codemation/pydbantic",
classifiers=[
"Programming Language :: Python :: 3",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Framework :: Pydantic",
"Framework :: FastAPI",
"Topic :: Database",
],
python_requires=">=3.7, <4",
install_requires=BASE_REQUIREMENTS,
extras_require={
"all": BASE_REQUIREMENTS
+ POSTGRES_REQUIREMENTS
+ MYSQL_REQUIREMENTS
+ LITE_REQUIREMENTS,
"postgres": POSTGRES_REQUIREMENTS,
"mysql": MYSQL_REQUIREMENTS,
"sqlite": LITE_REQUIREMENTS,
},
)