python-semantic-release 8.0.0a7__tar.gz → 8.0.0rc1__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 (108) hide show
  1. {python-semantic-release-8.0.0a7/python_semantic_release.egg-info → python-semantic-release-8.0.0rc1}/PKG-INFO +1 -1
  2. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/pyproject.toml +2 -2
  3. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1/python_semantic_release.egg-info}/PKG-INFO +1 -1
  4. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/__init__.py +1 -1
  5. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/cli/config.py +2 -2
  6. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/command_line/conftest.py +1 -1
  7. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/command_line/test_changelog.py +1 -1
  8. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/command_line/test_version.py +12 -3
  9. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/AUTHORS.rst +0 -0
  10. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/LICENSE +0 -0
  11. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/MANIFEST.in +0 -0
  12. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/README.rst +0 -0
  13. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/python_semantic_release.egg-info/SOURCES.txt +0 -0
  14. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/python_semantic_release.egg-info/dependency_links.txt +0 -0
  15. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/python_semantic_release.egg-info/entry_points.txt +0 -0
  16. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/python_semantic_release.egg-info/requires.txt +0 -0
  17. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/python_semantic_release.egg-info/top_level.txt +0 -0
  18. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/__main__.py +0 -0
  19. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/changelog/__init__.py +0 -0
  20. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/changelog/context.py +0 -0
  21. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/changelog/release_history.py +0 -0
  22. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/changelog/template.py +0 -0
  23. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/cli/__init__.py +0 -0
  24. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/cli/commands/__init__.py +0 -0
  25. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/cli/commands/changelog.py +0 -0
  26. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/cli/commands/generate_config.py +0 -0
  27. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/cli/commands/main.py +0 -0
  28. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/cli/commands/publish.py +0 -0
  29. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/cli/commands/version.py +0 -0
  30. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/cli/common.py +0 -0
  31. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/cli/const.py +0 -0
  32. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/cli/github_actions_output.py +0 -0
  33. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/cli/masking_filter.py +0 -0
  34. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/cli/util.py +0 -0
  35. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/commit_parser/__init__.py +0 -0
  36. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/commit_parser/_base.py +0 -0
  37. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/commit_parser/angular.py +0 -0
  38. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/commit_parser/emoji.py +0 -0
  39. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/commit_parser/scipy.py +0 -0
  40. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/commit_parser/tag.py +0 -0
  41. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/commit_parser/token.py +0 -0
  42. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/commit_parser/util.py +0 -0
  43. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/const.py +0 -0
  44. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/data/templates/CHANGELOG.md.j2 +0 -0
  45. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/data/templates/release_notes.md.j2 +0 -0
  46. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/enums.py +0 -0
  47. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/errors.py +0 -0
  48. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/helpers.py +0 -0
  49. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/hvcs/__init__.py +0 -0
  50. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/hvcs/_base.py +0 -0
  51. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/hvcs/gitea.py +0 -0
  52. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/hvcs/github.py +0 -0
  53. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/hvcs/gitlab.py +0 -0
  54. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/hvcs/token_auth.py +0 -0
  55. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/hvcs/util.py +0 -0
  56. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/version/__init__.py +0 -0
  57. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/version/algorithm.py +0 -0
  58. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/version/declaration.py +0 -0
  59. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/version/translator.py +0 -0
  60. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/semantic_release/version/version.py +0 -0
  61. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/setup.cfg +0 -0
  62. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/setup.py +0 -0
  63. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/command_line/__init__.py +0 -0
  64. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/command_line/test_generate_config.py +0 -0
  65. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/command_line/test_help.py +0 -0
  66. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/command_line/test_main.py +0 -0
  67. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/command_line/test_publish.py +0 -0
  68. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/fixtures/__init__.py +0 -0
  69. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/fixtures/commit_parsers.py +0 -0
  70. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/fixtures/example_project.py +0 -0
  71. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/fixtures/git_repo.py +0 -0
  72. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/fixtures/scipy.py +0 -0
  73. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/scenario/__init__.py +0 -0
  74. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/scenario/test_next_version.py +0 -0
  75. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/scenario/test_release_history.py +0 -0
  76. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/scenario/test_template_render.py +0 -0
  77. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/__init__.py +0 -0
  78. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/__init__.py +0 -0
  79. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/changelog/__init__.py +0 -0
  80. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/changelog/test_changelog_context.py +0 -0
  81. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/changelog/test_default_changelog.py +0 -0
  82. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/changelog/test_release_notes.py +0 -0
  83. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/changelog/test_template.py +0 -0
  84. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/cli/__init__.py +0 -0
  85. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/cli/test_config.py +0 -0
  86. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/cli/test_github_actions_output.py +0 -0
  87. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/cli/test_masking_filter.py +0 -0
  88. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/cli/test_version.py +0 -0
  89. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/commit_parser/__init__.py +0 -0
  90. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/commit_parser/helper.py +0 -0
  91. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/commit_parser/test_angular.py +0 -0
  92. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/commit_parser/test_emoji.py +0 -0
  93. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/commit_parser/test_scipy.py +0 -0
  94. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/commit_parser/test_tag.py +0 -0
  95. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/commit_parser/test_token.py +0 -0
  96. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/commit_parser/test_util.py +0 -0
  97. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/hvcs/__init__.py +0 -0
  98. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/hvcs/test__base.py +0 -0
  99. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/hvcs/test_gitea.py +0 -0
  100. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/hvcs/test_github.py +0 -0
  101. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/hvcs/test_gitlab.py +0 -0
  102. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/hvcs/test_token_auth.py +0 -0
  103. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/hvcs/test_util.py +0 -0
  104. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/version/__init__.py +0 -0
  105. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/version/test_algorithm.py +0 -0
  106. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/version/test_declaration.py +0 -0
  107. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/version/test_translator.py +0 -0
  108. {python-semantic-release-8.0.0a7 → python-semantic-release-8.0.0rc1}/tests/unit/semantic_release/version/test_version.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-semantic-release
