Changeset - b70721d03e84
[Not reviewed]
beta
0 2 0
Marcin Kuzminski - 14 years ago 2012-03-18 15:03:58
marcin@python-works.com
pep386 versioning
2 files changed with 13 insertions and 15 deletions:
0 comments (0 inline, 0 general)
README.rst
Show inline comments
 
@@ -19,7 +19,7 @@ RhodeCode works on *nix systems and Wind
 
that Lukasz Balcerzak and Marcin Kuzminski created to handle multiple 
 
different version control systems.
 

	
 
RhodeCode uses `Semantic Versioning <http://semver.org/>`_
 
RhodeCode uses `PEP386 versioning http://www.python.org/dev/peps/pep-0386/`_
 

	
 
Installation
 
------------
rhodecode/__init__.py
Show inline comments
 
@@ -4,7 +4,7 @@
 
    ~~~~~~~~~~~~~~~~~~
 

	
 
    RhodeCode, a web based repository management based on pylons
 
    versioning implementation: http://semver.org/
 
    versioning implementation: http://www.python.org/dev/peps/pep-0386/
 

	
 
    :created_on: Apr 9, 2010
 
    :author: marcink
 
@@ -26,8 +26,17 @@
 
import sys
 
import platform
 

	
 
VERSION = (1, 3, 4, 'beta')
 
__version__ = '.'.join((str(each) for each in VERSION[:4]))
 
VERSION = (1, 3, 4, 'b')
 

	
 
try:
 
    from rhodecode.lib import get_current_revision
 
    _rev = get_current_revision()
 
    VERSION += ('dev%s' % _rev[0],)
 
except ImportError:
 
    pass
 

	
 
__version__ = ('.'.join((str(each) for each in VERSION[:3])) +
 
               '.'.join(VERSION[3:]))
 
__dbversion__ = 5  # defines current db version for migrations
 
__platform__ = platform.system()
 
__license__ = 'GPLv3'
 
@@ -65,17 +74,6 @@ else:
 
    requirements.append("mercurial>=2.1,<2.2")
 

	
 

	
 
try:
 
    from rhodecode.lib import get_current_revision
 
    _rev = get_current_revision()
 
except ImportError:
 
    # this is needed when doing some setup.py operations
 
    _rev = False
 

	
 
if len(VERSION) > 3 and _rev:
 
    __version__ += ' [rev:%s]' % _rev[0]
 

	
 

	
 
def get_version():
 
    """Returns shorter version (digit parts only) as string."""
 

	
0 comments (0 inline, 0 general)