Skip to content

Commit f4780c6

Browse files
committed
fix: change deprecated value and bump versions
1 parent 35196da commit f4780c6

File tree

4 files changed

+725
-619
lines changed

4 files changed

+725
-619
lines changed

commitizen/exceptions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,9 @@ def from_str(cls, value: str) -> ExitCode:
4949

5050

5151
class CommitizenException(Exception):
52+
exit_code: ExitCode
53+
message: str
54+
5255
def __init__(self, *args: str, **kwargs: Any) -> None:
5356
self.output_method = kwargs.get("output_method") or out.error
5457
self.exit_code: ExitCode = self.__class__.exit_code

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ maintainers = [
88
{ name = "Axel H.", email = "noirbizarre@gmail.com" },
99
{ name = "Tim Hsiung", email = "bear890707@gmail.com" },
1010
]
11-
license = { file = "LICENSE" }
11+
license = "MIT"
12+
license-files = ["LICENSE"]
1213
readme = "docs/README.md"
1314
requires-python = ">=3.10,<4.0"
1415
dependencies = [
@@ -18,7 +19,7 @@ dependencies = [
1819
"decli (>=0.6.0,<1.0)",
1920
"colorama (>=0.4.1,<1.0)",
2021
"termcolor (>=1.1.0,<4.0.0)",
21-
"packaging>=19",
22+
"packaging>=26",
2223
"tomlkit (>=0.8.0,<1.0.0)",
2324
"jinja2>=2.10.3",
2425
"pyyaml>=3.08",
@@ -45,7 +46,6 @@ classifiers = [
4546
"Programming Language :: Python :: 3.13",
4647
"Programming Language :: Python :: 3.14",
4748
"Programming Language :: Python :: Implementation :: CPython",
48-
"License :: OSI Approved :: MIT License",
4949
]
5050

5151
[project.urls]
@@ -122,7 +122,7 @@ linters = [
122122
]
123123

124124
documentation = [
125-
"mkdocs>=1.4.2",
125+
"mkdocs>=1.4.2,<2",
126126
"mkdocs-git-revision-date-localized-plugin>=1.5.0",
127127
"mkdocs-material>=9.1.6",
128128
]
@@ -133,7 +133,7 @@ script = [
133133
]
134134

135135
[build-system]
136-
requires = ["uv_build >= 0.9.17, <0.10.0"]
136+
requires = ["uv_build >= 0.9.17, <0.12"]
137137
build-backend = "uv_build"
138138

139139

tests/commands/test_bump_command.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -654,9 +654,9 @@ def test_bump_with_git_to_stdout_arg(util: UtilFixture, capsys: pytest.CaptureFi
654654
"--yes",
655655
),
656656
],
657-
ids=lambda cmd_tuple: " ".join(["cz", *cmd_tuple])
658-
if isinstance(cmd_tuple, tuple)
659-
else cmd_tuple,
657+
ids=lambda cmd_tuple: (
658+
" ".join(["cz", *cmd_tuple]) if isinstance(cmd_tuple, tuple) else cmd_tuple
659+
),
660660
)
661661
def test_bump_changelog_command_commits_untracked_changelog_and_version_files(
662662
tmp_commitizen_project,

0 commit comments

Comments
 (0)