commitizen 4.19.2__py3-none-any.whl → 4.19.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 CHANGED
@@ -1 +1 @@
1
- __version__ = "4.19.2"
1
+ __version__ = "4.19.3"
@@ -18,7 +18,13 @@ class ScmProvider(VersionProvider):
18
18
  rules = TagRules.from_settings(self.config.settings)
19
19
  tags = get_tags(reachable_only=True)
20
20
  version_tags = rules.get_version_tags(tags)
21
- version = max((rules.extract_version(t) for t in version_tags), default=None)
21
+ # Floating tags (e.g. `v1.0` next to `v1.0.0`) compare equal. Among equal
22
+ # versions, prefer the most specific (longest) spelling.
23
+ version = max(
24
+ (rules.extract_version(t) for t in version_tags),
25
+ key=lambda v: (v, len(str(v))),
26
+ default=None,
27
+ )
22
28
  return str(version) if version is not None else "0.0.0"
23
29
 
24
30
  def set_version(self, version: str) -> None:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: commitizen
3
- Version: 4.19.2
3
+ Version: 4.19.3
4
4
  Summary: Python commitizen client tool
5
5
  Keywords: commitizen,conventional,commits,git
6
6
  Author: Santiago Fraire
@@ -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=CvFHe0QOxUnbCgl5Ka_G1CiQLjN5XlYkarfNU0RnU5E,23
3
+ commitizen/__version__.py,sha256=5Vi6BZz4a6oqrzQGjzmyTG83aQEsQ4phAok-gq778TM,23
4
4
  commitizen/bump.py,sha256=eSF3Fb-5IhkpRmPgbwpWco-772kD6UAa1sDfnBEN2hY,3086
5
5
  commitizen/changelog.py,sha256=U8XphsPUVhWpg9Ms1YIOybTlRNQAktVmAfqLyxDFfvc,11294
6
6
  commitizen/changelog_formats/__init__.py,sha256=ZkxdmGybxWTzQZbt5KTJdAdbdKx0-v3aXtNDC-efRQk,3369
@@ -56,7 +56,7 @@ commitizen/providers/composer_provider.py,sha256=ghBxspG_Be_O4g7QjuPFkzFVQSsOPDJ
56
56
  commitizen/providers/npm_provider.py,sha256=aJORJgSAcs6x57b7of--jjreY8IgCM46Q5LP9sJizQ4,3030
57
57
  commitizen/providers/pep621_provider.py,sha256=PS0IVJ-AE5w_QjANpx3J_D_IFmIJPQbvuQO2uldZy4U,214
58
58
  commitizen/providers/poetry_provider.py,sha256=_udptKdIvTPLvIj2NM12hSUyiSThX4RrTHcIq5kqt9E,590
59
- commitizen/providers/scm_provider.py,sha256=7c4rGqW99lVwyqZApRgHc-Upm-69mqd8uZ_s73LqGVE,879
59
+ commitizen/providers/scm_provider.py,sha256=GGsjoG5Y_STpWYvf9oLJUe7MymqIrYMra9vFSvPGuCQ,1105
60
60
  commitizen/providers/uv_provider.py,sha256=UgPtkAsX2HcP9-O6xJ2r-ArGSJz_j9Y5EXuh8-Hh4P4,1443
61
61
  commitizen/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
62
62
  commitizen/question.py,sha256=J6_fzWghr_irzpPUU5JUsIBgDHp4Adryx8XmZAo4Zj4,624
@@ -67,8 +67,8 @@ commitizen/templates/CHANGELOG.rst.j2,sha256=XHh4a7S83Z5Vrd_0UaLDA1Bb7A82Px4eHcb
67
67
  commitizen/templates/CHANGELOG.textile.j2,sha256=8JxCcDdgQUmNPxXFEv5IpbP_vcfvYCo5CSicNCZmFCY,404
68
68
  commitizen/version_increment.py,sha256=WKRvi8no-svlmU876REnqfggsXZFduPQ31mUvEaykvs,5113
69
69
  commitizen/version_schemes.py,sha256=_sm1whwldpZgqM7vdrnuGvI9nWikPJVEKm8AfHL-9vQ,13697
70
- commitizen-4.19.2.dist-info/licenses/LICENSE,sha256=fcwnXedHaDQQEjgNZZgiCm3fXZBrs99zmEtifqe-pE0,1065
71
- commitizen-4.19.2.dist-info/WHEEL,sha256=cmC5s21ojypbVslldL7IJq3hjZH-tINy4rziKePFsG0,81
72
- commitizen-4.19.2.dist-info/entry_points.txt,sha256=EpbOUAABRQCFhf2HFcmrJZLGsbB_MSJ-tFua-NxUCxE,1085
73
- commitizen-4.19.2.dist-info/METADATA,sha256=7-aNUhb_cQ-iV0OZNoudchcS6NcnJZymgKvqHAIwmAk,12299
74
- commitizen-4.19.2.dist-info/RECORD,,
70
+ commitizen-4.19.3.dist-info/licenses/LICENSE,sha256=fcwnXedHaDQQEjgNZZgiCm3fXZBrs99zmEtifqe-pE0,1065
71
+ commitizen-4.19.3.dist-info/WHEEL,sha256=si2p8vW03RnhyBnhWl4tj-ObJa78SpE-c9HsEtblGR0,80
72
+ commitizen-4.19.3.dist-info/entry_points.txt,sha256=EpbOUAABRQCFhf2HFcmrJZLGsbB_MSJ-tFua-NxUCxE,1085
73
+ commitizen-4.19.3.dist-info/METADATA,sha256=HLBEwf0vhzFp_xR9HcaXkUG1B06Lh5V6TKPXK9TYljk,12299
74
+ commitizen-4.19.3.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.12.23
2
+ Generator: uv 0.13.5
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any