more vcs integration

This commit is contained in:
Manuel Barkhau 2018-11-11 15:15:14 +01:00
parent fc937ddf8d
commit 181da8c930
3 changed files with 24 additions and 9 deletions

View file

@ -119,6 +119,11 @@ def _parse_buffer(cfg_buffer: io.StringIO, config_filename: str = "<pycalver.cfg
if file_patterns is None:
return None
if tag and not commit:
log.error(f"Invalid configuration in {config_filename}")
log.error(" pycalver.commit = True required if pycalver.tag = True")
return None
cfg = Config(current_version, tag, commit, file_patterns)
log.debug(cfg._debug_str())