-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsetup.cfg
105 lines (92 loc) · 2.39 KB
/
setup.cfg
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
[metadata]
name = aiochsa
description = Clickhouse Python/asyncio library for use with SQLAlchemy core
long_description = file: README.rst
author = Denis Otkidach
author_email = [email protected]
url = https://github.com/ods/aiochsa
license = MIT
license_file = LICENSE
classifiers =
Development Status :: 5 - Production/Stable
Intended Audience :: Developers
License :: OSI Approved :: MIT License
Programming Language :: Python :: 3.7
Programming Language :: Python :: 3.8
Programming Language :: Python :: 3.9
Programming Language :: Python :: 3.10
Topic :: Database :: Front-Ends
[options]
packages =
aiochsa
python_requires = >=3.7
install_requires =
aiohttp>=3.7.2,<4.0.0
backports.zoneinfo;python_version<"3.9"
clickhouse_sqlalchemy>=0.1.5,<0.2.0
lark-parser>=0.11.2
simplejson>=3.16.0
sqlalchemy>=1.3.0,<1.4.0
setup_requires =
setuptools_scm>=3.3.3
[options.extras_require]
dev =
lovely-pytest-docker>=0.3.0
pytest>=6.2.0
pytest-asyncio>=0.17.0
pytest-cov>=2.11.1
[options.package_data]
aiochsa =
type.lark
py.typed
[tool:pytest]
testpaths = tests
addopts = --strict-markers -r aP --tb=native
filterwarnings = error
asyncio_mode = auto
[coverage:run]
branch = True
source = .
omit =
setup.py
tests/*
.tox/*
[coverage:report]
show_missing = True
[mypy]
ignore_missing_imports = True
check_untyped_defs = True
warn_redundant_casts = True
warn_unused_ignores = True
[tox:tox]
envlist = py{37,38,39,310},ch{19_16,20_3,20_8,21_1,21_3,21_8},mypy
[testenv]
extras = dev
passenv = CLICKHOUSE_VERSION
commands = pytest {posargs:--cov --cov-report=}
# The versions here are picked from Altinity Stable Releases
# https://docs.altinity.com/altinitystablerelease/releasenotes/
[testenv:ch19_16]
basepython = python3.8
setenv = CLICKHOUSE_VERSION = 19.16.19.85
[testenv:ch20_3]
basepython = python3.8
setenv = CLICKHOUSE_VERSION = 20.3.19.4
[testenv:ch20_8]
basepython = python3.8
setenv = CLICKHOUSE_VERSION = 20.8.12.2
[testenv:ch21_1]
basepython = python3.9
# No container for 21.1.10.3
setenv = CLICKHOUSE_VERSION = 21.1.9.41
[testenv:ch21_3]
basepython = python3.9
setenv = CLICKHOUSE_VERSION = 21.3.19.1
[testenv:ch21_8]
basepython = python3.9
setenv = CLICKHOUSE_VERSION = 21.8.13.6
[testenv:mypy]
basepython = python3.10
extras = dev
deps = mypy>=0.910
commands = mypy --install-types --non-interactive -p aiochsa -p tests