Kaynağa Gözat

pkg: Some weird issues in versioneer
Seems newer version of versioneer escapes "*" incorrectly on Windows
for some reason.

Mikael Koli 4 yıl önce
ebeveyn
işleme
2966ecd133
2 değiştirilmiş dosya ile 3 ekleme ve 0 silme
  1. 1 0
      redmail/_version.py
  2. 2 0
      versioneer.py

+ 1 - 0
redmail/_version.py

@@ -232,6 +232,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, runner=run_command):
     if sys.platform == "win32":
         GITS = ["git.cmd", "git.exe"]
         TAG_PREFIX_REGEX = r"\*"
+        TAG_PREFIX_REGEX = r"*" #! NOTE: For some reason \* does not work 
 
     _, rc = runner(GITS, ["rev-parse", "--git-dir"], cwd=root,
                    hide_stderr=True)

+ 2 - 0
versioneer.py

@@ -648,6 +648,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, runner=run_command):
     if sys.platform == "win32":
         GITS = ["git.cmd", "git.exe"]
         TAG_PREFIX_REGEX = r"\*"
+        TAG_PREFIX_REGEX = r"*" #! NOTE: For some reason \* does not work 
 
     _, rc = runner(GITS, ["rev-parse", "--git-dir"], cwd=root,
                    hide_stderr=True)
@@ -1166,6 +1167,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, runner=run_command):
     if sys.platform == "win32":
         GITS = ["git.cmd", "git.exe"]
         TAG_PREFIX_REGEX = r"\*"
+        TAG_PREFIX_REGEX = r"*" #! NOTE: For some reason \* does not work 
 
     _, rc = runner(GITS, ["rev-parse", "--git-dir"], cwd=root,
                    hide_stderr=True)