diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2020-12-10 08:52:35 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2020-12-10 08:52:35 -0700 |
commit | d06d38c10080ebdbc928e69131116e6a9d45100d (patch) | |
tree | d421a7058f454ba80d031d1fcaa025b8ba5a98b9 /numpy/_version.py | |
parent | 91d9bbebc159ada6cccd0e1fcec1926e26b19c6f (diff) | |
download | numpy-d06d38c10080ebdbc928e69131116e6a9d45100d.tar.gz |
MAINT: Don't include "dirty" in versioneer generated versions.
We patch the LICENSE file for both sdist and wheel releases, making them
all "dirty", i.e., containing files that have not been committed. Having
"dirty" in the product name is bad marketing and the versioneer tool
does not have an option or style that will omit that bit of information,
so patch the versioneer files to make that tag an empty string.
Diffstat (limited to 'numpy/_version.py')
-rw-r--r-- | numpy/_version.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/numpy/_version.py b/numpy/_version.py index 73f9f5c7f..6605bf4af 100644 --- a/numpy/_version.py +++ b/numpy/_version.py @@ -236,7 +236,7 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command): # if there is a tag matching tag_prefix, this yields TAG-NUM-gHEX[-dirty] # if there isn't one, this yields HEX[-dirty] (no NUM) - describe_out, rc = run_command(GITS, ["describe", "--tags", "--dirty", + describe_out, rc = run_command(GITS, ["describe", "--tags", "--dirty=", "--always", "--long", "--match", "%s*" % tag_prefix], cwd=root) |