python-semantic-release 9.12.1__tar.gz → 9.13.0__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.
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/MANIFEST.in +1 -4
- {python_semantic_release-9.12.1/python_semantic_release.egg-info → python_semantic_release-9.13.0}/PKG-INFO +1 -1
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/automatic-releases/github-actions.rst +5 -5
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/changelog_templates.rst +72 -42
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/commit-parsing.rst +46 -22
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/conf.py +1 -1
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/configuration.rst +1 -1
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/pyproject.toml +14 -11
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src/python_semantic_release.egg-info}/PKG-INFO +1 -1
- python_semantic_release-9.13.0/src/python_semantic_release.egg-info/SOURCES.txt +172 -0
- python_semantic_release-9.13.0/src/python_semantic_release.egg-info/entry_points.txt +3 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/__init__.py +1 -1
- python_semantic_release-9.13.0/src/semantic_release/__main__.py +42 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/cli/commands/main.py +4 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/commit_parser/angular.py +60 -33
- python_semantic_release-9.13.0/src/semantic_release/commit_parser/emoji.py +162 -0
- python_semantic_release-9.13.0/src/semantic_release/commit_parser/scipy.py +152 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/commit_parser/token.py +30 -0
- python_semantic_release-9.13.0/src/semantic_release/commit_parser/util.py +58 -0
- python_semantic_release-9.13.0/src/semantic_release/data/templates/angular/md/.components/changes.md.j2 +44 -0
- python_semantic_release-9.13.0/src/semantic_release/data/templates/angular/md/.components/macros.md.j2 +48 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/data/templates/angular/md/CHANGELOG.md.j2 +3 -2
- python_semantic_release-9.13.0/src/semantic_release/data/templates/angular/rst/.components/changes.rst.j2 +76 -0
- python_semantic_release-9.13.0/src/semantic_release/data/templates/angular/rst/.components/macros.rst.j2 +85 -0
- python_semantic_release-9.13.0/src/semantic_release/globals.py +6 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/hvcs/bitbucket.py +14 -1
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/hvcs/gitea.py +27 -2
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/hvcs/github.py +27 -2
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/hvcs/gitlab.py +28 -4
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/const.py +3 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/cmd_changelog/test_changelog.py +185 -195
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/cmd_publish/test_publish.py +4 -4
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/cmd_version/test_version.py +7 -7
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/cmd_version/test_version_build.py +5 -5
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/cmd_version/test_version_bump.py +68 -543
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/cmd_version/test_version_changelog.py +102 -91
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/cmd_version/test_version_github_actions.py +2 -2
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/cmd_version/test_version_print.py +19 -12
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/cmd_version/test_version_release_notes.py +2 -2
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/cmd_version/test_version_stamp.py +7 -9
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/cmd_version/test_version_strict.py +3 -3
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/test_help.py +4 -4
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/test_main.py +12 -12
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/fixtures/git_repo.py +430 -28
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/fixtures/repos/git_flow/repo_w_2_release_channels.py +175 -230
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/fixtures/repos/git_flow/repo_w_3_release_channels.py +222 -273
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/fixtures/repos/github_flow/__init__.py +1 -0
- python_semantic_release-9.13.0/tests/fixtures/repos/github_flow/repo_w_default_release.py +477 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/fixtures/repos/github_flow/repo_w_release_channels.py +172 -85
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/fixtures/repos/repo_initial_commit.py +17 -24
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/fixtures/repos/trunk_based_dev/repo_w_no_tags.py +23 -39
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/fixtures/repos/trunk_based_dev/repo_w_prereleases.py +34 -43
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/fixtures/repos/trunk_based_dev/repo_w_tags.py +28 -31
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/changelog/test_default_changelog.py +23 -15
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/changelog/test_release_history.py +36 -20
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/changelog/test_release_notes.py +9 -5
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/cli/test_config.py +2 -2
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/commit_parser/test_angular.py +43 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/commit_parser/test_emoji.py +43 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/commit_parser/test_scipy.py +69 -11
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/hvcs/test_bitbucket.py +2 -2
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/hvcs/test_gitea.py +4 -4
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/hvcs/test_github.py +4 -4
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/hvcs/test_gitlab.py +5 -5
- python_semantic_release-9.12.1/python_semantic_release.egg-info/SOURCES.txt +0 -185
- python_semantic_release-9.12.1/python_semantic_release.egg-info/entry_points.txt +0 -3
- python_semantic_release-9.12.1/semantic_release/__main__.py +0 -6
- python_semantic_release-9.12.1/semantic_release/commit_parser/emoji.py +0 -115
- python_semantic_release-9.12.1/semantic_release/commit_parser/scipy.py +0 -203
- python_semantic_release-9.12.1/semantic_release/commit_parser/util.py +0 -27
- python_semantic_release-9.12.1/semantic_release/data/templates/angular/md/.components/changes.md.j2 +0 -16
- python_semantic_release-9.12.1/semantic_release/data/templates/angular/rst/.components/changes.rst.j2 +0 -36
- python_semantic_release-9.12.1/semantic_release/data/templates/angular/rst/.components/macros.rst.j2 +0 -16
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/AUTHORS.rst +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/LICENSE +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/README.rst +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/Makefile +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/algorithm.rst +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/automatic-releases/cronjobs.rst +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/automatic-releases/index.rst +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/automatic-releases/travis.rst +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/commands.rst +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/contributing.rst +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/contributors.rst +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/index.rst +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/make.bat +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/migrating_from_v7.rst +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/multibranch_releases.rst +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/strict_mode.rst +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/troubleshooting.rst +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/setup.cfg +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/python_semantic_release.egg-info/dependency_links.txt +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/python_semantic_release.egg-info/requires.txt +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/python_semantic_release.egg-info/top_level.txt +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/changelog/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/changelog/context.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/changelog/release_history.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/changelog/template.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/cli/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/cli/changelog_writer.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/cli/cli_context.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/cli/commands/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/cli/commands/changelog.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/cli/commands/generate_config.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/cli/commands/publish.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/cli/commands/version.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/cli/config.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/cli/const.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/cli/github_actions_output.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/cli/masking_filter.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/cli/util.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/commit_parser/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/commit_parser/_base.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/commit_parser/tag.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/const.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/data/templates/angular/md/.components/changelog_header.md.j2 +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/data/templates/angular/md/.components/changelog_init.md.j2 +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/data/templates/angular/md/.components/changelog_update.md.j2 +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/data/templates/angular/md/.components/unreleased_changes.md.j2 +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/data/templates/angular/md/.components/versioned_changes.md.j2 +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/data/templates/angular/md/.release_notes.md.j2 +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/data/templates/angular/rst/.components/changelog_header.rst.j2 +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/data/templates/angular/rst/.components/changelog_init.rst.j2 +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/data/templates/angular/rst/.components/changelog_update.rst.j2 +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/data/templates/angular/rst/.components/unreleased_changes.rst.j2 +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/data/templates/angular/rst/.components/versioned_changes.rst.j2 +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/data/templates/angular/rst/CHANGELOG.rst.j2 +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/enums.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/errors.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/gitproject.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/helpers.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/hvcs/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/hvcs/_base.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/hvcs/remote_hvcs_base.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/hvcs/token_auth.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/hvcs/util.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/version/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/version/algorithm.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/version/declaration.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/version/translator.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0/src}/semantic_release/version/version.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/conftest.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/cmd_changelog/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/cmd_config/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/cmd_config/test_generate_config.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/cmd_publish/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/cmd_version/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/e2e/conftest.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/fixtures/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/fixtures/commit_parsers.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/fixtures/example_project.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/fixtures/repos/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/fixtures/repos/git_flow/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/fixtures/repos/trunk_based_dev/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/fixtures/scipy.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/conftest.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/changelog/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/changelog/test_changelog_context.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/changelog/test_template.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/changelog/test_template_render.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/cli/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/cli/test_github_actions_output.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/cli/test_masking_filter.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/cli/test_util.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/cli/test_version.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/commit_parser/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/commit_parser/test_parsed_commit.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/commit_parser/test_util.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/hvcs/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/hvcs/test__base.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/hvcs/test_token_auth.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/hvcs/test_util.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/test_helpers.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/version/__init__.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/version/test_algorithm.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/version/test_declaration.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/version/test_translator.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/unit/semantic_release/version/test_version.py +0 -0
- {python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/tests/util.py +0 -0
|
@@ -337,7 +337,7 @@ before the :ref:`version <cmd-version>` subcommand.
|
|
|
337
337
|
|
|
338
338
|
.. code:: yaml
|
|
339
339
|
|
|
340
|
-
- uses: python-semantic-release/python-semantic-release@v9.
|
|
340
|
+
- uses: python-semantic-release/python-semantic-release@v9.13.0
|
|
341
341
|
with:
|
|
342
342
|
root_options: "-vv --noop"
|
|
343
343
|
|
|
@@ -684,7 +684,7 @@ to the GitHub Release Assets as well.
|
|
|
684
684
|
- name: Action | Semantic Version Release
|
|
685
685
|
id: release
|
|
686
686
|
# Adjust tag with desired version if applicable.
|
|
687
|
-
uses: python-semantic-release/python-semantic-release@v9.
|
|
687
|
+
uses: python-semantic-release/python-semantic-release@v9.13.0
|
|
688
688
|
with:
|
|
689
689
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
690
690
|
git_committer_name: "github-actions"
|
|
@@ -744,7 +744,7 @@ The equivalent GitHub Action configuration would be:
|
|
|
744
744
|
|
|
745
745
|
- name: Action | Semantic Version Release
|
|
746
746
|
# Adjust tag with desired version if applicable.
|
|
747
|
-
uses: python-semantic-release/python-semantic-release@v9.
|
|
747
|
+
uses: python-semantic-release/python-semantic-release@v9.13.0
|
|
748
748
|
with:
|
|
749
749
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
750
750
|
force: patch
|
|
@@ -772,13 +772,13 @@ Publish Action.
|
|
|
772
772
|
.. code:: yaml
|
|
773
773
|
|
|
774
774
|
- name: Release Project 1
|
|
775
|
-
uses: python-semantic-release/python-semantic-release@v9.
|
|
775
|
+
uses: python-semantic-release/python-semantic-release@v9.13.0
|
|
776
776
|
with:
|
|
777
777
|
directory: ./project1
|
|
778
778
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
779
779
|
|
|
780
780
|
- name: Release Project 2
|
|
781
|
-
uses: python-semantic-release/python-semantic-release@v9.
|
|
781
|
+
uses: python-semantic-release/python-semantic-release@v9.13.0
|
|
782
782
|
with:
|
|
783
783
|
directory: ./project2
|
|
784
784
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
{python_semantic_release-9.12.1 → python_semantic_release-9.13.0}/docs/changelog_templates.rst
RENAMED
|
@@ -512,60 +512,72 @@ the ``context`` object has the following attributes:
|
|
|
512
512
|
Release History
|
|
513
513
|
"""""""""""""""
|
|
514
514
|
|
|
515
|
-
A
|
|
515
|
+
A :py:class:`ReleaseHistory <semantic_release.changelog.release_history.ReleaseHistory>`
|
|
516
|
+
object has two attributes: ``released`` and ``unreleased``.
|
|
516
517
|
|
|
517
518
|
The ``unreleased`` attribute is of type ``Dict[str, List[ParseResult]]``. Each commit
|
|
518
519
|
in the current branch's commit history since the last release on this branch is grouped
|
|
519
|
-
by the ``type`` attribute of the
|
|
520
|
-
|
|
521
|
-
|
|
520
|
+
by the ``type`` attribute of the
|
|
521
|
+
:py:class:`ParsedCommit <semantic_release.commit_parser.token.ParsedCommit>`
|
|
522
|
+
returned by the commit parser, or if the parser returned a
|
|
523
|
+
:py:class:`ParseError <semantic_release.commit_parser.token.ParseError>`
|
|
524
|
+
then the result is grouped under the ``"unknown"`` key.
|
|
522
525
|
|
|
523
526
|
For this reason, every element of ``ReleaseHistory.unreleased["unknown"]`` is a
|
|
524
|
-
|
|
525
|
-
is of type
|
|
527
|
+
:py:class:`ParseError <semantic_release.commit_parser.token.ParseError>`, and
|
|
528
|
+
every element of every other value in ``ReleaseHistory.unreleased`` is of type
|
|
529
|
+
:py:class:`ParsedCommit <semantic_release.commit_parser.token.ParsedCommit>`.
|
|
526
530
|
|
|
527
531
|
Typically, commit types will be ``"feature"``, ``"fix"``, ``"breaking"``, though the
|
|
528
532
|
specific types are determined by the parser. For example, the
|
|
529
|
-
:py:class:`semantic_release.commit_parser.EmojiCommitParser
|
|
530
|
-
representation of the emoji corresponding to the most significant change
|
|
531
|
-
in a commit (e.g. ``":boom:"``) as the different commit types. As a template
|
|
532
|
-
you are free to
|
|
533
|
+
:py:class:`EmojiCommitParser <semantic_release.commit_parser.emoji.EmojiCommitParser>`
|
|
534
|
+
uses a textual representation of the emoji corresponding to the most significant change
|
|
535
|
+
introduced in a commit (e.g. ``":boom:"``) as the different commit types. As a template
|
|
536
|
+
author, you are free to customize how these are presented in the rendered template.
|
|
533
537
|
|
|
534
538
|
.. note::
|
|
535
539
|
If you are using a custom commit parser following the guide at
|
|
536
540
|
:ref:`commit-parser-writing-your-own-parser`, your custom implementations of
|
|
537
|
-
:py:class:`
|
|
538
|
-
|
|
539
|
-
|
|
541
|
+
:py:class:`ParseResult <semantic_release.commit_parser.token.ParseResult>`,
|
|
542
|
+
:py:class:`ParseError <semantic_release.commit_parser.token.ParseError>`
|
|
543
|
+
and :py:class:`ParsedCommit <semantic_release.commit_parser.token.ParsedCommit>`
|
|
544
|
+
will be used in place of the built-in types.
|
|
540
545
|
|
|
541
546
|
The ``released`` attribute is of type ``Dict[Version, Release]``. The keys of this
|
|
542
547
|
dictionary correspond to each version released within this branch's history, and
|
|
543
|
-
are of type
|
|
544
|
-
render these as the Git tag that they correspond to
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
``elements``
|
|
549
|
-
of
|
|
550
|
-
|
|
548
|
+
are of type :py:class:`Version <semantic_release.version.version.Version>`. You can
|
|
549
|
+
use the ``as_tag()`` method to render these as the Git tag that they correspond to
|
|
550
|
+
inside your template.
|
|
551
|
+
|
|
552
|
+
A :py:class:`Release <semantic_release.changelog.release_history.Release>`object
|
|
553
|
+
has an ``elements`` attribute, which has the same structure as the ``unreleased``
|
|
554
|
+
attribute of a
|
|
555
|
+
:py:class:`ReleaseHistory <semantic_release.changelog.release_history.ReleaseHistory>`;
|
|
556
|
+
that is, ``elements`` is of type ``Dict[str, List[ParseResult]]``, where every element
|
|
557
|
+
of ``elements["unknown"]`` is a
|
|
558
|
+
:py:class:`ParseError <semantic_release.commit_parser.token.ParseError>`, and elements
|
|
559
|
+
of every other value correspond to the ``type`` attribute of the
|
|
560
|
+
:py:class:`ParsedCommit <semantic_release.commit_parser.token.ParsedCommit>` returned
|
|
551
561
|
by the commit parser.
|
|
552
562
|
|
|
553
563
|
The commits represented within each ``ReleaseHistory.released[version].elements``
|
|
554
|
-
grouping are the commits which were made between
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
``
|
|
558
|
-
|
|
559
|
-
of ``Version(1, 1, 0)``.
|
|
564
|
+
grouping are the commits which were made between version and the release corresponding
|
|
565
|
+
to the previous version. That is, given two releases ``Version(1, 0, 0)`` and
|
|
566
|
+
``Version(1, 1, 0)``, ``ReleaseHistory.released[Version(1, 0, 0)].elements`` contains
|
|
567
|
+
only commits made after the release of ``Version(1, 0, 0)`` up to and including the
|
|
568
|
+
release of ``Version(1, 1, 0)``.
|
|
560
569
|
|
|
561
570
|
To maintain a consistent order of subsections in the changelog headed by the commit
|
|
562
|
-
type, it's recommended to use Jinja's
|
|
571
|
+
type, it's recommended to use Jinja's
|
|
572
|
+
`dictsort <https://jinja.palletsprojects.com/en/3.1.x/templates/#jinja-filters.dictsort>`_
|
|
563
573
|
filter.
|
|
564
574
|
|
|
565
575
|
Each ``Release`` object also has the following attributes:
|
|
566
576
|
|
|
567
577
|
* ``tagger: git.Actor``: The tagger who tagged the release.
|
|
578
|
+
|
|
568
579
|
* ``committer: git.Actor``: The committer who made the release commit.
|
|
580
|
+
|
|
569
581
|
* ``tagged_date: datetime``: The date and time at which the release was tagged.
|
|
570
582
|
|
|
571
583
|
.. seealso::
|
|
@@ -694,10 +706,12 @@ The filters provided vary based on the VCS configured and available features:
|
|
|
694
706
|
|
|
695
707
|
https://example.com/example/repo/compare/v1.0.0...v1.1.0
|
|
696
708
|
|
|
697
|
-
* ``issue_url (Callable[[IssueNumStr | IssueNumInt], UrlStr])``: given an issue
|
|
698
|
-
a URL to the issue on the remote vcs.
|
|
709
|
+
* ``issue_url (Callable[[IssueNumStr | IssueNumInt], UrlStr])``: given an issue
|
|
710
|
+
number, return a URL to the issue on the remote vcs. In v9.12.2, this filter
|
|
711
|
+
was updated to handle a string that has leading prefix symbols (ex. ``#29``)
|
|
712
|
+
and will strip the prefix before generating the URL.
|
|
699
713
|
|
|
700
|
-
*Introduced in v9.6.0.*
|
|
714
|
+
*Introduced in v9.6.0, Modified in v9.12.2.*
|
|
701
715
|
|
|
702
716
|
**Example Usage:**
|
|
703
717
|
|
|
@@ -712,36 +726,52 @@ The filters provided vary based on the VCS configured and available features:
|
|
|
712
726
|
* ``merge_request_url (Callable[[MergeReqStr | MergeReqInt], UrlStr])``: given a
|
|
713
727
|
merge request number, return a URL to the merge request in the remote. This is
|
|
714
728
|
an alias to the ``pull_request_url`` but only available for the VCS that uses
|
|
715
|
-
the merge request terminology.
|
|
729
|
+
the merge request terminology. In v9.12.2, this filter was updated to handle
|
|
730
|
+
a string that has leading prefix symbols (ex. ``#29``) and will strip the prefix
|
|
731
|
+
before generating the URL.
|
|
716
732
|
|
|
717
|
-
*Introduced in v9.6.0.*
|
|
733
|
+
*Introduced in v9.6.0, Modified in v9.12.2.*
|
|
718
734
|
|
|
719
735
|
**Example Usage:**
|
|
720
736
|
|
|
721
737
|
.. code:: jinja
|
|
722
738
|
|
|
723
|
-
{{
|
|
739
|
+
{{
|
|
740
|
+
"[%s](%s)" | format(
|
|
741
|
+
commit.linked_merge_request,
|
|
742
|
+
commit.linked_merge_request | merge_request_url
|
|
743
|
+
)
|
|
744
|
+
}}
|
|
745
|
+
{# commit.linked_merge_request is only available in v9.13.0 or greater #}
|
|
724
746
|
|
|
725
747
|
.. code:: markdown
|
|
726
748
|
|
|
727
|
-
https://example.com/example/repo/-/merge_requests/29
|
|
749
|
+
[#29](https://example.com/example/repo/-/merge_requests/29)
|
|
728
750
|
|
|
729
751
|
* ``pull_request_url (Callable[[PullReqStr | PullReqInt], UrlStr])``: given a pull
|
|
730
752
|
request number, return a URL to the pull request in the remote. For remote vcs'
|
|
731
753
|
that use merge request terminology, this filter is an alias to the
|
|
732
|
-
``merge_request_url`` filter function.
|
|
754
|
+
``merge_request_url`` filter function. In v9.12.2, this filter was updated to
|
|
755
|
+
handle a string that has leading prefix symbols (ex. ``#29``) and will strip
|
|
756
|
+
the prefix before generating the URL.
|
|
733
757
|
|
|
734
|
-
*Introduced in v9.6.0.*
|
|
758
|
+
*Introduced in v9.6.0, Modified in v9.12.2.*
|
|
735
759
|
|
|
736
760
|
**Example Usage:**
|
|
737
761
|
|
|
738
762
|
.. code:: jinja
|
|
739
763
|
|
|
740
|
-
{{
|
|
764
|
+
{{
|
|
765
|
+
"[%s](%s)" | format(
|
|
766
|
+
commit.linked_merge_request,
|
|
767
|
+
commit.linked_merge_request | pull_request_url
|
|
768
|
+
)
|
|
769
|
+
}}
|
|
770
|
+
{# commit.linked_merge_request is only available in v9.13.0 or greater #}
|
|
741
771
|
|
|
742
772
|
.. code:: markdown
|
|
743
773
|
|
|
744
|
-
https://example.com/example/repo/pull/29
|
|
774
|
+
[#29](https://example.com/example/repo/pull/29)
|
|
745
775
|
|
|
746
776
|
* ``read_file (Callable[[str], str])``: given a file path, read the file and
|
|
747
777
|
return the contents as a string. This function was added specifically to
|
|
@@ -877,12 +907,12 @@ exposed to the `Jinja`_ template when rendering the release notes.
|
|
|
877
907
|
|
|
878
908
|
Additionally, the following two globals are available to the template:
|
|
879
909
|
|
|
880
|
-
* ``release`` (:class:`Release <semantic_release.changelog.release_history.Release>`):
|
|
910
|
+
* ``release`` (:py:class:`Release <semantic_release.changelog.release_history.Release>`):
|
|
881
911
|
contains metadata about the content of the release, as parsed from commit logs
|
|
882
912
|
|
|
883
913
|
*Introduced in v8.0.0.*
|
|
884
914
|
|
|
885
|
-
* ``version`` (:class:`Version <semantic_release.version.version.Version>`): contains
|
|
915
|
+
* ``version`` (:py:class:`Version <semantic_release.version.version.Version>`): contains
|
|
886
916
|
metadata about the software version to be released and its ``git`` tag
|
|
887
917
|
|
|
888
918
|
*Introduced in v8.0.0.*
|
|
@@ -1009,7 +1039,7 @@ primarily you should review the embedded default templates in the PSR package
|
|
|
1009
1039
|
for a full example. You can find the default templates at `data/templates/`__
|
|
1010
1040
|
directory.
|
|
1011
1041
|
|
|
1012
|
-
__ https://github.com/python-semantic-release/python-semantic-release/tree/master/semantic_release/data/templates
|
|
1042
|
+
__ https://github.com/python-semantic-release/python-semantic-release/tree/master/src/semantic_release/data/templates
|
|
1013
1043
|
|
|
1014
1044
|
1. **Add a conditional to check the changelog_mode.** This will allow you
|
|
1015
1045
|
to determine if you should render the entire changelog or just the new
|
|
@@ -45,9 +45,12 @@ The following parsers are built in to Python Semantic Release:
|
|
|
45
45
|
``semantic_release.commit_parser.AngularCommitParser``
|
|
46
46
|
""""""""""""""""""""""""""""""""""""""""""""""""""""""
|
|
47
47
|
|
|
48
|
-
The default parser, which uses the
|
|
48
|
+
The default parser, which uses the
|
|
49
|
+
`Angular commit style <https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#commits>`_
|
|
50
|
+
with the following differences:
|
|
49
51
|
|
|
50
52
|
- Multiple ``BREAKING CHANGE:`` paragraphs are supported
|
|
53
|
+
|
|
51
54
|
- ``revert`` is not currently supported
|
|
52
55
|
|
|
53
56
|
The default configuration options for
|
|
@@ -222,26 +225,41 @@ as the commit history of a repository is being parsed. Python Semantic Release d
|
|
|
222
225
|
not raise an exception if a commit cannot be parsed.
|
|
223
226
|
|
|
224
227
|
Python Semantic Release uses :py:class:`semantic_release.ParsedCommit`
|
|
225
|
-
as the return type of a successful parse operation, and
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
*
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
*
|
|
228
|
+
as the return type of a successful parse operation, and
|
|
229
|
+
:py:class:`semantic_release.ParseError` as the return type from an unsuccessful
|
|
230
|
+
parse of a commit. :py:class:`semantic_release.ParsedCommit` is a `namedtuple`_
|
|
231
|
+
which has the following fields:
|
|
232
|
+
|
|
233
|
+
* **bump**: a :py:class:`semantic_release.LevelBump` indicating what type of change
|
|
234
|
+
this commit introduces.
|
|
235
|
+
|
|
236
|
+
* **type**: the *type* of the commit as a string, per the commit message style. This
|
|
237
|
+
is up to the parser to implement; for example, the
|
|
238
|
+
:py:class:`semantic_release.commit_parser.EmojiCommitParser` parser fills this field
|
|
239
|
+
with the emoji representing the most significant change for the commit. The field is
|
|
240
|
+
named after the representation in the Angular commit specification.
|
|
241
|
+
|
|
242
|
+
* **scope**: The scope, as a string, parsed from the commit. Commit styles which do
|
|
243
|
+
not have a meaningful concept of "scope" should fill this field with an empty string.
|
|
244
|
+
|
|
245
|
+
* **descriptions**: A list of paragraphs (strings) (delimited by a double-newline)
|
|
246
|
+
from the commit message.
|
|
247
|
+
|
|
248
|
+
* **breaking_descriptions**: A list of paragraphs (strings) which are deemed to
|
|
249
|
+
identify and describe breaking changes by the parser. An example would be a
|
|
250
|
+
paragraph which begins with the text ``BREAKING CHANGE:``.
|
|
251
|
+
|
|
252
|
+
* **commit**: The original commit object (a class defined by GitPython) that was parsed.
|
|
253
|
+
|
|
254
|
+
* **linked_merge_request**: A pull request or merge request definition, if the commit is
|
|
255
|
+
labeled with a pull/merge request number. This is a string value which includes any
|
|
256
|
+
special character prefix used by the VCS (e.g. ``#`` for GitLab, ``!`` for Bitbucket).
|
|
240
257
|
|
|
241
258
|
:py:class:`semantic_release.ParseError` is a `namedtuple`_ which has the following fields:
|
|
242
259
|
|
|
243
|
-
* commit
|
|
244
|
-
|
|
260
|
+
* **commit**: The original commit object that was parsed.
|
|
261
|
+
|
|
262
|
+
* **error**: A string with a meaningful error message as to why the commit parsing failed.
|
|
245
263
|
|
|
246
264
|
In addition, :py:class:`semantic_release.ParseError` implements an additional method, ``raise_error``.
|
|
247
265
|
This method raises a :py:class:`semantic_release.CommitParseError` with the message contained in the
|
|
@@ -252,10 +270,12 @@ attributes available, each implemented as a ``property`` which is computed, as a
|
|
|
252
270
|
convenience for template authors - therefore custom implementations should ensure
|
|
253
271
|
these properties can also be computed:
|
|
254
272
|
|
|
255
|
-
* message
|
|
256
|
-
this should be decoded to a ``UTF-8`` string.
|
|
257
|
-
|
|
258
|
-
*
|
|
273
|
+
* **message**: the ``message`` attribute of the ``commit``; where the message is of type
|
|
274
|
+
``bytes`` this should be decoded to a ``UTF-8`` string.
|
|
275
|
+
|
|
276
|
+
* **hexsha**: the ``hexsha`` attribute of the ``commit``, representing its hash.
|
|
277
|
+
|
|
278
|
+
* **short_hash**: the first 7 characters of the ``hexsha`` attribute of the ``commit``.
|
|
259
279
|
|
|
260
280
|
In Python Semantic Release, the class :py:class:`semantic_release.ParseResult`
|
|
261
281
|
is defined as ``ParseResultType[ParsedCommit, ParseError]``, as a convenient shorthand.
|
|
@@ -268,7 +288,9 @@ type returned on an unsuccessful parse of the ``commit``.
|
|
|
268
288
|
A custom parser result type, therefore, could be implemented as follows:
|
|
269
289
|
|
|
270
290
|
* ``MyParsedCommit`` subclasses ``ParsedCommit``
|
|
291
|
+
|
|
271
292
|
* ``MyParseError`` subclasses ``ParseError``
|
|
293
|
+
|
|
272
294
|
* ``MyParseResult = ParseResultType[MyParsedCommit, MyParseError]``
|
|
273
295
|
|
|
274
296
|
Internally, Python Semantic Release uses ``isinstance`` to determine if the result
|
|
@@ -326,8 +348,10 @@ the following:
|
|
|
326
348
|
|
|
327
349
|
* A class-level attribute ``parser_options``, which must be set to
|
|
328
350
|
:py:class:`semantic_release.ParserOptions` or a subclass of this.
|
|
351
|
+
|
|
329
352
|
* An ``__init__`` method which takes a single parameter, ``options``, that should be
|
|
330
353
|
of the same type as the class' ``parser_options`` attribute.
|
|
354
|
+
|
|
331
355
|
* A method, ``parse``, which takes a single parameter ``commit`` that is of type
|
|
332
356
|
`git.objects.commit.Commit <gitpython-commit-object>`_, and returns
|
|
333
357
|
:py:class:`semantic_release.token.ParseResult`, or a subclass of this.
|
|
@@ -38,7 +38,7 @@ htmlhelp_basename = "python-semantic-releasedoc"
|
|
|
38
38
|
|
|
39
39
|
docs_path = os.path.dirname(__file__)
|
|
40
40
|
apidoc_output_dir = os.path.join(docs_path, "api")
|
|
41
|
-
apidoc_module_dir = os.path.join(docs_path, "..", "
|
|
41
|
+
apidoc_module_dir = os.path.join(docs_path, "..", "src")
|
|
42
42
|
apidoc_separate_modules = True
|
|
43
43
|
apidoc_module_first = True
|
|
44
44
|
apidoc_extra_args = ["-d", "3"]
|
|
@@ -1252,7 +1252,7 @@ specified in ``file:variable`` format. For example:
|
|
|
1252
1252
|
|
|
1253
1253
|
[semantic_release]
|
|
1254
1254
|
version_variables = [
|
|
1255
|
-
"semantic_release/__init__.py:__version__",
|
|
1255
|
+
"src/semantic_release/__init__.py:__version__",
|
|
1256
1256
|
"docs/conf.py:version",
|
|
1257
1257
|
]
|
|
1258
1258
|
|
|
@@ -6,7 +6,7 @@ build-backend = "setuptools.build_meta"
|
|
|
6
6
|
|
|
7
7
|
[project]
|
|
8
8
|
name = "python-semantic-release"
|
|
9
|
-
version = "9.
|
|
9
|
+
version = "9.13.0"
|
|
10
10
|
description = "Automatic Semantic Versioning for Python projects"
|
|
11
11
|
requires-python = ">=3.8"
|
|
12
12
|
license = { text = "MIT" }
|
|
@@ -37,8 +37,8 @@ dependencies = [
|
|
|
37
37
|
]
|
|
38
38
|
|
|
39
39
|
[project.scripts]
|
|
40
|
-
semantic-release = "semantic_release.
|
|
41
|
-
psr = "semantic_release.
|
|
40
|
+
semantic-release = "semantic_release.__main__:main"
|
|
41
|
+
psr = "semantic_release.__main__:main"
|
|
42
42
|
|
|
43
43
|
[project.urls]
|
|
44
44
|
changelog = "https://github.com/python-semantic-release/python-semantic-release/blob/master/CHANGELOG.md"
|
|
@@ -83,8 +83,12 @@ mypy = [
|
|
|
83
83
|
]
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
[tool.setuptools
|
|
87
|
-
|
|
86
|
+
[tool.setuptools]
|
|
87
|
+
include-package-data = true
|
|
88
|
+
|
|
89
|
+
|
|
90
|
+
[tool.setuptools.packages.find]
|
|
91
|
+
where = ["src"]
|
|
88
92
|
|
|
89
93
|
|
|
90
94
|
[tool.pytest.ini_options]
|
|
@@ -145,7 +149,7 @@ commands =
|
|
|
145
149
|
[testenv:mypy]
|
|
146
150
|
deps = .[mypy]
|
|
147
151
|
commands =
|
|
148
|
-
mypy
|
|
152
|
+
mypy src/
|
|
149
153
|
|
|
150
154
|
[testenv:coverage]
|
|
151
155
|
deps = coverage[toml]
|
|
@@ -162,7 +166,6 @@ commands =
|
|
|
162
166
|
|
|
163
167
|
[tool.mypy]
|
|
164
168
|
python_version = "3.8"
|
|
165
|
-
packages = ["semantic_release"]
|
|
166
169
|
show_column_numbers = true
|
|
167
170
|
show_error_context = true
|
|
168
171
|
pretty = true
|
|
@@ -311,11 +314,11 @@ quote-style = "double"
|
|
|
311
314
|
# Imported but unused
|
|
312
315
|
"__init__.py" = ["F401"]
|
|
313
316
|
# pydantic 1 can't handle __future__ annotations-enabled syntax on < 3.10
|
|
314
|
-
"semantic_release/cli/config.py" = ["UP", "TCH"]
|
|
315
|
-
"semantic_release/commit_parser/*" = ["UP", "FA", "TCH"]
|
|
317
|
+
"src/semantic_release/cli/config.py" = ["UP", "TCH"]
|
|
318
|
+
"src/semantic_release/commit_parser/*" = ["UP", "FA", "TCH"]
|
|
316
319
|
# Method argument not used. This is mostly a base class
|
|
317
320
|
# anyway
|
|
318
|
-
"semantic_release/hvcs/_base.py" = ["ARG002"]
|
|
321
|
+
"src/semantic_release/hvcs/_base.py" = ["ARG002"]
|
|
319
322
|
# from tests.fixtures import * is deliberate
|
|
320
323
|
"tests/conftest.py" = ["F403"]
|
|
321
324
|
"tests/fixtures/**/__init__.py" = ["F403"]
|
|
@@ -394,7 +397,7 @@ build_command = """
|
|
|
394
397
|
python -m build .
|
|
395
398
|
"""
|
|
396
399
|
major_on_zero = true
|
|
397
|
-
version_variables = ["semantic_release/__init__.py:__version__"]
|
|
400
|
+
version_variables = ["src/semantic_release/__init__.py:__version__"]
|
|
398
401
|
version_toml = ["pyproject.toml:project.version"]
|
|
399
402
|
|
|
400
403
|
[tool.semantic_release.changelog]
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
AUTHORS.rst
|
|
2
|
+
LICENSE
|
|
3
|
+
MANIFEST.in
|
|
4
|
+
README.rst
|
|
5
|
+
pyproject.toml
|
|
6
|
+
docs/Makefile
|
|
7
|
+
docs/algorithm.rst
|
|
8
|
+
docs/changelog_templates.rst
|
|
9
|
+
docs/commands.rst
|
|
10
|
+
docs/commit-parsing.rst
|
|
11
|
+
docs/conf.py
|
|
12
|
+
docs/configuration.rst
|
|
13
|
+
docs/contributing.rst
|
|
14
|
+
docs/contributors.rst
|
|
15
|
+
docs/index.rst
|
|
16
|
+
docs/make.bat
|
|
17
|
+
docs/migrating_from_v7.rst
|
|
18
|
+
docs/multibranch_releases.rst
|
|
19
|
+
docs/strict_mode.rst
|
|
20
|
+
docs/troubleshooting.rst
|
|
21
|
+
docs/automatic-releases/cronjobs.rst
|
|
22
|
+
docs/automatic-releases/github-actions.rst
|
|
23
|
+
docs/automatic-releases/index.rst
|
|
24
|
+
docs/automatic-releases/travis.rst
|
|
25
|
+
src/python_semantic_release.egg-info/PKG-INFO
|
|
26
|
+
src/python_semantic_release.egg-info/SOURCES.txt
|
|
27
|
+
src/python_semantic_release.egg-info/dependency_links.txt
|
|
28
|
+
src/python_semantic_release.egg-info/entry_points.txt
|
|
29
|
+
src/python_semantic_release.egg-info/requires.txt
|
|
30
|
+
src/python_semantic_release.egg-info/top_level.txt
|
|
31
|
+
src/semantic_release/__init__.py
|
|
32
|
+
src/semantic_release/__main__.py
|
|
33
|
+
src/semantic_release/const.py
|
|
34
|
+
src/semantic_release/enums.py
|
|
35
|
+
src/semantic_release/errors.py
|
|
36
|
+
src/semantic_release/gitproject.py
|
|
37
|
+
src/semantic_release/globals.py
|
|
38
|
+
src/semantic_release/helpers.py
|
|
39
|
+
src/semantic_release/changelog/__init__.py
|
|
40
|
+
src/semantic_release/changelog/context.py
|
|
41
|
+
src/semantic_release/changelog/release_history.py
|
|
42
|
+
src/semantic_release/changelog/template.py
|
|
43
|
+
src/semantic_release/cli/__init__.py
|
|
44
|
+
src/semantic_release/cli/changelog_writer.py
|
|
45
|
+
src/semantic_release/cli/cli_context.py
|
|
46
|
+
src/semantic_release/cli/config.py
|
|
47
|
+
src/semantic_release/cli/const.py
|
|
48
|
+
src/semantic_release/cli/github_actions_output.py
|
|
49
|
+
src/semantic_release/cli/masking_filter.py
|
|
50
|
+
src/semantic_release/cli/util.py
|
|
51
|
+
src/semantic_release/cli/commands/__init__.py
|
|
52
|
+
src/semantic_release/cli/commands/changelog.py
|
|
53
|
+
src/semantic_release/cli/commands/generate_config.py
|
|
54
|
+
src/semantic_release/cli/commands/main.py
|
|
55
|
+
src/semantic_release/cli/commands/publish.py
|
|
56
|
+
src/semantic_release/cli/commands/version.py
|
|
57
|
+
src/semantic_release/commit_parser/__init__.py
|
|
58
|
+
src/semantic_release/commit_parser/_base.py
|
|
59
|
+
src/semantic_release/commit_parser/angular.py
|
|
60
|
+
src/semantic_release/commit_parser/emoji.py
|
|
61
|
+
src/semantic_release/commit_parser/scipy.py
|
|
62
|
+
src/semantic_release/commit_parser/tag.py
|
|
63
|
+
src/semantic_release/commit_parser/token.py
|
|
64
|
+
src/semantic_release/commit_parser/util.py
|
|
65
|
+
src/semantic_release/data/templates/angular/md/.release_notes.md.j2
|
|
66
|
+
src/semantic_release/data/templates/angular/md/CHANGELOG.md.j2
|
|
67
|
+
src/semantic_release/data/templates/angular/md/.components/changelog_header.md.j2
|
|
68
|
+
src/semantic_release/data/templates/angular/md/.components/changelog_init.md.j2
|
|
69
|
+
src/semantic_release/data/templates/angular/md/.components/changelog_update.md.j2
|
|
70
|
+
src/semantic_release/data/templates/angular/md/.components/changes.md.j2
|
|
71
|
+
src/semantic_release/data/templates/angular/md/.components/macros.md.j2
|
|
72
|
+
src/semantic_release/data/templates/angular/md/.components/unreleased_changes.md.j2
|
|
73
|
+
src/semantic_release/data/templates/angular/md/.components/versioned_changes.md.j2
|
|
74
|
+
src/semantic_release/data/templates/angular/rst/CHANGELOG.rst.j2
|
|
75
|
+
src/semantic_release/data/templates/angular/rst/.components/changelog_header.rst.j2
|
|
76
|
+
src/semantic_release/data/templates/angular/rst/.components/changelog_init.rst.j2
|
|
77
|
+
src/semantic_release/data/templates/angular/rst/.components/changelog_update.rst.j2
|
|
78
|
+
src/semantic_release/data/templates/angular/rst/.components/changes.rst.j2
|
|
79
|
+
src/semantic_release/data/templates/angular/rst/.components/macros.rst.j2
|
|
80
|
+
src/semantic_release/data/templates/angular/rst/.components/unreleased_changes.rst.j2
|
|
81
|
+
src/semantic_release/data/templates/angular/rst/.components/versioned_changes.rst.j2
|
|
82
|
+
src/semantic_release/hvcs/__init__.py
|
|
83
|
+
src/semantic_release/hvcs/_base.py
|
|
84
|
+
src/semantic_release/hvcs/bitbucket.py
|
|
85
|
+
src/semantic_release/hvcs/gitea.py
|
|
86
|
+
src/semantic_release/hvcs/github.py
|
|
87
|
+
src/semantic_release/hvcs/gitlab.py
|
|
88
|
+
src/semantic_release/hvcs/remote_hvcs_base.py
|
|
89
|
+
src/semantic_release/hvcs/token_auth.py
|
|
90
|
+
src/semantic_release/hvcs/util.py
|
|
91
|
+
src/semantic_release/version/__init__.py
|
|
92
|
+
src/semantic_release/version/algorithm.py
|
|
93
|
+
src/semantic_release/version/declaration.py
|
|
94
|
+
src/semantic_release/version/translator.py
|
|
95
|
+
src/semantic_release/version/version.py
|
|
96
|
+
tests/__init__.py
|
|
97
|
+
tests/conftest.py
|
|
98
|
+
tests/const.py
|
|
99
|
+
tests/util.py
|
|
100
|
+
tests/e2e/__init__.py
|
|
101
|
+
tests/e2e/conftest.py
|
|
102
|
+
tests/e2e/test_help.py
|
|
103
|
+
tests/e2e/test_main.py
|
|
104
|
+
tests/e2e/cmd_changelog/__init__.py
|
|
105
|
+
tests/e2e/cmd_changelog/test_changelog.py
|
|
106
|
+
tests/e2e/cmd_config/__init__.py
|
|
107
|
+
tests/e2e/cmd_config/test_generate_config.py
|
|
108
|
+
tests/e2e/cmd_publish/__init__.py
|
|
109
|
+
tests/e2e/cmd_publish/test_publish.py
|
|
110
|
+
tests/e2e/cmd_version/__init__.py
|
|
111
|
+
tests/e2e/cmd_version/test_version.py
|
|
112
|
+
tests/e2e/cmd_version/test_version_build.py
|
|
113
|
+
tests/e2e/cmd_version/test_version_bump.py
|
|
114
|
+
tests/e2e/cmd_version/test_version_changelog.py
|
|
115
|
+
tests/e2e/cmd_version/test_version_github_actions.py
|
|
116
|
+
tests/e2e/cmd_version/test_version_print.py
|
|
117
|
+
tests/e2e/cmd_version/test_version_release_notes.py
|
|
118
|
+
tests/e2e/cmd_version/test_version_stamp.py
|
|
119
|
+
tests/e2e/cmd_version/test_version_strict.py
|
|
120
|
+
tests/fixtures/__init__.py
|
|
121
|
+
tests/fixtures/commit_parsers.py
|
|
122
|
+
tests/fixtures/example_project.py
|
|
123
|
+
tests/fixtures/git_repo.py
|
|
124
|
+
tests/fixtures/scipy.py
|
|
125
|
+
tests/fixtures/repos/__init__.py
|
|
126
|
+
tests/fixtures/repos/repo_initial_commit.py
|
|
127
|
+
tests/fixtures/repos/git_flow/__init__.py
|
|
128
|
+
tests/fixtures/repos/git_flow/repo_w_2_release_channels.py
|
|
129
|
+
tests/fixtures/repos/git_flow/repo_w_3_release_channels.py
|
|
130
|
+
tests/fixtures/repos/github_flow/__init__.py
|
|
131
|
+
tests/fixtures/repos/github_flow/repo_w_default_release.py
|
|
132
|
+
tests/fixtures/repos/github_flow/repo_w_release_channels.py
|
|
133
|
+
tests/fixtures/repos/trunk_based_dev/__init__.py
|
|
134
|
+
tests/fixtures/repos/trunk_based_dev/repo_w_no_tags.py
|
|
135
|
+
tests/fixtures/repos/trunk_based_dev/repo_w_prereleases.py
|
|
136
|
+
tests/fixtures/repos/trunk_based_dev/repo_w_tags.py
|
|
137
|
+
tests/unit/__init__.py
|
|
138
|
+
tests/unit/conftest.py
|
|
139
|
+
tests/unit/semantic_release/__init__.py
|
|
140
|
+
tests/unit/semantic_release/test_helpers.py
|
|
141
|
+
tests/unit/semantic_release/changelog/__init__.py
|
|
142
|
+
tests/unit/semantic_release/changelog/test_changelog_context.py
|
|
143
|
+
tests/unit/semantic_release/changelog/test_default_changelog.py
|
|
144
|
+
tests/unit/semantic_release/changelog/test_release_history.py
|
|
145
|
+
tests/unit/semantic_release/changelog/test_release_notes.py
|
|
146
|
+
tests/unit/semantic_release/changelog/test_template.py
|
|
147
|
+
tests/unit/semantic_release/changelog/test_template_render.py
|
|
148
|
+
tests/unit/semantic_release/cli/__init__.py
|
|
149
|
+
tests/unit/semantic_release/cli/test_config.py
|
|
150
|
+
tests/unit/semantic_release/cli/test_github_actions_output.py
|
|
151
|
+
tests/unit/semantic_release/cli/test_masking_filter.py
|
|
152
|
+
tests/unit/semantic_release/cli/test_util.py
|
|
153
|
+
tests/unit/semantic_release/cli/test_version.py
|
|
154
|
+
tests/unit/semantic_release/commit_parser/__init__.py
|
|
155
|
+
tests/unit/semantic_release/commit_parser/test_angular.py
|
|
156
|
+
tests/unit/semantic_release/commit_parser/test_emoji.py
|
|
157
|
+
tests/unit/semantic_release/commit_parser/test_parsed_commit.py
|
|
158
|
+
tests/unit/semantic_release/commit_parser/test_scipy.py
|
|
159
|
+
tests/unit/semantic_release/commit_parser/test_util.py
|
|
160
|
+
tests/unit/semantic_release/hvcs/__init__.py
|
|
161
|
+
tests/unit/semantic_release/hvcs/test__base.py
|
|
162
|
+
tests/unit/semantic_release/hvcs/test_bitbucket.py
|
|
163
|
+
tests/unit/semantic_release/hvcs/test_gitea.py
|
|
164
|
+
tests/unit/semantic_release/hvcs/test_github.py
|
|
165
|
+
tests/unit/semantic_release/hvcs/test_gitlab.py
|
|
166
|
+
tests/unit/semantic_release/hvcs/test_token_auth.py
|
|
167
|
+
tests/unit/semantic_release/hvcs/test_util.py
|
|
168
|
+
tests/unit/semantic_release/version/__init__.py
|
|
169
|
+
tests/unit/semantic_release/version/test_algorithm.py
|
|
170
|
+
tests/unit/semantic_release/version/test_declaration.py
|
|
171
|
+
tests/unit/semantic_release/version/test_translator.py
|
|
172
|
+
tests/unit/semantic_release/version/test_version.py
|