-
Notifications
You must be signed in to change notification settings - Fork 635
/
pyproject.toml
141 lines (122 loc) · 3.21 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
[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",
"Programming Language :: Python :: 3.12",
]
keywords = [
'elasticsearch',
'time-series',
'indexed',
'index-expiry'
]
dependencies = [
"es_client==8.15.2"
]
[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",
]
### Docker Environment
[tool.hatch.envs.docker]
platforms = ["linux", "macos"]
[tool.hatch.envs.docker.scripts]
create = "docker_test/scripts/create.sh {args}"
destroy = "docker_test/scripts/destroy.sh"
### Lint environment
[tool.hatch.envs.lint]
detached = true
dependencies = [
'black>=23.1.0',
'mypy>=1.0.0',
'ruff>=0.0.243',
]
[tool.hatch.envs.lint.scripts]
run-pyright = "pyright {args:.}"
run-black = "black --quiet --check --diff {args:.}"
run-ruff = "ruff check --quiet {args:.}"
run-curlylint = "curlylint {args:.}"
python = ["run-pyright", "run-black", "run-ruff"]
templates = ["run-curlylint"]
all = ["python", "templates"]
[tool.pylint.format]
max-line-length = "88"
[tool.black]
target-version = ['py38']
line-length = 88
skip-string-normalization = true
include = '\.pyi?$'
### Test environment
[tool.hatch.envs.test]
platforms = ["linux", "macos"]
dependencies = [
"requests",
"pytest >=7.2.1",
"pytest-cov"
]
[[tool.hatch.envs.test.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]
[tool.hatch.envs.test.scripts]
pytest = "source docker_test/.env; pytest"
pytest-cov = "source docker_test/.env; pytest --cov=curator"
pytest-cov-report = "source docker_test/.env; pytest --cov=curator --cov-report=term-missing"
[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"]