diff --git a/doc/dev.md b/doc/dev.md index 49b13b7..00c6776 100644 --- a/doc/dev.md +++ b/doc/dev.md @@ -10,10 +10,11 @@ VCS = "git" style = "pep440" versionfile_source = "src/magicbag/_version.py" versionfile_build = "magicbag/_version.py" -tag_prefix = "v" +tag_prefix = "" parentdir_prefix = "magicbag-" ``` check source and build directory carefully +check tag_prefix not "v" ### setup.py config diff --git a/pyproject.toml b/pyproject.toml index 726f3c3..611543b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -37,7 +37,7 @@ VCS = "git" style = "pep440" versionfile_source = "src/magicbag/_version.py" versionfile_build = "magicbag/_version.py" -tag_prefix = "v" +tag_prefix = "" parentdir_prefix = "magicbag-" [tool.isort] diff --git a/src/magicbag/_version.py b/src/magicbag/_version.py index 1480217..9bcc537 100644 --- a/src/magicbag/_version.py +++ b/src/magicbag/_version.py @@ -44,7 +44,7 @@ def get_config(): cfg = VersioneerConfig() cfg.VCS = "git" cfg.style = "pep440" - cfg.tag_prefix = "v" + cfg.tag_prefix = "" cfg.parentdir_prefix = "magicbag-" cfg.versionfile_source = "src/magicbag/_version.py" cfg.verbose = False @@ -261,9 +261,6 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, runner=run_command): "describe", "--tags", "--dirty", "--always", "--long", "--match", f"{tag_prefix}[[:digit:]]*" ], cwd=root) - print(f'describe_out: {describe_out}') - print(f'rc: {rc}') - # --long was added in git-1.5.5 if describe_out is None: raise NotThisMethod("'git describe' failed") @@ -645,14 +642,11 @@ def get_versions(): "date": None} try: - # print(f'tag prefix:{cfg.tag_prefix}') pieces = git_pieces_from_vcs(cfg.tag_prefix, root, verbose) - # print(f"pieces: {pieces}") return render(pieces, cfg.style) except NotThisMethod: pass - print(f'cfg parent dir:{cfg.parentdir_prefix}') try: if cfg.parentdir_prefix: return versions_from_parentdir(cfg.parentdir_prefix, root, verbose)