Skip to content

Commit db3b7da

Browse files
committed
refresh
Signed-off-by: Sylvain Hellegouarch <[email protected]>
1 parent dcb5318 commit db3b7da

File tree

9 files changed

+30
-16
lines changed

9 files changed

+30
-16
lines changed

.github/workflows/build.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ on: [push, pull_request]
44

55
jobs:
66
test:
7-
runs-on: ubuntu-20.04
7+
runs-on: ubuntu-22.04
88
strategy:
99
matrix:
10-
python-version: [3.7, 3.8, 3.9, "3.10"]
10+
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
1111
steps:
1212
- uses: actions/checkout@v2
1313
- name: Set up Python ${{ matrix.python-version }}
@@ -27,13 +27,13 @@ jobs:
2727
pytest tests/
2828
2929
build:
30-
runs-on: ubuntu-20.04
30+
runs-on: ubuntu-22.04
3131
steps:
3232
- uses: actions/checkout@v2
3333
- name: Set up Python
3434
uses: actions/setup-python@v1
3535
with:
36-
python-version: '3.7'
36+
python-version: '3.8'
3737
- name: Install dependencies
3838
run: |
3939
python -m pip install --upgrade pip setuptools wheel

.github/workflows/release.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@ on:
88

99
jobs:
1010
release-to-pypi:
11-
runs-on: ubuntu-20.04
11+
runs-on: ubuntu-22.04
1212
steps:
1313
- uses: actions/checkout@v2
1414
- name: Set up Python
1515
uses: actions/setup-python@v1
1616
with:
17-
python-version: '3.7'
17+
python-version: '3.8'
1818
- name: Install dependencies
1919
run: |
2020
python -m pip install --upgrade pip
@@ -34,7 +34,7 @@ jobs:
3434
path: dist/chaostoolkit_addons-*
3535

3636
create-gh-release:
37-
runs-on: ubuntu-20.04
37+
runs-on: ubuntu-22.04
3838
steps:
3939
- name: Create Release
4040
uses: actions/create-release@latest
@@ -47,7 +47,7 @@ jobs:
4747
prerelease: false
4848

4949
upload-gh-release-assets:
50-
runs-on: ubuntu-20.04
50+
runs-on: ubuntu-22.04
5151
needs:
5252
- create-gh-release
5353
- release-to-pypi

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,18 @@
22

33
## [Unreleased][]
44

5-
[Unreleased]: https://github.com/chaostoolkit/chaostoolkit-addons/compare/0.9.0...HEAD
5+
[Unreleased]: https://github.com/chaostoolkit/chaostoolkit-addons/compare/0.10.0...HEAD
6+
7+
## [0.10.0][]
8+
9+
[0.10.0]: https://github.com/chaostoolkit/chaostoolkit-addons/compare/0.9.0...0.10.0
10+
11+
### Changed
12+
13+
* Bump to chaostoolkit-lib 1.42.1 to drop logzero
14+
* Drop logzero expectation
15+
* Drop support Python 3.7
16+
* Build for Python 3.12
617

718
## [0.9.0][]
819

chaosaddons/controls/bypass.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,15 @@
4040
],
4141
```
4242
"""
43+
import logging
4344
from typing import List
4445

4546
from chaoslib.types import Activity
46-
from logzero import logger
4747

4848

4949
__all__ = ["before_experiment_control", "before_activity_control",
5050
"after_activity_control"]
51+
logger = logging.getLogger("chaostoolkit")
5152

5253

5354
def before_experiment_control(target_type: str = None,

chaosaddons/controls/repeat.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
1+
import logging
12
from copy import deepcopy
23
from typing import List
34

45
from chaoslib.types import Activity, Experiment, Run
5-
from logzero import logger
66

77
__all__ = ["after_activity_control"]
8+
logger = logging.getLogger("chaostoolkit")
89

910

1011
def after_activity_control(context: Activity, experiment: Experiment,

chaosaddons/controls/safeguards.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@
7979
and therefore blocking the process. Make sure your probe do not make blocking
8080
calls for too long.
8181
"""
82+
import logging
8283
from concurrent.futures import Future, ThreadPoolExecutor
8384
from copy import deepcopy
8485
from datetime import datetime
@@ -89,8 +90,6 @@
8990
import traceback
9091
from typing import List
9192

92-
from logzero import logger
93-
9493
from chaoslib.activity import ensure_activity_is_valid, run_activity
9594
from chaoslib.caching import lookup_activity
9695
from chaoslib.control import controls
@@ -106,6 +105,7 @@
106105

107106
__all__ = ["configure_control", "before_experiment_control",
108107
"after_experiment_control", "validate_control"]
108+
logger = logging.getLogger("chaostoolkit")
109109

110110

111111
class Guardian:

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
chaostoolkit-lib>=1.15.0
1+
chaostoolkit-lib>=1.42

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,11 @@ classifiers =
2525
Operating System :: OS Independent
2626
Programming Language :: Python
2727
Programming Language :: Python :: 3
28-
Programming Language :: Python :: 3.7
2928
Programming Language :: Python :: 3.8
3029
Programming Language :: Python :: 3.9
3130
Programming Language :: Python :: 3.10
31+
Programming Language :: Python :: 3.11
32+
Programming Language :: Python :: 3.12
3233
Programming Language :: Python :: Implementation
3334
Programming Language :: Python :: Implementation :: CPython
3435

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55
setup(
66
use_scm_version=True,
77
name="chaostoolkit-addons",
8-
version="0.9.0",
8+
version="0.10.0",
99
)

0 commit comments

Comments
 (0)