commitizen 4.1.0__tar.gz → 4.1.1__tar.gz

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.
Files changed (68) hide show
  1. {commitizen-4.1.0 → commitizen-4.1.1}/PKG-INFO +3 -3
  2. commitizen-4.1.1/commitizen/__version__.py +1 -0
  3. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/commands/bump.py +22 -12
  4. {commitizen-4.1.0 → commitizen-4.1.1}/pyproject.toml +2 -2
  5. commitizen-4.1.0/commitizen/__version__.py +0 -1
  6. {commitizen-4.1.0 → commitizen-4.1.1}/LICENSE +0 -0
  7. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/__init__.py +0 -0
  8. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/__main__.py +0 -0
  9. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/bump.py +0 -0
  10. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/changelog.py +0 -0
  11. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/changelog_formats/__init__.py +0 -0
  12. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/changelog_formats/asciidoc.py +0 -0
  13. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/changelog_formats/base.py +0 -0
  14. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/changelog_formats/markdown.py +0 -0
  15. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/changelog_formats/restructuredtext.py +0 -0
  16. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/changelog_formats/textile.py +0 -0
  17. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/cli.py +0 -0
  18. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/cmd.py +0 -0
  19. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/commands/__init__.py +0 -0
  20. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/commands/changelog.py +0 -0
  21. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/commands/check.py +0 -0
  22. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/commands/commit.py +0 -0
  23. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/commands/example.py +0 -0
  24. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/commands/info.py +0 -0
  25. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/commands/init.py +0 -0
  26. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/commands/list_cz.py +0 -0
  27. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/commands/schema.py +0 -0
  28. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/commands/version.py +0 -0
  29. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/config/__init__.py +0 -0
  30. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/config/base_config.py +0 -0
  31. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/config/json_config.py +0 -0
  32. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/config/toml_config.py +0 -0
  33. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/config/yaml_config.py +0 -0
  34. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/cz/__init__.py +0 -0
  35. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/cz/base.py +0 -0
  36. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/cz/conventional_commits/__init__.py +0 -0
  37. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/cz/conventional_commits/conventional_commits.py +0 -0
  38. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/cz/conventional_commits/conventional_commits_info.txt +0 -0
  39. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/cz/customize/__init__.py +0 -0
  40. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/cz/customize/customize.py +0 -0
  41. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/cz/customize/customize_info.txt +0 -0
  42. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/cz/exceptions.py +0 -0
  43. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/cz/jira/__init__.py +0 -0
  44. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/cz/jira/jira.py +0 -0
  45. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/cz/jira/jira_info.txt +0 -0
  46. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/cz/utils.py +0 -0
  47. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/defaults.py +0 -0
  48. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/exceptions.py +0 -0
  49. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/factory.py +0 -0
  50. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/git.py +0 -0
  51. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/hooks.py +0 -0
  52. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/out.py +0 -0
  53. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/providers/__init__.py +0 -0
  54. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/providers/base_provider.py +0 -0
  55. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/providers/cargo_provider.py +0 -0
  56. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/providers/commitizen_provider.py +0 -0
  57. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/providers/composer_provider.py +0 -0
  58. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/providers/npm_provider.py +0 -0
  59. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/providers/pep621_provider.py +0 -0
  60. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/providers/poetry_provider.py +0 -0
  61. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/providers/scm_provider.py +0 -0
  62. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/py.typed +0 -0
  63. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/templates/CHANGELOG.adoc.j2 +0 -0
  64. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/templates/CHANGELOG.md.j2 +0 -0
  65. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/templates/CHANGELOG.rst.j2 +0 -0
  66. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/templates/CHANGELOG.textile.j2 +0 -0
  67. {commitizen-4.1.0 → commitizen-4.1.1}/commitizen/version_schemes.py +0 -0
  68. {commitizen-4.1.0 → commitizen-4.1.1}/docs/README.md +0 -0
@@ -1,8 +1,7 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.3
2
2
  Name: commitizen
3
- Version: 4.1.0
3
+ Version: 4.1.1
4
4
  Summary: Python commitizen client tool
5
- Home-page: https://github.com/commitizen-tools/commitizen
6
5
  License: MIT
7
6
  Keywords: commitizen,conventional,commits,git
8
7
  Author: Santiago Fraire
@@ -34,6 +33,7 @@ Requires-Dist: questionary (>=2.0,<3.0)
34
33
  Requires-Dist: termcolor (>=1.1,<3)
35
34
  Requires-Dist: tomlkit (>=0.5.3,<1.0.0)
36
35
  Requires-Dist: typing-extensions (>=4.0.1,<5.0.0) ; python_version < "3.11"
36
+ Project-URL: Homepage, https://github.com/commitizen-tools/commitizen
37
37
  Description-Content-Type: text/markdown
38
38
 
