Commit 25630fcd authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Merge branch 'feature-ci' into develop

parents 907c106c a1e8c109
snf-astakos-app
snf-common
snf-cyclades-app
snf-cyclades-gtools
snf-pithos-app
snf-pithos-backend
snf-pithos-tools
snf-tools
snf-webproject
snf-quotaholder-app
snf-stats-app
#!/usr/bin/env sh
BUILD_NUMBER=$1
BUILDBOT_BUILD_DIR=buildpkg_debian
shift
TEMP_DIR=$(mktemp -d /tmp/devflow_autopkg_XXXXXXX)
# Create the packages
devflow-autopkg snapshot -b $TEMP_DIR $@
# MOVE the packages
mkdir -p buildpkg_debian/$BUILD_NUMBER
mv -n $TEMP_DIR/* $BUILDBOT_BUILD_DIR/$BUILD_NUMBER/
echo "Moved packages to: $(pwd)/$BUILDBOT_BUILD_DIR/$BUILD_NUMBER"
PROJECTS="\
snf-common\
snf-webproject\
snf-astakos-app\
snf-cyclades-app\
snf-cyclades-gtools\
snf-pithos-app\
snf-pithos-backend\
snf-pithos-tools\
snf-quotaholder-app\
snf-tools"
#!/usr/bin/env sh
. ./ci/config
for project in $PROJECTS; do
cd $project
python setup.py develop
cd -
done
#!/usr/bin/env sh
. ./ci/config
for project in $PROJECTS; do
pep8 --exclude=migrations,build $project
done
#!/usr/bin/env sh
. ./ci/config
for project in $PROJECTS; do
pylint --ignore=migrations --ignore=build $project/synnefo
done
#!/usr/bin/env sh
snf-manage test api db logic plankton vmapi --settings=synnefo.settings.test
[packages]
[[snf-common]]
version_file = "snf-common/synnefo/versions/common.py"
[[snf-webproject]]
version_file = "snf-webproject/synnefo/versions/webproject.py"
[[snf-astakos-app]]
version_file = "snf-astakos-app/astakos/version.py"
[[snf-cyclades-app]]
version_file = "snf-cyclades-app/synnefo/versions/app.py"
[[snf-cyclades-gtools]]
version_file = "snf-cyclades-gtools/synnefo/versions/ganeti.py"
[[snf-pithos-app]]
version_file = "snf-pithos-app/pithos/api/version.py"
[[snf-pithos-backend]]
version_file = "snf-pithos-backend/pithos/backends/version.py"
[[snf-pithos-tools]]
version_file = "snf-pithos-tools/pithos/tools/version.py"
[[snf-tools]]
version_file = "snf-tools/synnefo_tools/version.py"
[[snf-quotaholder-app]]
version_file = "snf-quotaholder-app/quotaholder_django/version.py"
......@@ -42,15 +42,8 @@ from fnmatch import fnmatchcase
from distutils.util import convert_path
from setuptools import setup, find_packages
from astakos import get_version
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
try:
# try to update the version file
from synnefo.util import version
version.update_version('astakos', 'version', HERE)
except ImportError:
pass
from astakos.version import __version__
......
......@@ -43,13 +43,6 @@ from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
try:
# try to update the version file
from synnefo.util.version import update_version
update_version('synnefo.versions', 'common', HERE)
except ImportError:
pass
from synnefo.versions.common import __version__
# Package info
......
......@@ -116,6 +116,6 @@ def update_version(module, name='version', root='.'):
import sys
paths = [root] + module.split(".") + ["%s.py" % name]
module_filename = os.path.join(*paths)
sys.stdout.write("WARNING: Can not update version because `devflow` is"
sys.stdout.write("WARNING: Cannot update version because `devflow` is"
" not installed. Please make sure to manually"
" update version file: '%s'\n" % module_filename)
......@@ -43,13 +43,6 @@ from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
try:
# try to update the version file
from synnefo.util.version import update_version
update_version('synnefo.versions', 'app', HERE)
except ImportError:
pass
from synnefo.versions.app import __version__
# Package info
......
......@@ -39,13 +39,6 @@ from setuptools import setup
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
try:
# try to update the version file
from synnefo.util.version import update_version
update_version('synnefo.versions', 'ganeti', HERE)
except ImportError:
pass
from synnefo.versions.ganeti import __version__
setup(
......
......@@ -42,12 +42,6 @@ from fnmatch import fnmatchcase
from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
try:
# try to update the version file
from synnefo.util import version
version.update_version('pithos.api', 'version', HERE)
except ImportError:
pass
from pithos.api.version import __version__
......
......@@ -42,12 +42,6 @@ from fnmatch import fnmatchcase
from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
try:
# try to update the version file
from synnefo.util import version
version.update_version('pithos.backends', 'version', HERE)
except ImportError:
pass
from pithos.backends.version import __version__
......
......@@ -44,12 +44,6 @@ from fnmatch import fnmatchcase
from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
try:
# try to update the version file
from synnefo.util import version
version.update_version('pithos.tools', 'version', HERE)
except ImportError:
pass
from pithos.tools.version import __version__
......
......@@ -37,19 +37,10 @@ distribute_setup.use_setuptools()
import os
from distutils.util import convert_path
from fnmatch import fnmatchcase
from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
try:
# try to update the version file
from synnefo.util.version import update_version
update_version('quotaholder_django', 'version', HERE)
except ImportError:
pass
from quotaholder_django.version import __version__
# Package info
......@@ -70,35 +61,34 @@ INSTALL_REQUIRES = [
]
setup(
name = 'snf-quotaholder-app',
version = VERSION,
license = 'BSD',
url = 'http://code.grnet.gr/',
description = SHORT_DESCRIPTION,
long_description=README + '\n\n' + CHANGES,
classifiers = CLASSIFIERS,
name='snf-quotaholder-app',
version=VERSION,
license='BSD',
url='http://code.grnet.gr/',
description=SHORT_DESCRIPTION,
long_description=README + '\n\n' + CHANGES,
classifiers=CLASSIFIERS,
author = 'Package author',
author_email = 'author@grnet.gr',
maintainer = 'Package maintainer',
maintainer_email = 'maintainer@grnet.gr',
author='Package author',
author_email='author@grnet.gr',
maintainer='Package maintainer',
maintainer_email='maintainer@grnet.gr',
packages = PACKAGES,
include_package_data = True,
package_data = {
packages=PACKAGES,
include_package_data=True,
package_data={
'quotaholder_django.quotaholder_app': ['fixtures/*.json']
},
#scripts = [
# 'quotaholder_django/quotaholder-manage',
#],
zip_safe = False,
install_requires = INSTALL_REQUIRES,
dependency_links = ['http://docs.dev.grnet.gr/pypi'],
entry_points = {
zip_safe=False,
install_requires=INSTALL_REQUIRES,
dependency_links=['http://docs.dev.grnet.gr/pypi'],
entry_points={
'synnefo': [
'web_apps = quotaholder_django.synnefo_settings:apps',
'urls = quotaholder_django.urls:urlpatterns',
]
},
)
......@@ -45,13 +45,6 @@ from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
try:
# try to update the version file
from synnefo.util.version import update_version
update_version('synnefo_tools', 'version', HERE)
except ImportError:
pass
from synnefo_tools.version import __version__
# Package info
......
......@@ -43,13 +43,6 @@ from setuptools import setup, find_packages
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
try:
# try to update the version file
from synnefo.util.version import update_version
update_version('synnefo.versions', 'webproject', HERE)
except ImportError:
pass
from synnefo.versions.webproject import __version__
# Package info
......
#Copyright (C) 2010, 2011, 2012 GRNET S.A. All rights reserved.
#
#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.
import sys
try:
from devflow import versioning
except ImportError:
raise RuntimeError("devflow is a build dependency")
def main():
versioning.update_version()
if __name__ == "__main__":
sys.exit(main())
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