Skip to content

chore(release): keep semantic-release on 0.x series and revert version to 0.148.0#1674

Merged
bdraco merged 1 commit into
masterfrom
keep-0x-series-and-revert-version
May 15, 2026
Merged

chore(release): keep semantic-release on 0.x series and revert version to 0.148.0#1674
bdraco merged 1 commit into
masterfrom
keep-0x-series-and-revert-version

Conversation

@bdraco
Copy link
Copy Markdown
Member

@bdraco bdraco commented May 15, 2026

Summary

Keep master on the 0.x line. The 1.0.0 release was unintended and
was yanked from PyPI; the root cause was that master's
[tool.semantic_release] block was missing allow_zero_version = true,
so when python-semantic-release was upgraded to 10.x the next
release computed 0.148.01.0.0 (treating the 0.x line as
"initial development") instead of staying in 0.x.

The release-0.x branch already has the correct config — added
in 812a2b3 ("feat: trigger semantic releases for 0.x branch",
#1626). This PR forward-ports that fix to master and resets
master's version pointers back to the last intended release.

Details

  • pyproject.toml
    • version = "0.148.0" (reverted from 1.0.0).
    • Add allow_zero_version = true under [tool.semantic_release]
      so 0.x is treated as the active major; breaking-change commits
      bump 0.x.y instead of jumping to 1.0.0.
    • Add [tool.semantic_release.branches."release-0.x"] matcher
      and update the noop regex from (?!master$)
      (?!(master|release-0.x)$) so future releases off either
      branch stay in the 0.x line (and other branches stay
      prerelease-only).
  • src/zeroconf/__init__.py
    • __version__ = "0.148.0" (reverted from 1.0.0) so the
      runtime version string matches.

semantic-release reads version_toml / version_variables as
the source of truth for the current version and computes the next
version from commits since the previous release. After this PR
merges, the next release from master will be a 0.x bump computed
from 0.148.0 plus the conventional-commit history since then.

Test plan

  • pre-commit run --all-files passes (lint job is just
    pre-commit/action).
  • Diff is config + version pointers only — no source code or
    test changes — so the test matrix is a no-op.
  • Maintainer verifies the resulting next-version computation
    via semantic-release version --print (or equivalent
    dry-run) before merging, since this PR changes release
    behaviour.

Notes

  • The 1.0.0 git tag is left in place as a historical marker;
    the PyPI release is already yanked.
  • This PR does not touch CHANGELOG.md; semantic-release
    regenerates it on the next release.

The 1.0.0 release was unintended and was yanked from PyPI (see the
1.0.0 release notes). The root cause was that master's
`[tool.semantic_release]` was missing `allow_zero_version = true`,
so when python-semantic-release was upgraded to 10.x the next
release computed 0.148.0 -> 1.0.0 instead of staying within the
0.x line.

This change brings master's release config in line with the
release-0.x branch (commit 812a2b3, 'feat: trigger semantic
releases for 0.x branch'):

- Add `allow_zero_version = true` so 0.x is treated as the
  active major and breaking-change commits bump 0.x.y, not 1.0.0.
- Add the `release-0.x` branch matcher and exclude it from the
  `noop` (prerelease) match so future releases off either branch
  stay in the 0.x line.
- Reset `version` in pyproject.toml and `__version__` in
  src/zeroconf/__init__.py from 1.0.0 back to 0.148.0 (the last
  intended release) so the next release computes from 0.148.0.
@bdraco bdraco changed the title fix: keep semantic-release on 0.x series and revert version to 0.148.0 chore(release): keep semantic-release on 0.x series and revert version to 0.148.0 May 15, 2026
@codspeed-hq
Copy link
Copy Markdown

codspeed-hq Bot commented May 15, 2026

Merging this PR will not alter performance

✅ 6 untouched benchmarks


Comparing keep-0x-series-and-revert-version (1c0e5cc) with master (72a0152)

Open in CodSpeed

@codecov
Copy link
Copy Markdown

codecov Bot commented May 15, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 99.76%. Comparing base (72a0152) to head (1c0e5cc).
⚠️ Report is 4 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1674   +/-   ##
=======================================
  Coverage   99.76%   99.76%           
=======================================
  Files          33       33           
  Lines        3401     3401           
  Branches      461      461           
=======================================
  Hits         3393     3393           
  Misses          5        5           
  Partials        3        3           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bdraco bdraco merged commit cbdc404 into master May 15, 2026
39 checks passed
@bdraco bdraco deleted the keep-0x-series-and-revert-version branch May 15, 2026 20:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant