Revision 778081b0

/dev/null
1
snf-astakos-app
2
snf-common
3
snf-cyclades-app
4
snf-cyclades-gtools
5
snf-pithos-app
6
snf-pithos-backend
7
snf-pithos-tools
8
snf-tools
9
snf-webproject
10
snf-quotaholder-app
11
snf-stats-app
b/devflow.conf
1
[packages]
2
  [[snf-common]]
3
      version_file = "snf-common/synnefo/versions/common.py"
4
  [[snf-webproject]]
5
      version_file = "snf-webproject/synnefo/versions/webproject.py"
6
  [[snf-astakos-app]]
7
      version_file = "snf-astakos-app/astakos/version.py"
8
  [[snf-cyclades-app]]
9
      version_file = "snf-cyclades-app/synnefo/versions/app.py"
10
  [[snf-cyclades-gtools]]
11
      version_file = "snf-cyclades-gtools/synnefo/versions/ganeti.py"
12
  [[snf-pithos-app]]
13
      version_file = "snf-pithos-app/pithos/api/version.py"
14
  [[snf-pithos-backend]]
15
      version_file = "snf-pithos-backend/pithos/backends/version.py"
16
  [[snf-pithos-tools]]
17
      version_file = "snf-pithos-tools/pithos/tools/version.py"
18
  [[snf-tools]]
19
      version_file = "snf-tools/synnefo_tools/version.py"
20
  [[snf-quotaholder-app]]
21
      version_file = "snf-quotaholder-app/quotaholder_django/version.py"
22

  
b/snf-astakos-app/setup.py
42 42
from distutils.util import convert_path
43 43

  
44 44
from setuptools import setup, find_packages
45
from astakos import get_version
46 45

  
47 46
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
48
try:
49
    # try to update the version file
50
    from synnefo.util import version
51
    version.update_version('astakos', 'version', HERE)
52
except ImportError:
53
    pass
54 47

  
55 48
from astakos.version import __version__
56 49

  
b/snf-common/setup.py
43 43

  
44 44
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
45 45

  
46
try:
47
    # try to update the version file
48
    from synnefo.util.version import update_version
49
    update_version('synnefo.versions', 'common', HERE)
50
except ImportError:
51
    pass
52

  
53 46
from synnefo.versions.common import __version__
54 47

  
55 48
# Package info
b/snf-cyclades-app/setup.py
43 43

  
44 44
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
45 45

  
46
try:
47
    # try to update the version file
48
    from synnefo.util.version import update_version
49
    update_version('synnefo.versions', 'app', HERE)
50
except ImportError:
51
    pass
52

  
53 46
from synnefo.versions.app import __version__
54 47

  
55 48
# Package info
b/snf-cyclades-gtools/setup.py
39 39

  
40 40
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
41 41

  
42
try:
43
    # try to update the version file
44
    from synnefo.util.version import update_version
45
    update_version('synnefo.versions', 'ganeti', HERE)
46
except ImportError:
47
    pass
