commitizen 4.13.2__py3-none-any.whl → 4.13.3__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- commitizen/__version__.py +1 -1
- commitizen/version_schemes.py +3 -8
- {commitizen-4.13.2.dist-info → commitizen-4.13.3.dist-info}/METADATA +1 -1
- {commitizen-4.13.2.dist-info → commitizen-4.13.3.dist-info}/RECORD +6 -6
- {commitizen-4.13.2.dist-info → commitizen-4.13.3.dist-info}/WHEEL +1 -1
- {commitizen-4.13.2.dist-info → commitizen-4.13.3.dist-info}/entry_points.txt +0 -0
commitizen/__version__.py
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
__version__ = "4.13.
|
|
1
|
+
__version__ = "4.13.3"
|
commitizen/version_schemes.py
CHANGED
|
@@ -185,15 +185,10 @@ class BaseVersion(_BaseVersion):
|
|
|
185
185
|
# https://semver.org/#spec-item-11
|
|
186
186
|
if self.is_prerelease and self.pre:
|
|
187
187
|
prerelease = max(prerelease, self.pre[0])
|
|
188
|
+
if prerelease.startswith(self.pre[0]):
|
|
189
|
+
offset = self.pre[1] + 1
|
|
188
190
|
|
|
189
|
-
|
|
190
|
-
if self.is_prerelease and self.pre and prerelease.startswith(self.pre[0]):
|
|
191
|
-
prev_prerelease: int = self.pre[1]
|
|
192
|
-
new_prerelease_number = prev_prerelease + 1
|
|
193
|
-
else:
|
|
194
|
-
new_prerelease_number = offset
|
|
195
|
-
pre_version = f"{prerelease}{new_prerelease_number}"
|
|
196
|
-
return pre_version
|
|
191
|
+
return f"{prerelease}{offset}"
|
|
197
192
|
|
|
198
193
|
def generate_devrelease(self, devrelease: int | None) -> str:
|
|
199
194
|
"""Generate devrelease
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
commitizen/__init__.py,sha256=oOBG9f3DtTPmFnqXnwvuh1XIw9kqf_-cyrFYlRaZ1fQ,593
|
|
2
2
|
commitizen/__main__.py,sha256=ythPim4R6rgC0zU9siklq1oSbkk2HlbiNpwwoegk8uE,71
|
|
3
|
-
commitizen/__version__.py,sha256=
|
|
3
|
+
commitizen/__version__.py,sha256=ifmXYNPbzO-heflRSezgn4Gzc-UlMJeh_1mBtlYRbHk,23
|
|
4
4
|
commitizen/bump.py,sha256=-C09y5sAlVPyWTbEgqZimQMlz6LL248Ht2Pv90Ks6Dg,4692
|
|
5
5
|
commitizen/changelog.py,sha256=ydaFUSHUBPpdNjw_yoPJ1_pr3AAr9rHS-NwP8gQDIUA,11278
|
|
6
6
|
commitizen/changelog_formats/__init__.py,sha256=ZkxdmGybxWTzQZbt5KTJdAdbdKx0-v3aXtNDC-efRQk,3369
|
|
@@ -65,8 +65,8 @@ commitizen/templates/CHANGELOG.adoc.j2,sha256=LIJZ1vBl2ZFq0hbORMjWi0DJtuYC7S3t8R
|
|
|
65
65
|
commitizen/templates/CHANGELOG.md.j2,sha256=MggRrhbL3EabwsH8v0oFMM8G296ATBzePaqumBvW2kc,405
|
|
66
66
|
commitizen/templates/CHANGELOG.rst.j2,sha256=XHh4a7S83Z5Vrd_0UaLDA1Bb7A82Px4eHcbHsZGKYF8,515
|
|
67
67
|
commitizen/templates/CHANGELOG.textile.j2,sha256=8JxCcDdgQUmNPxXFEv5IpbP_vcfvYCo5CSicNCZmFCY,404
|
|
68
|
-
commitizen/version_schemes.py,sha256=
|
|
69
|
-
commitizen-4.13.
|
|
70
|
-
commitizen-4.13.
|
|
71
|
-
commitizen-4.13.
|
|
72
|
-
commitizen-4.13.
|
|
68
|
+
commitizen/version_schemes.py,sha256=93Rqv0mmnuJ-c3UDhHhM-GElVzWcXdtHUbRy9xcbgdc,13213
|
|
69
|
+
commitizen-4.13.3.dist-info/WHEEL,sha256=5DEXXimM34_d4Gx1AuF9ysMr1_maoEtGKjaILM3s4w4,80
|
|
70
|
+
commitizen-4.13.3.dist-info/entry_points.txt,sha256=EpbOUAABRQCFhf2HFcmrJZLGsbB_MSJ-tFua-NxUCxE,1085
|
|
71
|
+
commitizen-4.13.3.dist-info/METADATA,sha256=HE8_gdq2yeLAL5P5EzW9fkTwZyV6drS2_pPwV_zuCes,13532
|
|
72
|
+
commitizen-4.13.3.dist-info/RECORD,,
|
|
File without changes
|