Skip to content

Commit c038be9

Browse files
authored
Merge pull request #515 from notoraptor/fix-version
Fix versionning for auto-generated conda packages
2 parents 8f21ba2 + 1097dc2 commit c038be9

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.appveyor.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ build: off
3333

3434
test_script:
3535
- cmd: for /f "tokens=*" %%i in ('python -c "import versioneer; print(versioneer.get_version())"') do set GPUARRAY_VERSION=%%i
36+
- cmd: echo %GPUARRAY_VERSION%
3637
- cmd: conda build conda
3738
- cmd: mkdir pkgs
3839
- cmd: xcopy "%CONDA_LOC%"\conda-bld\win-64\pygpu* pkgs\ /Y

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ build
33
Debug
44
Release
55
lib
6+
.idea
67
.*.sw[po]
78
*~
89
*.pyc

versioneer.py

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1046,10 +1046,15 @@ def git_pieces_from_vcs(tag_prefix, root, verbose, run_command=run_command):
10461046

10471047
# if there is a tag matching tag_prefix, this yields TAG-NUM-gHEX[-dirty]
10481048
# if there isn't one, this yields HEX[-dirty] (no NUM)
1049-
describe_out, rc = run_command(GITS, ["describe", "--tags", "--dirty",
1050-
"--always", "--long",
1051-
"--match", "%s*" % tag_prefix],
1052-
cwd=root)
1049+
if sys.platform == 'win32':
1050+
describe_out, rc = run_command(GITS, ["describe", "--tags", "--dirty",
1051+
"--always", "--long"],
1052+
cwd=root)
1053+
else:
1054+
describe_out, rc = run_command(GITS, ["describe", "--tags", "--dirty",
1055+
"--always", "--long",
1056+
"--match", "%s*" % tag_prefix],
1057+
cwd=root)
10531058
# --long was added in git-1.5.5
10541059
if describe_out is None:
10551060
raise NotThisMethod("'git describe' failed")

0 commit comments

Comments
 (0)