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

Skip to content

Commit 238de49

Browse files
committed
Setup.py: generate a version file for conda
1 parent a382319 commit 238de49

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-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

setup.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@
5757
import versioneer
5858
__version__ = versioneer.get_version()
5959

60+
# For conda builds...
61+
with open("__conda_version__.txt", "w") as f:
62+
f.write(__version__)
6063

6164
# These are the packages in the order we want to display them. This
6265
# list may contain strings to create section headers for the display.

0 commit comments

Comments
 (0)