3
- Version: 8.0.0a7
3
+ Version: 8.0.0rc1
4
4
  Summary: Automatic Semantic Versioning for Python projects
5
5
  Author-email: Rolf Erik Lekang <me@rolflekang.com>
6
6
  License: MIT
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
6
6
 
7
7
  [project]
8
8
  name = "python-semantic-release"
9
- version = "8.0.0-alpha.7"
9
+ version = "8.0.0-rc.1"
10
10
  description = "Automatic Semantic Versioning for Python projects"
11
11
  requires-python = ">=3.7"
12
12
  license = { text = "MIT" }
@@ -192,7 +192,7 @@ prerelease_token = "rc"
192
192
  [tool.semantic_release.branches."8.0.x"]
193
193
  match = "8.0.x"
194
194
  prerelease = true
195
- prerelease_token = "alpha"
195
+ prerelease_token = "rc"
196
196
 
197
197
  [tool.semantic_release.remote]
198
198
  name = "origin"
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-semantic-release
3
- Version: 8.0.0a7
3
+ Version: 8.0.0rc1
4
4
  Summary: Automatic Semantic Versioning for Python projects
5
5
  Author-email: Rolf Erik Lekang <me@rolflekang.com>
6
6
  License: MIT
@@ -23,7 +23,7 @@ from semantic_release.version import (
23
23
  tags_and_versions as tags_and_versions,
24
24
  )
25
25
 
26
- __version__ = "8.0.0-alpha.7"
26
+ __version__ = "8.0.0-rc.1"
27
27
 
28
28
 
29
29
  def setup_hook(argv: list[str]) -> None:
@@ -126,7 +126,7 @@ class PublishConfig(BaseModel):
126
126
 
127
127
 
128
128
  class RawConfig(BaseModel):
