From b237cab3d47856ce9c211a79083c107ef0348def Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Robert?= Date: Fri, 13 Dec 2024 16:01:56 +0100 Subject: [PATCH] REL: prepare release 5.1.0 --- CHANGELOG.md | 2 +- README.md | 6 +++--- pyproject.toml | 2 +- scripts/pre_publish_checks.py | 6 +++++- uv.lock | 2 +- 5 files changed, 11 insertions(+), 7 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 663772c..dcf0d49 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,7 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). -## Unreleased +## [5.1.0] - 2024-12-13 - TYP: add missing `__all__` symbol to inifix's root namespace - TYP: fix errors reported by `pyright` diff --git a/README.md b/README.md index 17c4c86..bb85936 100644 --- a/README.md +++ b/README.md @@ -376,14 +376,14 @@ following configuration (add to `.pre-commit-config.yaml`) ```yaml - repo: https://github.com/neutrinoceros/inifix.git - rev: v5.0.4 + rev: v5.1.0 hooks: - id: inifix-validate ``` or ```yaml - repo: https://github.com/neutrinoceros/inifix.git - rev: v5.0.4 + rev: v5.1.0 hooks: - id: inifix-format ``` @@ -392,7 +392,7 @@ Note that `inifix-format` also validates data by default, so it is redundant to utilize both hooks. Validation and formatting may nonetheless be decoupled as ```patch - repo: https://github.com/neutrinoceros/inifix.git - rev: v5.0.4 + rev: v5.1.0 hooks: - id: inifix-validate - id: inifix-format diff --git a/pyproject.toml b/pyproject.toml index a583d89..6545391 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "hatchling.build" [project] name = "inifix" -version = "5.0.4" +version = "5.1.0" description = "An I/O library for Pluto-style ini files." authors = [ { name = "C.M.T. Robert" }, diff --git a/scripts/pre_publish_checks.py b/scripts/pre_publish_checks.py index 5399009..faf48dd 100644 --- a/scripts/pre_publish_checks.py +++ b/scripts/pre_publish_checks.py @@ -64,7 +64,11 @@ def check_static_version(md: Metadata) -> int: def check_readme(md: Metadata) -> int: text = README.read_text() - if text != (expected := REV_REGEXP.sub(f"rev: {md.latest_git_tag}", text)): + if md.current_static_version.is_devrelease: + expected_tag = md.latest_git_tag + else: + expected_tag = f"v{md.current_static_version}" + if text != (expected := REV_REGEXP.sub(f"rev: {expected_tag}", text)): diff = "\n".join( line.removesuffix("\n") for line in unified_diff( diff --git a/uv.lock b/uv.lock index c9c3969..8ade131 100644 --- a/uv.lock +++ b/uv.lock @@ -121,7 +121,7 @@ wheels = [ [[package]] name = "inifix" -version = "5.0.4" +version = "5.1.0" source = { editable = "." } dependencies = [ { name = "typing-extensions", marker = "python_full_version < '3.11'" },