From 1cc3d6d46693bb55b88027d96d3545050f2f261a Mon Sep 17 00:00:00 2001 From: Frost Ming Date: Fri, 11 Oct 2024 08:28:27 +0800 Subject: [PATCH] Release 1.1.0b1 (#169) --- CHANGELOG.rst | 58 ++++++++++++++++++++++++++++++++++++++ news/129.feature | 1 - news/133.feature | 1 - news/135.feature | 1 - news/136.bugfix | 1 - news/138.bugfix | 1 - news/141.feature | 1 - news/143.feature | 1 - news/145.feature | 3 -- news/150.bugfix | 1 - news/152.bugfix | 2 -- news/153.feature | 1 - news/155.bugfix | 2 -- news/156.feature | 1 - news/157.feature | 1 - news/158.feature | 2 -- news/160.feature | 1 - news/162.bugfix | 1 - news/163.bugfix | 1 - news/164.bugfix | 1 - news/165.bugfix | 1 - news/166.feature | 2 -- src/resolvelib/__init__.py | 2 +- 23 files changed, 59 insertions(+), 28 deletions(-) delete mode 100644 news/129.feature delete mode 100644 news/133.feature delete mode 100644 news/135.feature delete mode 100644 news/136.bugfix delete mode 100644 news/138.bugfix delete mode 100644 news/141.feature delete mode 100644 news/143.feature delete mode 100644 news/145.feature delete mode 100644 news/150.bugfix delete mode 100644 news/152.bugfix delete mode 100644 news/153.feature delete mode 100644 news/155.bugfix delete mode 100644 news/156.feature delete mode 100644 news/157.feature delete mode 100644 news/158.feature delete mode 100644 news/160.feature delete mode 100644 news/162.bugfix delete mode 100644 news/163.bugfix delete mode 100644 news/164.bugfix delete mode 100644 news/165.bugfix delete mode 100644 news/166.feature diff --git a/CHANGELOG.rst b/CHANGELOG.rst index afab7c9d..700fd7f4 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -1,3 +1,61 @@ +1.1.0b1 (2024-10-01) +==================== + +Features +-------- + +- Declare supported Python version support ">= 3.7" in dist meta `#129 `_ + +- Improve exception chaining when ResolutionImpossible raises during backjumping `#133 `_ + +- Switch from pyi files to modern annotations based type hinting `#135 `_ + +- In tests the commentjson test dependency with re.sub `#141 `_ + +- Deduplicate failure causes to save memory and reduce backtracking overhead `#143 `_ + +- New `narrow_requirement_selection` provider method giving option for + providers to reduce the number of times sort key `get_preference` is + called in long running backtrack `#145 `_ + +- Run tests against Python 3.12, 3.13, and use latest version of CI dependencies `#153 `_ + +- Update py2ndex script to use metadata files, skip 404, and support PEP 723 `#156 `_ + +- Replace setuptools.cfg and mypy.ini with pyproject.toml `#157 `_ + +- Add tests type "unvisited" to functional Python tests to ensure backjumping + is correctly skipping candidates `#158 `_ + +- Switch from flake8 to ruff for linting `#160 `_ + +- Enable automatic TYPE_CHECK guarding for imports only used for type hinting + via ruff rules TCH and FA `#166 `_ + + +Bug Fixes +--------- + +- Fix example reporter_demo `get_preference` method which requires arg `backtrack_causes` `#136 `_ + +- Clarify the docstrings for `providers.py` `#138 `_ + +- Pin Black version for linting to prevent CI failures `#150 `_ + +- In unexpected situation where broken_state.mapping is empty, stop backtracking, + and continue resolution (rather than throwing ResolutionImpossible) `#152 `_ + +- During backtracking check if the current broken state is an incompatible dependency, + if not stop backtracking and continue resolution. `#155 `_ + +- Separate AbstractResolver and Resolver into different modules `#162 `_ + +- Separate resolvers into different modules `#163 `_ + +- Export criterion in resolvers to keep compatibility `#164 `_ + +- Enable isorting via ruff `#165 `_ + 1.0.1 (2023-03-09) ================== diff --git a/news/129.feature b/news/129.feature deleted file mode 100644 index 2ef66155..00000000 --- a/news/129.feature +++ /dev/null @@ -1 +0,0 @@ -Declare supported Python version support ">= 3.7" in dist meta diff --git a/news/133.feature b/news/133.feature deleted file mode 100644 index ceb4db60..00000000 --- a/news/133.feature +++ /dev/null @@ -1 +0,0 @@ -Improve exception chaining when ResolutionImpossible raises during backjumping diff --git a/news/135.feature b/news/135.feature deleted file mode 100644 index ff0f4bd4..00000000 --- a/news/135.feature +++ /dev/null @@ -1 +0,0 @@ -Switch from pyi files to modern annotations based type hinting diff --git a/news/136.bugfix b/news/136.bugfix deleted file mode 100644 index 45b1cd50..00000000 --- a/news/136.bugfix +++ /dev/null @@ -1 +0,0 @@ -Fix example reporter_demo `get_preference` method which requires arg `backtrack_causes` diff --git a/news/138.bugfix b/news/138.bugfix deleted file mode 100644 index dc5a8d62..00000000 --- a/news/138.bugfix +++ /dev/null @@ -1 +0,0 @@ -Clarify the docstrings for `providers.py` diff --git a/news/141.feature b/news/141.feature deleted file mode 100644 index 50efdf28..00000000 --- a/news/141.feature +++ /dev/null @@ -1 +0,0 @@ -In tests the commentjson test dependency with re.sub diff --git a/news/143.feature b/news/143.feature deleted file mode 100644 index e68ca1ec..00000000 --- a/news/143.feature +++ /dev/null @@ -1 +0,0 @@ -Deduplicate failure causes to save memory and reduce backtracking overhead diff --git a/news/145.feature b/news/145.feature deleted file mode 100644 index 65dcd9e7..00000000 --- a/news/145.feature +++ /dev/null @@ -1,3 +0,0 @@ -New `narrow_requirement_selection` provider method giving option for -providers to reduce the number of times sort key `get_preference` is -called in long running backtrack diff --git a/news/150.bugfix b/news/150.bugfix deleted file mode 100644 index a0860760..00000000 --- a/news/150.bugfix +++ /dev/null @@ -1 +0,0 @@ -Pin Black version for linting to prevent CI failures diff --git a/news/152.bugfix b/news/152.bugfix deleted file mode 100644 index 50df86a0..00000000 --- a/news/152.bugfix +++ /dev/null @@ -1,2 +0,0 @@ -In unexpected situation where broken_state.mapping is empty, stop backtracking, -and continue resolution (rather than throwing ResolutionImpossible) diff --git a/news/153.feature b/news/153.feature deleted file mode 100644 index ae7374e4..00000000 --- a/news/153.feature +++ /dev/null @@ -1 +0,0 @@ -Run tests against Python 3.12, 3.13, and use latest version of CI dependencies diff --git a/news/155.bugfix b/news/155.bugfix deleted file mode 100644 index 4ada7713..00000000 --- a/news/155.bugfix +++ /dev/null @@ -1,2 +0,0 @@ -During backtracking check if the current broken state is an incompatible dependency, -if not stop backtracking and continue resolution. diff --git a/news/156.feature b/news/156.feature deleted file mode 100644 index da4b7a49..00000000 --- a/news/156.feature +++ /dev/null @@ -1 +0,0 @@ -Update py2ndex script to use metadata files, skip 404, and support PEP 723 diff --git a/news/157.feature b/news/157.feature deleted file mode 100644 index 9a7366d7..00000000 --- a/news/157.feature +++ /dev/null @@ -1 +0,0 @@ -Replace setuptools.cfg and mypy.ini with pyproject.toml diff --git a/news/158.feature b/news/158.feature deleted file mode 100644 index b7fe7c3e..00000000 --- a/news/158.feature +++ /dev/null @@ -1,2 +0,0 @@ -Add tests type "unvisited" to functional Python tests to ensure backjumping -is correctly skipping candidates diff --git a/news/160.feature b/news/160.feature deleted file mode 100644 index 166a0aa0..00000000 --- a/news/160.feature +++ /dev/null @@ -1 +0,0 @@ -Switch from flake8 to ruff for linting diff --git a/news/162.bugfix b/news/162.bugfix deleted file mode 100644 index 1d4d07c5..00000000 --- a/news/162.bugfix +++ /dev/null @@ -1 +0,0 @@ - Separate AbstractResolver and Resolver into different modules diff --git a/news/163.bugfix b/news/163.bugfix deleted file mode 100644 index f17e3164..00000000 --- a/news/163.bugfix +++ /dev/null @@ -1 +0,0 @@ -Separate resolvers into different modules diff --git a/news/164.bugfix b/news/164.bugfix deleted file mode 100644 index af290dad..00000000 --- a/news/164.bugfix +++ /dev/null @@ -1 +0,0 @@ -Export criterion in resolvers to keep compatibility diff --git a/news/165.bugfix b/news/165.bugfix deleted file mode 100644 index 8bed020d..00000000 --- a/news/165.bugfix +++ /dev/null @@ -1 +0,0 @@ -Enable isorting via ruff diff --git a/news/166.feature b/news/166.feature deleted file mode 100644 index 82829a9f..00000000 --- a/news/166.feature +++ /dev/null @@ -1,2 +0,0 @@ -Enable automatic TYPE_CHECK guarding for imports only used for type hinting -via ruff rules TCH and FA diff --git a/src/resolvelib/__init__.py b/src/resolvelib/__init__.py index fd9f2492..9c89d929 100644 --- a/src/resolvelib/__init__.py +++ b/src/resolvelib/__init__.py @@ -11,7 +11,7 @@ "ResolutionTooDeep", ] -__version__ = "1.0.2.dev0" +__version__ = "1.1.0b1" from .providers import AbstractProvider