From 80512463f7734c0cb35898a05679035c48f8e08d Mon Sep 17 00:00:00 2001 From: Bob Green Date: Tue, 26 Apr 2022 11:33:14 -0400 Subject: [PATCH] Prepare 2.0.0 release --- CHANGELOG.md | 12 ++++++++++++ backoff/__init__.py | 2 +- pyproject.toml | 2 +- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 12c4be8..cfa9761 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,17 @@ # Changelog +## [v2.0.0] - 2022-04-26 +### Added +- Add raise_on_giveup keyword arg for decorators +- Add backoff.runtime wait generator for dynamically setting wait times based + on target function return value or exception details +### Changed +- Improve type hints for on_success, on_backoff, on_giveup handlers +- Use decorator-specific detail and handler type hints +- Optionally use typing_extensions for python 3.7 type hinting +- Drop python 3.6 support +- Add python 3.10 support + ## [v1.11.1] - 2021-07-14 ### Fixed - Update __version__ in backoff module diff --git a/backoff/__init__.py b/backoff/__init__.py index 3f2dfa9..0a27f83 100644 --- a/backoff/__init__.py +++ b/backoff/__init__.py @@ -27,4 +27,4 @@ 'random_jitter', ] -__version__ = '1.11.1' +__version__ = '2.0.0' diff --git a/pyproject.toml b/pyproject.toml index 4d99d9e..527e8a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "backoff" -version = "1.11.1" +version = "2.0.0" description = "Function decoration for backoff and retry" authors = ["Bob Green "] readme = "README.rst"