File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 8
8
9
9
Unreleased
10
10
------------------
11
+ Fixed
12
+ - MacOS wheels had broken version metadata.
11
13
12
14
11.19.2 - 2020-12-30
13
15
--------------------
Original file line number Diff line number Diff line change 15
15
def get_version ():
16
16
"""Get the current version from a git tag, or by reading tcod/version.py"""
17
17
if os .environ .get ("TCOD_TAG" ):
18
+ # Force a tag version from an environment variable.
19
+ # Needed to work with GitHub Actions.
20
+ with open ("tcod/version.py" , "w" ) as f :
21
+ f .write ('__version__ = "%s"\n ' % os .environ ["TCOD_TAG" ])
18
22
return os .environ ["TCOD_TAG" ]
19
23
try :
20
24
tag = check_output (
@@ -33,7 +37,8 @@ def get_version():
33
37
version += ".dev%i" % commits_since_tag
34
38
35
39
# update tcod/version.py
36
- open ("tcod/version.py" , "w" ).write ('__version__ = "%s"\n ' % version )
40
+ with open ("tcod/version.py" , "w" ) as f :
41
+ f .write ('__version__ = "%s"\n ' % version )
37
42
return version
38
43
except :
39
44
try :
You can’t perform that action at this time.
0 commit comments