+++ /dev/null
-global-include */templates/* */fixtures/* */static/*
-global-exclude */.DS_Store
-include pithos/settings.d/*
-prune docs
-prune other
'pypi': ['docs.dev.grnet.gr']
}
+
# coloured logging
notice = lambda x: sys.stdout.write(yellow(x) + "\n")
info = lambda x: sys.stdout.write(green(x) + "\n")
error = lambda x: sys.stdout.write(red(x) + "\n")
-
def dev():
env.develop = True
def install_pkg(p):
info("installing package: %s" % p)
with lcd(package_root(p)):
- print local('pwd');
if env.develop:
local("python setup.py develop")
else:
# Debian packaging helpers
#
+env.debian_branch = 'debian-0.8'
+
+def _last_commit(f):
+ return local("git rev-list --all --date-order --max-count=1 %s" % f,
+ capture=True).strip()
+
+def _diff_from_master(c,f):
+ return local("git log --oneline %s..master %s" \
+ " | wc -l" % (c, f), capture=True)
+
+def dch(p):
+ with co(env.debian_branch):
+ local("git merge master")
+ with lcd(package_root(p)):
+ local("ls .git || mkdir .git")
+
+ # check for new changes in package dir
+ diff = _diff_from_master(_last_commit("debian/changelog"), ".")
+ vercmd = "git describe --tags --abbrev=0 "\
+ " | sed -rn '\''s/^v(.*)/\\1/p'\''"
+ version = local(vercmd, capture=True)
+ if int(diff) > 0:
+ local("git-dch --debian-branch=%s --auto " \
+ "--spawn-editor=always -N%s" % (env.debian_branch, version))
+ local("git commit debian/changelog " \
+ "-m 'Updated %s changelog'" % p)
+
+ local("rm -r .git")
def builddeb(p, master="master", branch="debian-0.8"):
with lcd(package_root(p)):
+ local("git merge master")
with settings(warn_only=True):
- local("mkdir .git")
+ local("ls .git || mkdir .git")
local("python setup.py clean")
local("git add synnefo/versions/*.py -f")
local("git-buildpackage --git-upstream-branch=%s --git-debian-branch=%s \
--- /dev/null
+snf-pithos-app (0.8.2-1) UNRELEASED; urgency=low
+
+ * New upstream version.
+
+ -- Kostas Papadimitriou <kpap@grnet.gr> Fri, 13 Jan 2012 16:44:01 +0300
--- /dev/null
+Source: snf-pithos-app
+Section: python
+Priority: optional
+Maintainer: Vangelis Koukis <vkoukis@grnet.gr>
+Build-Depends: debhelper (>= 8), python-all (>= 2.5)
+Standards-Version: 3.9.2
+XS-Python-Version: >= 2.6
+Homepage: https://code.grnet.gr/projects/synnefo
+
+Package: snf-pithos-app
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}, snf-pithos-backend
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
+Description: Pithos web app
+
--- /dev/null
+Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174&view=co
+Upstream-Name: snf-pithos-app
+Upstream-Contact: GRNET development team <pithos@lists.grnet.gr>
+Source: https://code.grnet.gr/projects/pithos
+
+Files: *
+Copyright: Copyright (C) 2011, 2012 GRNET S.A.
+Licence: BSD-2-clause
+
+Licence: BSD-2-clause
+ Redistribution and use in source and binary forms, with or
+ without modification, are permitted provided that the following
+ conditions are met:
+ .
+ 1. Redistributions of source code must retain the above
+ copyright notice, this list of conditions and the following
+ disclaimer.
+ .
+ 2. Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials
+ provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+ .
+ The views and conclusions contained in the software and
+ documentation are those of the authors and should not be
+ interpreted as representing official policies, either expressed
+ or implied, of GRNET S.A.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/BSD'.
--- /dev/null
+etc/synnefo
--- /dev/null
+[DEFAULT]
+sign-tags = False
+pristine-tar = False
+
+[git-buildpackage]
+export-dir = ../../build-area/
+tarball-dir = ../../tarballs/
+debian-branch = debian-0.8
+upstream-branch = master
--- /dev/null
+#!/usr/bin/make -f
+
+%:
+ dh $@ --with python2
+
+package=snf-pithos-app
+
+override_dh_auto_install:
+ dh_auto_install
+
+ mkdir -p debian/$(package)/etc/synnefo
+
+ cp pithos/api/settings.py \
+ debian/$(package)/etc/synnefo/20-snf-pithos-app_api.conf; \
+ cp pithos/ui/settings.py \
+ debian/$(package)/etc/synnefo/20-snf-pithos-app_ui.conf; \
+
+ for py in $(shell pyversions -vr debian/control); do \
+ rm debian/$(package)/usr/lib/python$$py/*-packages/*-nspkg.pth; \
+ done
+
--- /dev/null
+3.0 (quilt)
--- /dev/null
+
+__version__ = ""
+__version_info__ = __version__.split(".")
+
\ No newline at end of file
--- /dev/null
+snf-pithos-backend (0.8.2-1) UNRELEASED; urgency=low
+
+ * New upstream version.
+
+ -- Kostas Papadimitriou <kpap@grnet.gr> Fri, 13 Jan 2012 16:44:01 +0300
--- /dev/null
+snf_pithos_backend.egg-info/*
--- /dev/null
+Source: snf-pithos-backend
+Section: python
+Priority: optional
+Maintainer: Vangelis Koukis <vkoukis@grnet.gr>
+Build-Depends: debhelper (>= 8), python-all (>= 2.5)
+Standards-Version: 3.9.2
+XS-Python-Version: >= 2.6
+Homepage: https://code.grnet.gr/projects/synnefo
+
+Package: snf-pithos-backend
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}, snf-common
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
+Description: Synnefo common package
+
--- /dev/null
+Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174&view=co
+Upstream-Name: snf-pithos-backend
+Upstream-Contact: GRNET development team <pithos@lists.grnet.gr>
+Source: https://code.grnet.gr/projects/pithos
+
+Files: *
+Copyright: Copyright (C) 2011, 2012 GRNET S.A.
+Licence: BSD-2-clause
+
+Licence: BSD-2-clause
+ Redistribution and use in source and binary forms, with or
+ without modification, are permitted provided that the following
+ conditions are met:
+ .
+ 1. Redistributions of source code must retain the above
+ copyright notice, this list of conditions and the following
+ disclaimer.
+ .
+ 2. Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials
+ provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+ .
+ The views and conclusions contained in the software and
+ documentation are those of the authors and should not be
+ interpreted as representing official policies, either expressed
+ or implied, of GRNET S.A.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/BSD'.
--- /dev/null
+etc/synnefo
--- /dev/null
+[DEFAULT]
+sign-tags = False
+pristine-tar = False
+
+[git-buildpackage]
+export-dir = ../../build-area/
+tarball-dir = ../../tarballs/
+debian-branch = debian-0.8
+upstream-branch = master
--- /dev/null
+#!/usr/bin/make -f
+
+%:
+ dh $@ --with python2
+
+package=snf-pithos-backend
+config_lvl=10
+
+override_dh_auto_install:
+ dh_auto_install
+
+ mkdir -p debian/$(package)/etc/synnefo
+
+ cp pithos/backends/settings.py \
+ debian/$(package)/etc/synnefo/10-snf-pithos-backend_backends.conf; \
+
+ for py in $(shell pyversions -vr debian/control); do \
+ rm debian/$(package)/usr/lib/python$$py/*-packages/*-nspkg.pth; \
+ done
+
--- /dev/null
+3.0 (quilt)
finally:
# Restore warnings.
warnings.filters = original_filters
-
+
return backend
--- /dev/null
+
+__version__ = ""
+__version_info__ = __version__.split(".")
+
\ No newline at end of file
--- /dev/null
+snf-pithos-lib (0.8.2-1) UNRELEASED; urgency=low
+
+ * New upstream version.
+
+ -- Kostas Papadimitriou <kpap@grnet.gr> Fri, 13 Jan 2012 16:44:01 +0300
--- /dev/null
+Source: snf-pithos-lib
+Section: python
+Priority: optional
+Maintainer: Vangelis Koukis <vkoukis@grnet.gr>
+Build-Depends: debhelper (>= 8), python-all (>= 2.5)
+Standards-Version: 3.9.2
+XS-Python-Version: >= 2.6
+Homepage: https://code.grnet.gr/projects/pithos
+
+Package: snf-pithos-lib
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
+Description: Pithos library
+
--- /dev/null
+Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174&view=co
+Upstream-Name: snf-pithos-lib
+Upstream-Contact: GRNET development team <pithos@lists.grnet.gr>
+Source: https://code.grnet.gr/projects/pithos
+
+Files: *
+Copyright: Copyright (C) 2011, 2012 GRNET S.A.
+Licence: BSD-2-clause
+
+Licence: BSD-2-clause
+ Redistribution and use in source and binary forms, with or
+ without modification, are permitted provided that the following
+ conditions are met:
+ .
+ 1. Redistributions of source code must retain the above
+ copyright notice, this list of conditions and the following
+ disclaimer.
+ .
+ 2. Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials
+ provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+ .
+ The views and conclusions contained in the software and
+ documentation are those of the authors and should not be
+ interpreted as representing official policies, either expressed
+ or implied, of GRNET S.A.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/BSD'.
--- /dev/null
+[DEFAULT]
+sign-tags = False
+pristine-tar = False
+
+[git-buildpackage]
+export-dir = ../../build-area/
+tarball-dir = ../../tarballs/
+debian-branch = debian-0.8
+upstream-branch = master
--- /dev/null
+#!/usr/bin/make -f
+
+%:
+ dh $@ --with python2
+
+package=snf-pithos-lib
+config_lvl=00
+
+override_dh_auto_install:
+ dh_auto_install
+
+ # this package provides the synnefo namespace __init__.py
+ for py in $(shell pyversions -vr debian/control); do \
+ cp pithos/__init__.py debian/$(package)/usr/lib/python$$py/*-packages/pithos/; \
+ done
+
+ for py in $(shell pyversions -vr debian/control); do \
+ rm debian/$(package)/usr/lib/python$$py/*-packages/*-nspkg.pth; \
+ done
+
--- /dev/null
+3.0 (quilt)
--- /dev/null
+
+__version__ = ""
+__version_info__ = __version__.split(".")
+
\ No newline at end of file
--- /dev/null
+snf-pithos-tools (0.8.2-1) UNRELEASED; urgency=low
+
+ * New upstream version.
+
+ -- Kostas Papadimitriou <kpap@grnet.gr> Fri, 13 Jan 2012 16:44:01 +0300
--- /dev/null
+Source: snf-pithos-tools
+Section: python
+Priority: optional
+Maintainer: Vangelis Koukis <vkoukis@grnet.gr>
+Build-Depends: debhelper (>= 8), python-all (>= 2.5)
+Standards-Version: 3.9.2
+XS-Python-Version: >= 2.6
+Homepage: https://code.grnet.gr/projects/synnefo
+
+Package: snf-pithos-tools
+Architecture: all
+Depends: ${misc:Depends}, ${python:Depends}, snf-pithos-lib
+Provides: ${python:Provides}
+XB-Python-Version: ${python:Versions}
+Description: Synnefo pithos tools
+
--- /dev/null
+Format: http://anonscm.debian.org/viewvc/dep/web/deps/dep5.mdwn?revision=174&view=co
+Upstream-Name: snf-pithos-tools
+Upstream-Contact: GRNET development team <pithos@lists.grnet.gr>
+Source: https://code.grnet.gr/projects/pithos
+
+Files: *
+Copyright: Copyright (C) 2011, 2012 GRNET S.A.
+Licence: BSD-2-clause
+
+Licence: BSD-2-clause
+ Redistribution and use in source and binary forms, with or
+ without modification, are permitted provided that the following
+ conditions are met:
+ .
+ 1. Redistributions of source code must retain the above
+ copyright notice, this list of conditions and the following
+ disclaimer.
+ .
+ 2. Redistributions in binary form must reproduce the above
+ copyright notice, this list of conditions and the following
+ disclaimer in the documentation and/or other materials
+ provided with the distribution.
+ .
+ THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
+ OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
+ CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
+ USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
+ AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
+ ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
+ POSSIBILITY OF SUCH DAMAGE.
+ .
+ The views and conclusions contained in the software and
+ documentation are those of the authors and should not be
+ interpreted as representing official policies, either expressed
+ or implied, of GRNET S.A.
+ .
+ On Debian systems, the full text of the GNU General Public
+ License version 2 can be found in the file
+ `/usr/share/common-licenses/BSD'.
--- /dev/null
+[DEFAULT]
+sign-tags = False
+pristine-tar = False
+
+[git-buildpackage]
+export-dir = ../../build-area/
+tarball-dir = ../../tarballs/
+debian-branch = debian-0.8
+upstream-branch = master
--- /dev/null
+#!/usr/bin/make -f
+
+%:
+ dh $@ --with python2
+
+package=snf-pithos-tools
+
+override_dh_auto_install:
+ dh_auto_install
+
+ for py in $(shell pyversions -vr debian/control); do \
+ rm debian/$(package)/usr/lib/python$$py/*-packages/*-nspkg.pth; \
+ done
+
--- /dev/null
+3.0 (quilt)
PACKAGES = find_packages(PACKAGES_ROOT)
# Package meta
-CLASSIFIERS = []
+CLASSIFIERS=[
+ 'Development Status :: 3 - Alpha',
+ 'Operating System :: OS Independent',
+ 'Programming Language :: Python',
+ 'Topic :: Utilities',
+ 'License :: OSI Approved :: BSD License',
+],
# Package requirements
INSTALL_REQUIRES = [