39
39
  [![GitHub Workflow Status](https://img.shields.io/github/actions/workflow/status/commitizen-tools/commitizen/pythonpackage.yml?label=python%20package&logo=github&logoColor=white&style=flat-square)](https://github.com/commitizen-tools/commitizen/actions)
@@ -0,0 +1 @@
1
+ __version__ = "4.1.1"
@@ -66,9 +66,8 @@ class Bump:
66
66
  },
67
67
  }
68
68
  self.cz = factory.commiter_factory(self.config)
69
- self.changelog = arguments["changelog"] or self.config.settings.get(
70
- "update_changelog_on_bump"
71
- )
69
+ self.changelog_flag = arguments["changelog"]
70
+ self.changelog_config = self.config.settings.get("update_changelog_on_bump")
72
71
  self.changelog_to_stdout = arguments["changelog_to_stdout"]
73
72
  self.git_output_to_stderr = arguments["git_output_to_stderr"]
74
73
  self.no_verify = arguments["no_verify"]
@@ -207,17 +206,24 @@ class Bump:
207
206
  "--local-version cannot be combined with --build-metadata"
208
207
  )
209
208
 
210
- # If user specified changelog_to_stdout, they probably want the
211
- # changelog to be generated as well, this is the most intuitive solution
212
- self.changelog = self.changelog or bool(self.changelog_to_stdout)
213
-
214
209
  if get_next:
215
- if self.changelog:
210
+ # if trying to use --get-next, we should not allow --changelog or --changelog-to-stdout
211
+ if self.changelog_flag or bool(self.changelog_to_stdout):
216
212
  raise NotAllowed(
217
213
  "--changelog or --changelog-to-stdout is not allowed with --get-next"
218
214
  )
215
+ # --get-next is a special case, taking precedence over config for 'update_changelog_on_bump'
216
+ self.changelog_config = False
219
217
  # Setting dry_run to prevent any unwanted changes to the repo or files
220
218
  self.dry_run = True
219
+ else:
220
+ # If user specified changelog_to_stdout, they probably want the
221
+ # changelog to be generated as well, this is the most intuitive solution
222
+ self.changelog_flag = (
223
+ self.changelog_flag
224
+ or bool(self.changelog_to_stdout)
225
+ or self.changelog_config
226
+ )
221
227
 
222
228
  current_tag_version: str = bump.normalize_tag(
223
229
  current_version,
@@ -309,7 +315,7 @@ class Bump:
309
315
  )
310
316
 
311
317
  files: list[str] = []
312
- if self.changelog:
318
+ if self.changelog_flag:
313
319
  args = {
314
320
  "unreleased_version": new_tag_version,
315
321
  "template": self.template,
@@ -356,7 +362,9 @@ class Bump:
356
362
  new_tag_version=new_tag_version,
357
363
  message=message,
358
364
  increment=increment,
359
- changelog_file_name=changelog_cmd.file_name if self.changelog else None,
365
+ changelog_file_name=changelog_cmd.file_name
366
+ if self.changelog_flag
367
+ else None,
360
368
  )
361
369
 
362
370
  if is_files_only:
@@ -365,7 +373,7 @@ class Bump:
365
373
  # FIXME: check if any changes have been staged
366
374
  git.add(*files)
367
375
  c = git.commit(message, args=self._get_commit_args())
368
- if self.retry and c.return_code != 0 and self.changelog:
376
+ if self.retry and c.return_code != 0 and self.changelog_flag:
369
377
  # Maybe pre-commit reformatted some files? Retry once
370
378
  logger.debug("1st git.commit error: %s", c.err)
371
379
  logger.info("1st commit attempt failed; retrying once")
@@ -410,7 +418,9 @@ class Bump:
410
418
  current_tag_version=new_tag_version,
411
419
  message=message,
412
420
  increment=increment,
413
- changelog_file_name=changelog_cmd.file_name if self.changelog else None,
421
+ changelog_file_name=changelog_cmd.file_name
422
+ if self.changelog_flag
423
+ else None,
414
424
  )
415
425
 
416
426
  # TODO: For v3 output this only as diagnostic and remove this if
@@ -1,5 +1,5 @@
1
1
  [tool.commitizen]
2
- version = "4.1.0"
2
+ version = "4.1.1"
3
3
  tag_format = "v$version"
4
4
  version_files = [
5
5
  "pyproject.toml:version",
@@ -9,7 +9,7 @@ version_files = [
9
9
 
10
10
  [tool.poetry]
11
11
  name = "commitizen"
12
- version = "4.1.0"
12
+ version = "4.1.1"
13
13
  description = "Python commitizen client tool"
14
14
  authors = ["Santiago Fraire <santiwilly@gmail.com>"]
15
15
  license = "MIT"
@@ -1 +0,0 @@
1
- __version__ = "4.1.0"
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes