Commit 763c94c5 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Add version.py to the repository

The version the file contains is 0.13.dev0
parent 01318c1c
......@@ -22,6 +22,3 @@ dist
_build
.coverage
cover/
# version module created automatically from setup.py
/devflow/version.py
Copyright (C) 2012, 2013 GRNET S.A. All rights reserved.
Copyright (C) 2012-2016 GRNET S.A. All rights reserved.
Redistribution and use in source and binary forms, with or
without modification, are permitted provided that the following
......
__version__ = "0.13.dev0"
# Copyright 2012, 2013 GRNET S.A. All rights reserved.
# Copyright 2012-2016 GRNET S.A. All rights reserved.
#
# Redistribution and use in source and binary forms, with or
# without modification, are permitted provided that the following
......@@ -33,26 +33,16 @@
#
import os
from setuptools import setup, find_packages
try:
from devflow.version import __version__
except ImportError:
# Bootstrap devflow
from devflow.versioning import update_version
update_version()
from devflow.version import __version__
from imp import load_source
HERE = os.path.abspath(os.path.normpath(os.path.dirname(__file__)))
VERSION = os.path.join(HERE, 'devflow', 'version.py')
# Package info
VERSION = __version__
README = open(os.path.join(HERE, 'README.md')).read()
CHANGES = open(os.path.join(HERE, 'Changelog')).read()
SHORT_DESCRIPTION = 'A set of tools to ease versioning and use of git flow.'
PACKAGES_ROOT = '.'
PACKAGES = find_packages(PACKAGES_ROOT)
# Package meta
CLASSIFIERS = [
'Environment :: Console',
......@@ -67,7 +57,7 @@ INSTALL_REQUIRES = ['gitpython>=0.3.2RC1', 'sh', 'configobj', 'ansicolors']
setup(
name='devflow',
version=VERSION,
version=getattr(load_source('version', VERSION), "__version__"),
license='BSD',
url='http://www.synnefo.org/',
description=SHORT_DESCRIPTION,
......
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