Esempio n. 1
0
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
import platform

VERSION = (1, 3, 0, 'beta')
__version__ = '.'.join((str(each) for each in VERSION[:4]))
__dbversion__ = 4 #defines current db version for migrations
__platform__ = platform.system()
__license__ = 'GPLv3'

PLATFORM_WIN = ('Windows')
PLATFORM_OTHERS = ('Linux', 'Darwin', 'FreeBSD', 'OpenBSD', 'SunOS')

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."""

    return '.'.join((str(each) for each in VERSION[:3]))

BACKENDS = {
    'hg': 'Mercurial repository',
Esempio n. 2
0
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
import sys
import platform

VERSION = (1, 5, 1)

try:
    from rhodecode.lib import get_current_revision

    _rev = get_current_revision(quiet=True)
    if _rev and len(VERSION) > 3:
        VERSION += ("dev%s" % _rev[0],)
except ImportError:
    pass

__version__ = ".".join((str(each) for each in VERSION[:3])) + ".".join(VERSION[3:])
__dbversion__ = 9  # defines current db version for migrations
__platform__ = platform.system()
__license__ = "GPLv3"
__py_version__ = sys.version_info
__author__ = "Marcin Kuzminski"
__url__ = "http://rhodecode.org"

PLATFORM_WIN = "Windows"
PLATFORM_OTHERS = ("Linux", "Darwin", "FreeBSD", "OpenBSD", "SunOS")  # depracated
Esempio n. 3
0
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
import sys
import platform

VERSION = (1, 6, 1)

try:
    from rhodecode.lib import get_current_revision
    _rev = get_current_revision(quiet=True)
    if _rev and len(VERSION) > 3:
        VERSION += ('dev%s' % _rev[0], )
except ImportError:
    pass

__version__ = ('.'.join(
    (str(each) for each in VERSION[:3])) + '.'.join(VERSION[3:]))
__dbversion__ = 11  # defines current db version for migrations
__platform__ = platform.system()
__license__ = 'GPLv3'
__py_version__ = sys.version_info
__author__ = 'Marcin Kuzminski'
__url__ = 'http://rhodecode.org'

PLATFORM_WIN = ('Windows')