From 5503c706f9a1f9c5f5b00efc9558627e340e5c68 Mon Sep 17 00:00:00 2001 From: Derek Gulbranson Date: Sun, 22 Nov 2026 17:21:21 -0800 Subject: [PATCH] Open the 3.3 cycle after 3.2.0 Release checklist steps 8 and 9: VERSION (3, 3, 0) with PRE_RELEASE "dev", DEFAULT_BASELINE 3.2.0, a 3.3.0 Unreleased entry in the release log. Step 7 now names the milestone for the next minor (3.3) rather than "Next Release", and selects the closing milestone by its minor title, which is how milestones are titled. Co-Authored-By: Claude Opus 5.5 --- AGENTS.md | 9 ++++++--- docs/release_log.rst | 4 ++++ nameparser/_version.py | 10 +++++----- tools/differential/compare.py | 2 +- 4 files changed, 16 insertions(+), 9 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 0048b2eed..2d520f1c0 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -209,10 +209,13 @@ uv run sphinx-build -b html docs dist/docs # 4. git commit + git tag -a vX.Y.Z -m "Release X.Y.Z" # 5. git push origin master && git push origin vX.Y.Z ← tag must be pushed separately before gh release create # 6. gh release create vX.Y.Z --title "vX.Y.Z" --notes "..." -# 7. Close the vX.Y.Z milestone and create a new "Next Release" one: -# MILESTONE=$(gh api repos/derek73/python-nameparser/milestones --jq '.[] | select(.title=="vX.Y.Z") | .number') +# 7. Close the milestone of the minor just shipped and open one named for +# the next minor. Milestones are titled by minor, "X.Y" (3.2, 3.3), never +# "Next Release" (decided 2026-11-22), so the PRs of a cycle carry its +# number from the start. For 3.2.0: +# MILESTONE=$(gh api repos/derek73/python-nameparser/milestones --jq '.[] | select(.title=="3.2") | .number') # gh api -X PATCH repos/derek73/python-nameparser/milestones/$MILESTONE -f state=closed -# gh api -X POST repos/derek73/python-nameparser/milestones -f title="Next Release" +# gh api -X POST repos/derek73/python-nameparser/milestones -f title="3.3" # 8. Set DEFAULT_BASELINE in tools/differential/compare.py to the version # just released, so a bare compare.py measures against it. This runs # on the branch released from, so a release cut from a maintenance diff --git a/docs/release_log.rst b/docs/release_log.rst index 1bd9a5672..fdc8526a7 100644 --- a/docs/release_log.rst +++ b/docs/release_log.rst @@ -1,5 +1,9 @@ Release Log =========== +* 3.3.0 - Unreleased + + nameparser 3.3 is under development. + * 3.2.0 - November 22, 2026 **nameparser 3.2** adds four locale packs: ``locales.MS`` for Malay names, ``locales.MY`` for Burmese names, ``locales.NL`` for Dutch names and ``locales.PT_PT`` for names from Portugal. A second name written after ``@`` or ``urf`` is read as the nickname (``Rahim @ Jaki bin Osman``), ``a/l``, ``a/p`` and ``anak`` as patronymic particles, a job or degree written after a name and a comma as the title, and an Arabic title written short as the title. ``locales.HR``, ``locales.SL`` and ``locales.PT_BR`` now read two family names, and ``Parser.suggest()`` can suggest ``two_family_names`` for a list. A parse makes about a third fewer Python function calls than in 3.1, with no reading moved, and ``Lexicon.remove`` warns where an edit can take nothing. :doc:`migrate` lists the names whose reading moved, and which pickles load where. diff --git a/nameparser/_version.py b/nameparser/_version.py index a5db37eb3..cf042e129 100644 --- a/nameparser/_version.py +++ b/nameparser/_version.py @@ -4,16 +4,16 @@ #: #: Bumped when a cycle OPENS, not when it ships, so the tree says what #: it is building. Note the cost of the tuple being purely numeric: it -#: cannot carry the dev marker, so `VERSION >= (3, 2, 0)` is already -#: true here while 3.2.0 is unreleased. Compare `__version__` instead +#: cannot carry the dev marker, so `VERSION >= (3, 3, 0)` is already +#: true here while 3.3.0 is unreleased. Compare `__version__` instead #: where that distinction matters. -VERSION = (3, 2, 0) +VERSION = (3, 3, 0) #: PEP 440 pre-release/dev segment appended to the numeric version, or #: "" for a final release. Joined WITHOUT a dot ("2.0.0rc1", not #: "2.0.0.rc1"); setuptools reads __version__ as the package version. #: #: "dev" through the cycle, cleared at release. It normalizes to -#: 3.2.0.dev0, which sorts above 3.1.0 and BELOW 3.2.0, so an install +#: 3.3.0.dev0, which sorts above 3.2.0 and BELOW 3.3.0, so an install #: from master can never masquerade as the release it precedes. -PRE_RELEASE = "" +PRE_RELEASE = "dev" __version__ = ".".join(map(str, VERSION)) + PRE_RELEASE diff --git a/tools/differential/compare.py b/tools/differential/compare.py index bbb339b51..690e9df5f 100644 --- a/tools/differential/compare.py +++ b/tools/differential/compare.py @@ -34,7 +34,7 @@ from typing import NamedTuple HERE = Path(__file__).resolve().parent -DEFAULT_BASELINE = "3.1.0" +DEFAULT_BASELINE = "3.2.0" REPO_ROOT = HERE.parents[1]