Skip to content

Commit

Permalink
Merge pull request #70 from untergeek/release/8.15.0
Browse files Browse the repository at this point in the history
Release prep for 8.15.0
  • Loading branch information
untergeek authored Aug 14, 2024
2 parents 6af05c9 + 420723c commit 038ec86
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 31 deletions.
10 changes: 6 additions & 4 deletions cli.py
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
"""CLI Wrapper used by cli.py"""
import click

from click import echo
from es_client.cli_example import run

if __name__ == '__main__':
try:
# This is because click uses decorators, and pylint doesn't catch that
# pylint: disable=no-value-for-parameter
run()
except RuntimeError as e:
except RuntimeError as err:
import sys
print('{0}'.format(e))
sys.exit(1)

echo(f'{err}')
sys.exit(1)
9 changes: 9 additions & 0 deletions docs/Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
Changelog
=========

8.15.0 (13 August 2024)
-----------------------

**Changes**

* Python module version bumps:
* ``elasticsearch8==8.15.0``
* Make execution scripts more consistent and PEP compliant.

8.14.2 (6 August 2024)
----------------------

Expand Down
2 changes: 1 addition & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@

intersphinx_mapping = {
"python": ("https://docs.python.org/3.12", None),
"elasticsearch8": ("https://elasticsearch-py.readthedocs.io/en/v8.14.0", None),
"elasticsearch8": ("https://elasticsearch-py.readthedocs.io/en/v8.15.0", None),
"elastic-transport": (
"https://elastic-transport-python.readthedocs.io/en/stable",
None,
Expand Down
2 changes: 1 addition & 1 deletion docs/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
elasticsearch8==8.14.0
elasticsearch8==8.15.0
voluptuous>=0.14.2
pyyaml==6.0.1
pint>=0.19.2
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ keywords = [
'command-line'
]
dependencies = [
'elasticsearch8==8.14.0',
'elasticsearch8==8.15.0',
'ecs-logging==2.2.0',
'dotmap==1.3.30',
'click==8.1.7',
Expand Down
19 changes: 8 additions & 11 deletions run_script.py
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
#!/usr/bin/env python
# pylint: disable=broad-except, no-value-for-parameter
"""
Wrapper for running a script from source.
"""
import sys
import click
"""Script to run locally"""

from click import echo
from es_client.cli_example import run

if __name__ == '__main__':
try:
# This is because click uses decorators, and pylint doesn't catch that
# pylint: disable=no-value-for-parameter
run()
except RuntimeError as err:
click.echo(f'{err}')
import sys

echo(f'{err}')
sys.exit(1)
except Exception as err:
if 'ASCII' in str(err):
click.echo(f'{err}')
click.echo(__doc__)
2 changes: 1 addition & 1 deletion src/es_client/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
from .builder import Builder

__all__ = ["Builder"]
__version__ = "8.14.2"
__version__ = "8.15.0"
20 changes: 8 additions & 12 deletions src/local_test.py
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
#!/usr/bin/env python
"""Script to run locally"""

# pylint: disable=broad-except, no-value-for-parameter
"""
Wrapper for running a script from source.
"""
import sys
import click
from click import echo
from es_client.cli_example import run

if __name__ == "__main__":
if __name__ == '__main__':
try:
# This is because click uses decorators, and pylint doesn't catch that
# pylint: disable=no-value-for-parameter
run()
except RuntimeError as err:
click.echo(f"{err}")
import sys

echo(f'{err}')
sys.exit(1)
except Exception as err:
if "ASCII" in str(err):
click.echo(f"{err}")
click.echo(__doc__)

0 comments on commit 038ec86

Please sign in to comment.