forked from elastic/curator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
110 lines (97 loc) · 2.74 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "elasticsearch-curator"
authors = [{ name="Elastic", email="[email protected]" }]
dynamic = ["version"]
description = "Tending your Elasticsearch indices and snapshots"
license = { text="Apache-2.0" }
readme = "README.rst"
requires-python = ">=3.8"
classifiers = [
"Intended Audience :: Developers",
"Intended Audience :: System Administrators",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
]
keywords = [
'elasticsearch',
'time-series',
'indexed',
'index-expiry'
]
dependencies = [
"es_client==8.12.4"
]
[project.optional-dependencies]
test = [
"requests",
"pytest >=7.2.1",
"pytest-cov",
]
doc = ["sphinx", "sphinx_rtd_theme"]
[project.scripts]
curator = "curator.cli:cli"
curator_cli = "curator.singletons:curator_cli"
es_repo_mgr = "curator.repomgrcli:repo_mgr_cli"
[project.urls]
"Homepage" = "https://github.com/elastic/curator"
"Bug Tracker" = "https://github.com/elastic/curator/issues"
[tool.hatch.version]
path = "curator/_version.py"
[tool.hatch.module]
name = "curator"
[tool.hatch.build]
include = [
"curator/*.py",
"curator/actions/*.py",
"curator/cli_singletons/*.py",
"curator/defaults/*.py",
"curator/helpers/*.py",
"curator/validators/*.py",
]
[tool.hatch.build.targets.sdist]
exclude = [
"dist",
"docs",
"docker_test",
"examples",
"html_docs",
"tests",
]
[tool.hatch.envs.test]
dependencies = [
"coverage[toml]",
"requests",
"pytest >=7.2.1",
"pytest-cov",
]
[tool.hatch.envs.test.scripts]
step0 = "$(docker_test/scripts/destroy.sh 2&>1 /dev/null)"
step1 = "step0 ; echo 'Starting test environment in Docker...' ; $(AUTO_EXPORT=y docker_test/scripts/create.sh 8.12.1 2&>1 /dev/null)"
step2 = "step1 ; source docker_test/curatortestenv; echo 'Running tests:'"
step3 = "step2 ; pytest ; EXITCODE=$?"
step4 = "step3 ; echo 'Tests complete! Destroying Docker test environment...' "
full = "step4 ; $(docker_test/scripts/destroy.sh 2&>1 /dev/null ) ; exit $EXITCODE"
run-coverage = "pytest --cov-config=pyproject.toml --cov=curator --cov=tests"
run = "run-coverage --no-cov"
[[tool.hatch.envs.test.matrix]]
python = ["3.9", "3.10", "3.11"]
version = ["8.0.9"]
[tool.pytest.ini_options]
pythonpath = [".", "curator"]
minversion = "7.2"
addopts = "-ra -q"
testpaths = [
"tests/unit",
"tests/integration",
]
[tool.distutils.build_exe]
excludes = ["tcltk", "tkinter", "unittest"]
zip_include_packages = ["certifi"]