-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
77 lines (71 loc) · 2.21 KB
/
Copy pathsetup.py
File metadata and controls
77 lines (71 loc) · 2.21 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
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
74
75
76
77
import json
import os
from pathlib import Path
from setuptools import find_packages, setup
PATH = Path(os.path.dirname(os.path.abspath(__file__)))
with open(PATH / "setup.json") as f:
CONFIG = json.load(f)
with open(PATH / "README.md") as f:
README = f.read()
if __name__ == "__main__":
setup(
long_description=README,
long_description_content_type="text/markdown",
packages=find_packages(exclude=["contrib", "docs", "tests"]),
include_package_data=True,
install_requires=[],
extras_require={
"dev": [
"black~=23.3.0",
"ipython~=8.12.0",
"isort~=5.12.0",
"twine~=4.0.2",
],
"docs": [
"sqly[migration]",
"mkdocs~=1.4.3",
"mkdocs-autorefs~=0.4.1",
"mkdocs-click~=0.8.1",
"mkdocs-material~=9.1.20",
"mkdocs-material-extensions~=1.1.1",
"mkdocstrings[python-legacy]~=0.22.0",
],
"test": [
"sqly[migration]",
"black~=23.3.0",
"flake8~=6.0.0",
"mypy",
"pytest~=7.3.1",
"pytest-asyncio~=0.21.1",
"pytest-click~=1.1.0",
"pytest-cov~=4.0.0",
# all the supported adaptors have to be installed to test
"asyncpg~=0.28.0",
"psycopg[binary]~=3.1.9",
# "mysqlclient~=2.2.0",
# # TODO: Remove these???
# "SQLAlchemy~=1.4.49",
# "databases~=0.7.0",
],
"migration": [
"click~=8.1.3",
"networkx~=3.1",
"PyYAML~=6.0",
],
# postgresql DB interfaces
"psycopg": [
"psycopg[binary]~=3.1.9",
],
"asyncpg": [
"asyncpg~=0.28.0",
]
# "mysql": [
# "mysqlclient~=2.2.0",
# ]
# # all others can be done via ODBC
# "pyodbc": [
# "pyodbc~=4.0.39",
# ],
},
**CONFIG
)