Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 238de49

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

File tree

Expand file treeCollapse file tree

2 files changed

+4
-0
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+4
-0
lines changed

‎.gitignore

Copy file name to clipboardExpand all lines: .gitignore
+1Lines 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

Copy file name to clipboardExpand all lines: setup.py
+3Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.