Skip to content

Commit

Permalink
update version and changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
HDembinski committed Aug 25, 2024
1 parent 18a6d08 commit 3ae34bc
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 7 deletions.
10 changes: 10 additions & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
Changelog
=========

2.29.0 (August 25, 2024)
------------------------
- Fix odr issue in type_caster which could result in ub when `-flto` is enabled (`#1028 <https://github.com/scikit-hep/iminuit/pull/1028>`_)
- Remove packaging dependency (`#1027 <https://github.com/scikit-hep/iminuit/pull/1027>`_)
- Restore cython tutorial (`#1026 <https://github.com/scikit-hep/iminuit/pull/1026>`_)
- Support sum(w) < 0 in binned fits (`#1022 <https://github.com/scikit-hep/iminuit/pull/1022>`_)
- Set `pybind11_findpython` `on` to use `findpython` cmake mode (`#1023 <https://github.com/scikit-hep/iminuit/pull/1023>`_)
- Fix version parse (`#1021 <https://github.com/scikit-hep/iminuit/pull/1021>`_)
- Improve maintainer metadata (`#1020 <https://github.com/scikit-hep/iminuit/pull/1020>`_)

2.28.0 (August 01, 2024)
------------------------
- Add name argument to all cost functions (`#1017 <https://github.com/scikit-hep/iminuit/pull/1017>`_)
Expand Down
14 changes: 8 additions & 6 deletions doc/update_changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@
cwd = Path(__file__).parent


version = (
new_version_string = (
subp.check_output([sys.executable, cwd.parent / "version.py"]).strip().decode()
)
new_version = parse_version(version)
new_version = parse_version(new_version_string)


with warnings.catch_warnings():
Expand All @@ -21,7 +21,7 @@
iter(
sorted(
(
parse_version(x)
parse_version(x.lstrip("v"))
for x in subp.check_output(["git", "tag"])
.decode()
.strip()
Expand All @@ -37,7 +37,9 @@

# find latest entry
m = re.search(r"([0-9]+\.[0-9]+\.[0-9]+) \([^\)]+\)\n-*", content, re.MULTILINE)
previous_version = parse_version(m.group(1))
assert m is not None
previous_version_string = m.group(1)
previous_version = parse_version(previous_version_string)
position = m.span(0)[0]

# sanity checks
Expand All @@ -46,12 +48,12 @@
git_log = re.findall(
r"[a-z0-9]+ ([^\n]+ \(#[0-9]+\))",
subp.check_output(
["git", "log", "--oneline", f"v{previous_version}..HEAD"]
["git", "log", "--oneline", f"v{previous_version_string}..HEAD"]
).decode(),
)

today = datetime.date.today()
header = f"{new_version} ({today.strftime('%B %d, %Y')})"
header = f"{new_version_string} ({today.strftime('%B %d, %Y')})"

new_content = f"{header}\n{'-' * len(header)}\n"
if git_log:
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.28.0"
version = "2.29.0"
maintainers = [{ name = "Hans Dembinski", email = "[email protected]" }]
readme = "README.rst"
requires-python = ">=3.9"
Expand Down

0 comments on commit 3ae34bc

Please sign in to comment.