129
- assets: Tuple[str, ...] = ()
129
+ assets: List[str] = []
130
130
  branches: Dict[str, BranchConfig] = {"main": BranchConfig()}
131
131
  build_command: Optional[str] = None
132
132
  changelog: ChangelogConfig = ChangelogConfig()
@@ -217,7 +217,7 @@ class RuntimeContext:
217
217
  version_translator: VersionTranslator
218
218
  major_on_zero: bool
219
219
  prerelease: bool
220
- assets: Tuple[str, ...]
220
+ assets: List[str]
221
221
  commit_author: Actor
222
222
  commit_message: str
223
223
  changelog_excluded_commit_patterns: Tuple[re.Pattern[str], ...]
@@ -6,4 +6,4 @@ from click.testing import CliRunner
6
6
 
7
7
  @pytest.fixture
8
8
  def cli_runner() -> Generator[CliRunner, None, None]:
9
- yield CliRunner()
9
+ yield CliRunner(mix_stderr=False)
@@ -112,7 +112,7 @@ def test_changelog_release_tag_not_in_history(
112
112
 
113
113
  result = cli_runner.invoke(main, [changelog.name, *args])
114
114
  assert result.exit_code == 2
115
- assert "not in release history" in result.output.lower()
115
+ assert "not in release history" in result.stderr.lower()
116
116
 
117
117
 
118
118
  @pytest.mark.usefixtures("repo_with_single_branch_and_prereleases_angular_commits")
@@ -217,7 +217,7 @@ def test_version_print(
217
217
  assert result.exit_code == 0
218
218
  assert tags_before == tags_after
219
219
  assert head_before == head_after
220
- assert result.output.rstrip("\n") == expected_stdout
220
+ assert result.stdout.rstrip("\n") == expected_stdout
221
221
  dcmp = filecmp.dircmp(str(example_project.resolve()), tempdir)
222
222
  differing_files = flatten_dircmp(dcmp)
223
223
  assert not differing_files
@@ -241,7 +241,7 @@ def test_version_already_released_no_push(repo, cli_runner):
241
241
  # to indicate that no release will be made
242
242
  result = cli_runner.invoke(main, ["--strict", version.name, "--no-push"])
243
243
  assert result.exit_code == 2
244
- assert "no release will be made" in result.output.lower()
244
+ assert "no release will be made" in result.stderr.lower()
245
245
 
246
246
 
247
247
  @pytest.mark.parametrize(
@@ -455,7 +455,7 @@ def test_version_build_metadata_triggers_new_version(repo, cli_runner):
455
455
  main, ["--strict", version.name, "--no-push"]
456
456
  )
457
457
  assert no_metadata_result.exit_code == 2
458
- assert "no release will be made" in no_metadata_result.output.lower()
458
+ assert "no release will be made" in no_metadata_result.stderr.lower()
459
459
 
460
460
  metadata_suffix = "build.abc-12345"
461
461
  result = cli_runner.invoke(
@@ -465,6 +465,15 @@ def test_version_build_metadata_triggers_new_version(repo, cli_runner):
465
465
  assert repo.git.tag(l=f"*{metadata_suffix}")
466
466
 
467
467
 
468
+ def test_version_prints_current_version_if_no_new_version(
469
+ repo_with_git_flow_angular_commits, cli_runner
470
+ ):
471
+ result = cli_runner.invoke(main, [version.name, "--no-push"])
472
+ assert result.exit_code == 0
473
+ assert "no release will be made" in result.stderr.lower()
474
+ assert result.stdout == "1.2.0-alpha.2\n"
475
+
476
+
468
477
  @pytest.mark.parametrize("shell", ("/usr/bin/bash", "/usr/bin/zsh", "powershell"))
469
478
  def test_version_runs_build_command(
470
479
  repo_with_git_flow_angular_commits, cli_runner, example_pyproject_toml, shell