summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2015-08-12 12:19:00 -0400
committerKali Kaneko <kali@leap.se>2015-08-12 12:19:00 -0400
commit4f0f6ec24e0e6e1d27509130c0aae3b818f19195 (patch)
treef93f2b0929c02cb5cd14195582a5d30ea58f2db8
parentbb808bb42046eb71411b2a4528e1820801428a7a (diff)
[bug] freeze also bitmask module version in sumo tarball
if __version__ is not properly assigned, provider tests were breaking when parsing BITMASK_VERSION (which is None, where a string is expected). - Resolves: #7322
-rwxr-xr-xsetup.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/setup.py b/setup.py
index 1e77ccf9..16438f8a 100755
--- a/setup.py
+++ b/setup.py
@@ -322,8 +322,13 @@ class cmd_sdist(versioneer_sdist):
src_path)
all_module_files = list_recursively(src_path)
self.filelist.extend(all_module_files)
+ module_ver = vdict[module]
freeze_pkg_ver(
- src_path + "/_version.py", vdict[module], "sumo")
+ src_path + "/_version.py",
+ module_ver, "%s-sumo" % module_ver)
+ freeze_pkg_ver(
+ "src/leap/bitmask/_version.py",
+ VERSION, "%s-sumo" % VERSION)
# In addition, we want the tarball/zipfile to have -SUMO in the
# name, and the unpacked directory to have -SUMO too. The easiest