Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 94d9075

Browse files
committed
BLD: add conda patch to generate a version file
1 parent a382319 commit 94d9075

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,3 +80,4 @@ setup.cfg
8080
.coverage
8181
.coverage.*
8282
cover/
83+
__conda_version__.txt

ci/conda_recipe/condaversion.patch

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
diff --git setup.py setup.py
2+
index 8af8b6d..4e4f9d2 100644
3+
--- setup.py
4+
+++ setup.py
5+
@@ -57,6 +57,9 @@
6+
import versioneer
7+
__version__ = versioneer.get_version()
8+
9+
+# For conda builds...
10+
+with open("__conda_version__.txt", "w") as f:
11+
+ f.write(__version__)
12+
13+
# These are the packages in the order we want to display them. This
14+
# list may contain strings to create section headers for the display.

0 commit comments

Comments
 (0)