48

  
49 42
from synnefo.versions.ganeti import __version__
50 43

  
51 44
setup(
b/snf-pithos-app/setup.py
42 42
from setuptools import setup, find_packages
43 43

  
44 44
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
45
try:
46
    # try to update the version file
47
    from synnefo.util import version
48
    version.update_version('pithos.api', 'version', HERE)
49
except ImportError:
50
    pass
51 45

  
52 46
from pithos.api.version import __version__
53 47

  
b/snf-pithos-backend/setup.py
42 42
from setuptools import setup, find_packages
43 43

  
44 44
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
45
try:
46
    # try to update the version file
47
    from synnefo.util import version
48
    version.update_version('pithos.backends', 'version', HERE)
49
except ImportError:
50
    pass
51 45

  
52 46
from pithos.backends.version import __version__
53 47

  
b/snf-pithos-tools/setup.py
44 44
from setuptools import setup, find_packages
45 45

  
46 46
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
47
try:
48
    # try to update the version file
49
    from synnefo.util import version
50
    version.update_version('pithos.tools', 'version', HERE)
51
except ImportError:
52
    pass
53 47

  
54 48
from pithos.tools.version import __version__
55 49

  
b/snf-quotaholder-app/setup.py
37 37

  
38 38
import os
39 39

  
40
from distutils.util import convert_path
41
from fnmatch import fnmatchcase
42 40
from setuptools import setup, find_packages
43 41

  
44 42
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
45 43

  
46
try:
47
    # try to update the version file
48
    from synnefo.util.version import update_version
49
    update_version('quotaholder_django', 'version', HERE)
50
except ImportError:
51
    pass
52

  
53 44
from quotaholder_django.version import __version__
54 45

  
55 46
# Package info
......
70 61
]
71 62

  
72 63
setup(
73
    name = 'snf-quotaholder-app',
74
    version = VERSION,
75
    license = 'BSD',
76
    url = 'http://code.grnet.gr/',
77
    description = SHORT_DESCRIPTION,
78
    long_description=README + '\n\n' +  CHANGES,
79
    classifiers = CLASSIFIERS,
64
    name='snf-quotaholder-app',
65
    version=VERSION,
66
    license='BSD',
67
    url='http://code.grnet.gr/',
68
    description=SHORT_DESCRIPTION,
69
    long_description=README + '\n\n' + CHANGES,
70
    classifiers=CLASSIFIERS,
80 71

  
81
    author = 'Package author',
82
    author_email = 'author@grnet.gr',
83
    maintainer = 'Package maintainer',
84
    maintainer_email = 'maintainer@grnet.gr',
72
    author='Package author',
73
    author_email='author@grnet.gr',
74
    maintainer='Package maintainer',
75
    maintainer_email='maintainer@grnet.gr',
85 76

  
86
    packages = PACKAGES,
87
    include_package_data = True,
88
    package_data = {
77
    packages=PACKAGES,
78
    include_package_data=True,
79
    package_data={
89 80
        'quotaholder_django.quotaholder_app': ['fixtures/*.json']
90 81
    },
91 82
    #scripts = [
92 83
    #    'quotaholder_django/quotaholder-manage',
93 84
    #],
94
    zip_safe = False,
95
    install_requires = INSTALL_REQUIRES,
96
    dependency_links = ['http://docs.dev.grnet.gr/pypi'],
97
    entry_points = {
85
    zip_safe=False,
86
    install_requires=INSTALL_REQUIRES,
87
    dependency_links=['http://docs.dev.grnet.gr/pypi'],
88
    entry_points={
98 89
     'synnefo': [
99 90
         'web_apps = quotaholder_django.synnefo_settings:apps',
100 91
         'urls = quotaholder_django.urls:urlpatterns',
101 92
         ]
102 93
      },
103 94
)
104

  
b/snf-tools/setup.py
45 45

  
46 46
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
47 47

  
48
try:
49
    # try to update the version file
50
    from synnefo.util.version import update_version
51
    update_version('synnefo_tools', 'version', HERE)
52
except ImportError:
53
    pass
54

  
55 48
from synnefo_tools.version import __version__
56 49

  
57 50
# Package info
b/snf-webproject/setup.py
43 43

  
44 44
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
45 45

  
46
try:
47
    # try to update the version file
48
    from synnefo.util.version import update_version
49
    update_version('synnefo.versions', 'webproject', HERE)
50
except ImportError:
51
    pass
52

  
53 46
from synnefo.versions.webproject import __version__
54 47

  
55 48
# Package info
b/update_version.py
1
#Copyright (C) 2010, 2011, 2012 GRNET S.A. All rights reserved.
2
#
3
#Redistribution and use in source and binary forms, with or
4
#without modification, are permitted provided that the following
5
#conditions are met:
6
#
7
#  1. Redistributions of source code must retain the above
8
#     copyright notice, this list of conditions and the following
9
#     disclaimer.
10
#
11
#  2. Redistributions in binary form must reproduce the above
12
#     copyright notice, this list of conditions and the following
13
#     disclaimer in the documentation and/or other materials
14
#     provided with the distribution.
15
#
16
#THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
17
#OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
18
#WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19
#PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
20
#CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21
#SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
22
#LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
23
#USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
24
#AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
25
#LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
26
#ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
27
#POSSIBILITY OF SUCH DAMAGE.
28
#
29
#The views and conclusions contained in the software and
30
#documentation are those of the authors and should not be
31
#interpreted as representing official policies, either expressed
32
#or implied, of GRNET S.A.
33

  
34
import sys
35
try:
36
    from devflow import versioning
37
except ImportError:
38
    raise RuntimeError("devflow is build dependency")
39

  
40

  
41
def main():
42
    versioning.update_version()
43

  
44

  
45
if __name__ == "__main__":
46
    sys.exit(main())

Also available in: Unified diff