Skip to content

Commit 1c0e5cc

Browse files
committed
fix: keep semantic-release on 0.x series and revert version to 0.148.0
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.
1 parent 72a0152 commit 1c0e5cc

2 files changed

Lines changed: 7 additions & 3 deletions

File tree

‎pyproject.toml‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "poetry.core.masonry.api"
44

55
[project]
66
name = "zeroconf"
7-
version = "1.0.0"
7+
version = "0.148.0"
88
license = "LGPL-2.1-or-later"
99
description = "A pure python implementation of multicast DNS service discovery"
1010
readme = "README.rst"
@@ -58,6 +58,7 @@ version_variables = [
5858
]
5959
build_command = "pip install poetry && poetry build"
6060
tag_format = "{version}"
61+
allow_zero_version = true
6162

6263
[tool.semantic_release.changelog]
6364
exclude_commit_patterns = [
@@ -71,8 +72,11 @@ keep_trailing_newline = true
7172
[tool.semantic_release.branches.master]
7273
match = "master"
7374

75+
[tool.semantic_release.branches."release-0.x"]
76+
match = "release-0.x"
77+
7478
[tool.semantic_release.branches.noop]
75-
match = "(?!master$)"
79+
match = "(?!(master|release-0.x)$)"
7680
prerelease = true
7781

7882
[tool.poetry.dependencies]

‎src/zeroconf/__init__.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@
8888

8989
__author__ = "Paul Scott-Murphy, William McBrine"
9090
__maintainer__ = "Jakub Stasiak <[email protected]>"
91-
__version__ = "1.0.0"
91+
__version__ = "0.148.0"
9292
__license__ = "LGPL"
9393

9494

0 commit comments

Comments
 (0)