Closed
Description
Bug Report
Description
I use python-semantic-release with a generated config via pyproject.toml.
In a test package directory I execute
semantic-release -vv --noop version --print
Expected behavior
Output of a successful noop run.
Actual behavior
[15:57:31] DEBUG [main.main] logging level set to: DEBUG main.py:124
🛡 You are running in no-operation mode, because the '--noop' flag was supplied
DEBUG [main.main] global cli options: GlobalCommandLineOptions(noop=True, verbosity=2, config_file='pyproject.toml', strict=False) main.py:139
INFO [util.load_raw_config_file] Loading configuration from pyproject.toml util.py:79
DEBUG [util.load_raw_config_file] Trying to parse configuration pyproject.toml in TOML format util.py:82
INFO [config.select_branch_options] Using group 'main' options, as '(main|master)' matches 'main' config.py:545
DEBUG [config.from_raw_config] hvcs token is not set config.py:697
WARNING [config.from_raw_config] Token value is missing! config.py:700
Changelog file destination must be inside of the repository directory.
As you can see, there is a problem with the location of the changelog file I am not able to fix.
Environment
- Operating System (w/ version): Windows 10
- Python version: WinPython 3.11.4
- Semantic-release version: 9.15.1
- Build tool (w/ version): hatch
Configuration
assets = []
build_command = "pip install hatch && hatch build"
build_command_env = []
commit_message = "{version}\n\nAutomatically generated by python-semantic-release"
commit_parser = "angular"
logging_use_named_masks = false
major_on_zero = true
allow_zero_version = true
no_git_verify = false
tag_format = "v{version}"
version_variable = []
version_toml = []
version_pattern = []
[tool.semantic_release.branches.main]
match = "(main|master)"
prerelease = false
prerelease_token = "rc"
[tool.semantic_release.changelog]
exclude_commit_patterns = []
mode = "init"
insertion_flag = "<!-- version list -->"
template_dir = "."
[tool.semantic_release.changelog.default_templates]
changelog_file = "CHANGELOG.md"
output_format = "md"
mask_initial_release = true
[tool.semantic_release.changelog.environment]
block_start_string = "{%"
block_end_string = "%}"
variable_start_string = "{{"
variable_end_string = "}}"
comment_start_string = "{#"
comment_end_string = "#}"
trim_blocks = false
lstrip_blocks = false
newline_sequence = "\n"
keep_trailing_newline = false
extensions = []
autoescape = false
[tool.semantic_release.commit_author]
env = "GIT_COMMIT_AUTHOR"
default = "semantic-release <semantic-release>"
[tool.semantic_release.commit_parser_options]
minor_tags = ["feat"]
patch_tags = ["fix", "perf"]
other_allowed_tags = ["build", "chore", "ci", "docs", "style", "refactor", "test"]
allowed_tags = ["feat", "fix", "perf", "build", "chore", "ci", "docs", "style", "refactor", "test"]
default_bump_level = 0
[tool.semantic_release.remote]
name = "origin"
type = "github"
token = { env = "GH_TOKEN" }
ignore_token_for_push = false
insecure = false
[tool.semantic_release.publish]
dist_glob_patterns = ["dist/*"]
upload_to_vcs_release = true