-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
115 lines (103 loc) · 2.59 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
[build-system]
requires = ['hatchling']
build-backend = 'hatchling.build'
[project]
name = 'es_client'
dynamic = ['version']
description = 'Elasticsearch Client builder, complete with schema validation'
authors = [{name = 'Aaron Mildenstein', email = '[email protected]'}]
readme = 'README.rst'
requires-python = '>=3.8'
license = { text='Apache-2.0' }
classifiers = [
'Intended Audience :: Developers',
'License :: OSI Approved :: Apache Software License',
'Operating System :: OS Independent',
'Programming Language :: Python :: 3.8',
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
]
keywords = [
'elasticsearch',
'client',
'connect',
'command-line'
]
dependencies = [
'elasticsearch8==8.15.1',
'ecs-logging==2.2.0',
'dotmap==1.3.30',
'click==8.1.7',
'pyyaml==6.0.2',
'voluptuous>=0.14.2',
'certifi>=2024.8.30'
]
[project.optional-dependencies]
test = [
'requests',
'pytest >=7.2.1',
'pytest-cov',
'pytest-dotenv',
]
doc = ['sphinx', 'sphinx_rtd_theme']
[project.urls]
'Homepage' = 'https://github.com/untergeek/es_client'
'Bug Tracker' = 'https://github.com/untergeek/es_client/issues'
'Documentation' = 'https://es-client.readthedocs.io/'
'Source Code' = 'http://github.com/untergeek/es_client'
'Release Notes' = 'https://github.com/untergeek/es_client/releases'
[tool.hatch.version]
path = 'src/es_client/__init__.py'
[tool.hatch.build.targets.sdist]
exclude = [
'dist',
'docs',
'docker_test',
'examples',
'html_docs',
'tests',
'cli.py',
'example.yml',
'pytest.ini',
'src/local_test.py',
]
[tool.pytest.ini_options]
pythonpath = ['.', 'src/es_client']
minversion = '7.2'
addopts = '-ra -q'
testpaths = [
'tests/unit',
'tests/integration',
]
# Lint environment
[tool.hatch.envs.lint.scripts]
run-black = 'black --quiet --check --diff {args:.}'
python = ['run-black']
all = ['python']
# Test environment
[[tool.hatch.envs.test.matrix]]
python = ['3.8', '3.9', '3.10', '3.11', '3.12']
[tool.hatch.envs.test]
dependencies = [
'requests',
'pytest >=7.2.1',
'pytest-cov',
'pytest-dotenv',
]
[tool.hatch.envs.test.scripts]
test = 'pytest'
test-cov = 'pytest --cov=es_client'
cov-report = 'pytest --cov=es_client --cov-report html:cov_html'
[tool.coverage.report]
exclude_lines = [
'no cov',
'if __name__ == .__main__.:',
'if TYPE_CHECKING:',
]
[tool.black]
target-version = ['py38']
line-length = 88
skip-string-normalization = true
include = '\.pyi?$'