Skip to content

Commit 6a35b49

Browse files
derek73claude
andcommitted
Set the version to 2.0.0rc1 for the release candidate
_version.py could not express a PEP 440 pre-release: it built the string from a numeric tuple, so "2.0.0rc1" (no dot before rc) was unreachable. Split the pre-release segment into PRE_RELEASE, joined without a dot, and keep VERSION a pure numeric tuple so `nameparser.VERSION >= (2, 0, 0)` still works. Set PRE_RELEASE = "" for 2.0.0 final. Release log notes the rc1 up front: it is a pre-release, so a plain pip install skips it (needs --pre), and feedback goes to #284. The notes themselves describe 2.0.0 as a whole and stay under the "unreleased" heading until the final tag. Verified: __version__ == "2.0.0rc1" (packaging confirms is_prerelease), the wheel/sdist carry it, and twine check passes on both. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent f1e2cca commit 6a35b49

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

docs/release_log.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ Release Log
22
===========
33
* 2.0.0 - unreleased
44

5+
**2.0.0rc1 released 2026-07-23** for testing ahead of the final
6+
2.0.0. Install it with ``pip install --pre nameparser`` (a
7+
pre-release is not selected by a plain ``pip install``); please
8+
report anything the migration missed on `issue #284
9+
<https://github.com/derek73/python-nameparser/issues/284>`_. The
10+
notes below describe 2.0.0 as a whole.
11+
512
nameparser 2.0 adds a new parsing API alongside ``HumanName``.
613
``parse()`` returns an immutable ``ParsedName`` whose seven fields
714
are named for what they are (``given``, ``family``) rather than

nameparser/_version.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,9 @@
1-
VERSION = (1, 4, 0)
2-
__version__ = '.'.join(map(str, VERSION))
1+
#: Release version parts (major, minor, micro). VERSION stays a pure
2+
#: numeric tuple so `nameparser.VERSION >= (2, 0, 0)` keeps working; the
3+
#: pre-release segment lives separately.
4+
VERSION = (2, 0, 0)
5+
#: PEP 440 pre-release/dev segment appended to the numeric version, or
6+
#: "" for a final release. Joined WITHOUT a dot ("2.0.0rc1", not
7+
#: "2.0.0.rc1"); setuptools reads __version__ as the package version.
8+
PRE_RELEASE = "rc1"
9+
__version__ = ".".join(map(str, VERSION)) + PRE_RELEASE

0 commit comments

Comments
 (0)