summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorAaron Bohy <aab@odoo.com>2014-12-08 09:13:17 +0100
committerSimon Lejeune <sle@openerp.com>2014-12-09 12:16:06 +0100
commita700a1139ee19d71bc4669ff74bc53c87b38dc7b (patch)
tree2f5bb31f198d1f06efce0b81a5dbdbcca2117813 /setup
parent21fe55dfd25b959b61d1a97ff9c4335fa548c5da (diff)
[ADD] Packaging: also publish source dist .zip file
Diffstat (limited to 'setup')
-rwxr-xr-xsetup/package.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/setup/package.py b/setup/package.py
index 3047be9dc64..383b78b59b6 100755
--- a/setup/package.py
+++ b/setup/package.py
@@ -52,6 +52,7 @@ PUBLISH_DIRS = {
}
EXTENSIONS = [
'.tar.gz',
+ '.zip',
'.deb',
'.dsc',
'.changes',
@@ -269,8 +270,9 @@ def _prepare_build_dir(o):
shutil.move(i, join(o.build_dir, 'openerp/addons'))
def build_tgz(o):
- system(['python2', 'setup.py', '--quiet', 'sdist'], o.build_dir)
+ system(['python2', 'setup.py', 'sdist', '--quiet', '--formats=gztar,zip'], o.build_dir)
system(['cp', glob('%s/dist/odoo-*.tar.gz' % o.build_dir)[0], '%s/odoo.tar.gz' % o.build_dir])
+ system(['cp', glob('%s/dist/odoo-*.zip' % o.build_dir)[0], '%s/odoo.zip' % o.build_dir])
def build_deb(o):
deb = pexpect.spawn('dpkg-buildpackage -rfakeroot -k%s' % GPGID, cwd=o.build_dir)
@@ -451,7 +453,7 @@ def main():
try:
if not o.no_testing:
test_tgz(o)
- published_files = publish(o, 'tarball', ['odoo.tar.gz'])
+ published_files = publish(o, 'tarball', ['odoo.tar.gz', 'odoo.zip'])
except Exception, e:
print("Won't publish the tgz release.\n Exception: %s" % str(e))
if not o.no_debian: