mirror of
https://github.com/TECHNOFAB11/bumpver.git
synced 2025-12-13 06:50:08 +01:00
reorg to avoid circular import
This commit is contained in:
parent
aafcc459f1
commit
9c2883d8ef
7 changed files with 172 additions and 171 deletions
|
|
@ -15,7 +15,6 @@ import datetime as dt
|
|||
|
||||
import logging
|
||||
|
||||
from .parse import PYCALVER_RE
|
||||
from . import version
|
||||
|
||||
log = logging.getLogger("pycalver.config")
|
||||
|
|
@ -179,7 +178,7 @@ def _parse_config(raw_cfg: RawConfig) -> Config:
|
|||
version_str = raw_cfg['current_version']
|
||||
version_str = raw_cfg['current_version'] = version_str.strip("'\" ")
|
||||
|
||||
if PYCALVER_RE.match(version_str) is None:
|
||||
if version.PYCALVER_RE.match(version_str) is None:
|
||||
raise ValueError(f"Invalid current_version = {version_str}")
|
||||
|
||||
pep440_version = version.pycalver_to_pep440(version_str)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue