Commit 434dd396 authored by Christos Stavrakakis's avatar Christos Stavrakakis
Browse files

Do not automatically update version files

Do not automatically update version files from setup.py. From now
on, version files are updated using 'update_version.py' script and
'devflow'.

Also removed autopkg.conf and created devflow.conf configuration file.
parent 907c106c
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
[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
......
......@@ -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 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