Commit e86cff8e authored by Kostas Papadimitriou's avatar Kostas Papadimitriou
Browse files

Updated fabfile

parent b8a658ab
......@@ -47,6 +47,11 @@ env.packages = ['snf-common', 'snf-app', 'snf-ganeti-tools', 'snf-webproject',
env.deb_packages = ['snf-common', 'snf-app', 'snf-ganeti-tools', 'snf-webproject']
env.capture = False
env.colors = True
env.pypi_root = 'pypi'
env.roledefs = {
'docs': ['docs.dev.grnet.gr'],
'pypi': ['docs.dev.grnet.gr']
}
# coloured logging
notice = lambda x: sys.stdout.write(yellow(x) + "\n")
......@@ -83,7 +88,7 @@ def build_pkg(p):
with lcd(package_root(p)):
with settings(warn_only=True):
local("rm -r dist build")
local("python setup.py sdist")
local("python setup.py egg_info -d sdist")
def install_pkg(p):
......@@ -180,3 +185,7 @@ def collectdebs():
for p in env.deb_packages:
local("cp %s/%s*.deb ./packages/" % (build_area, p))
@roles('pypi')
def uploadtars():
put("packages/*.tar.gz", 'www/pypi/')
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment