diff --git a/doc/changelog.rst b/doc/changelog.rst index 57c0a034..3469cc8d 100644 --- a/doc/changelog.rst +++ b/doc/changelog.rst @@ -5,6 +5,14 @@ Changelog ========= +2.27.0 (July 30, 2024) +---------------------- +- Fix odr issue in type_caster (`#1013 `_) +- More robust unified fitting in minuit.migrad and minuit.mnprofile (`#1009 `_) +- Cure error when extremes cannot be found (`#1011 `_) +- Fix for visibledeprecationwarning, useful annotated types, support tuple annotation (`#1004 `_) +- Ci: using uv with cibuildwheel (`#999 `_) + 2.26.0 (June 03, 2024) ---------------------- - Ci: add github artifact attestations to package distribution (`#993 `_) diff --git a/doc/update_changelog.py b/doc/update_changelog.py index cb09f2e7..308e7c9d 100644 --- a/doc/update_changelog.py +++ b/doc/update_changelog.py @@ -1,25 +1,25 @@ from pathlib import Path import re import subprocess as subp -from pkg_resources import parse_version -from pkg_resources.extern.packaging.version import InvalidVersion +from packaging.version import Version, InvalidVersion import datetime import warnings import sys cwd = Path(__file__).parent -version = ( - subp.check_output([sys.executable, cwd.parent / "version.py"]).strip().decode() -) -new_version = parse_version(version) - -def parse_version_with_fallback(x): +def parse_version_with_fallback(version_string): try: - return parse_version(x) + return Version(version_string) except InvalidVersion: - return parse_version("0.0.1") + return Version("0.0.1") + + +version = ( + subp.check_output([sys.executable, cwd.parent / "version.py"]).strip().decode() +) +new_version = parse_version_with_fallback(version) with warnings.catch_warnings(): @@ -44,7 +44,7 @@ def parse_version_with_fallback(x): # find latest entry m = re.search(r"([0-9]+\.[0-9]+\.[0-9]+) \([^\)]+\)\n-*", content, re.MULTILINE) -previous_version = parse_version(m.group(1)) +previous_version = Version(m.group(1)) position = m.span(0)[0] # sanity checks diff --git a/pyproject.toml b/pyproject.toml index acb68f8d..41a3e435 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -5,7 +5,7 @@ build-backend = "scikit_build_core.build" [project] name = "iminuit" description = "Jupyter-friendly Python frontend for MINUIT2 in C++" -version = "2.26.0" +version = "2.27.0" maintainers = [ { name = "Hans Dembinski" }, { email = "hans.dembinski@gmail.com" },