Skip to content

Commit a127638

Browse files
committed
Merge branch '8.x' into 8.0
2 parents f247fc3 + 81d2eff commit a127638

File tree

9 files changed

+46
-22
lines changed

9 files changed

+46
-22
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ RUN /bin/sh alpine4docker.sh
2323
RUN pip3 install .
2424

2525
# Build (or rather Freeze) Curator
26-
RUN python3 setup.py build_exe
26+
RUN cxfreeze build
2727

2828
# Rename 'build/exe.{system().lower()}-{machine()}-{MAJOR}.{MINOR}' to curator_build
2929
RUN python3 post4docker.py

curator/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
"""Curator Version"""
22

3-
__version__ = '8.0.19'
3+
__version__ = '8.0.20'

curator/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ def process_action(client, action_def, dry_run=False):
172172
'list_obj', client, search_pattern=ptrn, include_hidden=hidn
173173
)
174174
action_def.list_obj.iterate_filters({'filters': action_def.filters})
175-
logger.debug('Pre Instantiation Action kwargs: %s', mykwargs)
175+
logger.debug(f'Pre Instantiation Action kwargs: {mykwargs}')
176176
action_def.instantiate('action_cls', action_def.list_obj, **mykwargs)
177177
# Do the action
178178
if dry_run:

docs/Changelog.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,32 @@
33
Changelog
44
=========
55

6+
(8.0.20) (21 March 2025)
7+
------------------------
8+
9+
**Patch Release**
10+
11+
There are no code changes in this release.
12+
13+
A package maintainer at Debian raised an issue with the now
14+
outdated ``cx_Freeze`` dependency in ``setup.py``. As ``cx_Freeze`` is now only
15+
used in the Docker build, ``setup.py`` has been removed to avoid the unneeded
16+
dependency. Docker and package builds were tested to ensure that the changes work
17+
as expected before this release.
18+
19+
**Changes**
20+
21+
* Move ``cx_Freeze`` configuration from ``setup.py`` to ``pyproject.toml``.
22+
The configuration will be read during the Docker image build but not otherwise
23+
result in ``cx_Freeze`` being a dependency.
24+
* Change how ``cx_Freeze`` is invoked in ``Dockerfile``, removing the need for
25+
``setup.py``.
26+
* Remove ``setup.py`` as it is no longer needed for package building.
27+
* Use ``es_client==8.17.4`` which fixes a logging issue.
28+
* Fix copyright dates in ``docs/index.rst``
29+
* Update asciidoc files to reflect the new version numbers.
30+
31+
632
(8.0.19) (5 March 2025)
733
-----------------------
834

docs/asciidoc/index.asciidoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
:curator_version: 8.0.19
1+
:curator_version: 8.0.20
22
:curator_major: 8
33
:curator_doc_tree: 8.0
4-
:es_py_version: 8.17.1
4+
:es_py_version: 8.17.2
55
:es_doc_tree: 8.17
66
:stack_doc_tree: 8.17
7-
:pybuild_ver: 3.12.2
7+
:pybuild_ver: 3.12.9
88
:copyright_years: 2011-2025
99
:ref: http://www.elastic.co/guide/en/elasticsearch/reference/{es_doc_tree}
1010
:esref: http://www.elastic.co/guide/en/elasticsearch/reference/{stack_doc_tree}

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Contents
3131
License
3232
=======
3333

34-
Copyright (c) 2011–2023 Elasticsearch <http://www.elastic.co>
34+
Copyright (c) 2011–2025 Elasticsearch <http://www.elastic.co>
3535

3636
Licensed under the Apache License, Version 2.0 (the "License");
3737
you may not use this file except in compliance with the License.

docs/reference/configfile.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ logging:
4949

5050
It is a YAML configuration file. The two root keys must be `elasticsearch` and `logging`. The subkeys of each of these will be described here.
5151

52-
There are other keys available for the `client` subkey of the `elasticsearch` root key, many of which are listed [here](https://es-client.readthedocs.io/en/latest/defaults.md). The most commonly used ones (listed above) are described as follows:
52+
There are other keys available for the `client` subkey of the `elasticsearch` root key, many of which are listed [here](https://es-client.readthedocs.io/en/latest/defaults.html). The most commonly used ones (listed above) are described as follows:
5353

5454
## hosts [hosts]
5555

pyproject.toml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ keywords = [
2929
'index-expiry'
3030
]
3131
dependencies = [
32-
"es_client==8.17.2"
32+
"es_client==8.17.4"
3333
]
3434

3535
[project.optional-dependencies]
@@ -139,3 +139,14 @@ testpaths = [
139139
[tool.distutils.build_exe]
140140
excludes = ["tcltk", "tkinter", "unittest"]
141141
zip_include_packages = ["certifi"]
142+
143+
[tool.cxfreeze]
144+
executables = [
145+
{script="run_curator.py", target_name="curator"},
146+
{script="run_singleton.py", target_name="curator_cli"},
147+
{script="run_es_repo_mgr.py", target_name="es_repo_mgr"},
148+
]
149+
150+
[tool.cxfreeze.build_exe]
151+
excludes = ["tcltk", "tkinter", "unittest"]
152+
zip_include_packages = ["certifi"]

setup.py

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
 (0)