Skip to content

Commit

Permalink
update changelog and version
Browse files Browse the repository at this point in the history
  • Loading branch information
HDembinski committed Jul 30, 2024
1 parent 3ffd34b commit 405e9c3
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 12 deletions.
8 changes: 8 additions & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,14 @@
Changelog
=========

2.27.0 (July 30, 2024)
----------------------
- Fix odr issue in type_caster (`#1013 <https://github.com/scikit-hep/iminuit/pull/1013>`_)
- More robust unified fitting in minuit.migrad and minuit.mnprofile (`#1009 <https://github.com/scikit-hep/iminuit/pull/1009>`_)
- Cure error when extremes cannot be found (`#1011 <https://github.com/scikit-hep/iminuit/pull/1011>`_)
- Fix for visibledeprecationwarning, useful annotated types, support tuple annotation (`#1004 <https://github.com/scikit-hep/iminuit/pull/1004>`_)
- Ci: using uv with cibuildwheel (`#999 <https://github.com/scikit-hep/iminuit/pull/999>`_)

2.26.0 (June 03, 2024)
----------------------
- Ci: add github artifact attestations to package distribution (`#993 <https://github.com/scikit-hep/iminuit/pull/993>`_)
Expand Down
22 changes: 11 additions & 11 deletions doc/update_changelog.py
Original file line number Diff line number Diff line change
@@ -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():
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "[email protected]" },
Expand Down

0 comments on commit 405e9c3

Please sign in to comment.