-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpyproject.toml
172 lines (150 loc) · 4.35 KB
/
pyproject.toml
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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
[tool.poetry]
name = "pydapper"
version = "0.12.0"
description = "A python micro ORM inspired by the nuget package Dapper"
authors = ["Zach Schumacher <[email protected]>"]
license = "MIT"
readme = "README.md"
classifiers = [
'Development Status :: 5 - Production/Stable',
'Programming Language :: Python',
'Programming Language :: Python :: 3',
'Programming Language :: Python :: 3 :: Only',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Programming Language :: Python :: 3.13',
'Intended Audience :: Developers',
'Intended Audience :: Information Technology',
'Intended Audience :: System Administrators',
'License :: OSI Approved :: MIT License',
'Operating System :: Unix',
'Operating System :: POSIX :: Linux',
'Environment :: Console',
'Environment :: MacOS X',
'Topic :: Software Development :: Libraries :: Python Modules',
'Topic :: Internet',
'Topic :: Database',
'Topic :: Database :: Database Engines/Servers'
]
[tool.poetry.dependencies]
python = ">=3.9,<3.14"
dsnparse = "^0.2.1"
coro-context-manager = "0.2.1"
## postgresql
psycopg = { extras = ["binary"], version = "^3.2.4", optional = true }
psycopg2-binary = { version = "^2.9.10", optional = true }
types-psycopg2 = { version = "^2.9.4", optional = true }
aiopg = { version = "^1.4.0", optional = true }
## sql server
pymssql = { version = "^2.3.2", optional = true }
types-pymssql = { version = "^2.1.0", optional = true }
## mysql
mysql-connector-python = { version = "^9.2.0", optional = true }
## oracle
oracledb = { version = "^2.5.1", optional = true }
## bigquery
google-cloud-bigquery = { version = "^3.29.0", optional = true }
google-cloud-bigquery-storage = { version = "^2.27.0", optional = true }
pyarrow = { version = "*", optional = true }
numpy = { version = "*", optional = true }
[tool.poetry.group.dev.dependencies]
# testing
coverage = "*"
pytest = "8.*.*"
pytest-cov = "6.*.*"
pytest-asyncio = "0.25.*"
pytest-mock = "*"
pytest-vcr = "^1.0.2"
Faker = "*"
mypy = "*"
# linting
black = "*"
isort = "*"
# other
devtools = "*"
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
mkdocs = "1.*.*"
mkdocs-material = "9.*.*"
markdown-include = "*"
[tool.poetry.extras]
psycopg = ["psycopg"]
psycopg2 = ["psycopg2-binary", "types-psycopg2"]
pymssql = ["pymssql", "types-pymssql"]
mysql-connector-python = ["mysql-connector-python"]
oracledb = ["oracledb"]
aiopg = ["aiopg"]
google-cloud-bigquery = ["google-cloud-bigquery"]
# optional dep to make bigquery queries run faster
google-cloud-bigquery-storage = ["google-cloud-bigquery-storage", "pyarrow", "numpy"]
[tool.isort]
force_grid_wrap = 0
force_single_line = true
include_trailing_comma = true
line_length = 120
multi_line_output = 3
skip = ["venv", ".venv", "media", "staticfiles"]
use_parentheses = true
[tool.black]
line-length = 120
target-version = ['py37']
include = '\.pyi?$'
exclude = '''
(
/(
\.eggs
| \.circleci
| \.git
| \.github
| \.hg
| \.mypy_cache
| \.pytest_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
| venv
| media
| staticfiles
)/
)
'''
[tool.coverage.run]
omit = [
"pydapper/types.py",
"tests/*"
]
[tool.coverage.report]
exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"raise NotImplementedError",
"Protocol",
"except ImportError",
"@abstractmethod",
"@overload"
]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
norecursedirs = ["venv", ".venv"]
markers = [
"bigquery: marks tests that require bigquery (deselect with '-m \"not bigquery\"')",
"core: marks core tests (deselect with '-m \"not core\"')",
"mysql: marks tests that require mysql (deselect with '-m \"not mysql\"')",
"oracle: marks tests that require oracle (deselect with '-m \"not oracle\"')",
"postgresql: marks tests that require postgres (deselect with '-m \"not postgres\"')",
"sqlite: marks tests that require sqlite (deselect with '-m \"not sqlite\"')",
"mssql: marks tests that require mssql (deselect with '-m \"not mssql\")"
]
[tool.mypy]
no_implicit_optional = false
[[tool.mypy.overrides]]
module = "dsnparse.*"
ignore_missing_imports = true