~bzr/ubuntu/hardy/bzr/bzr-ppa

« back to all changes in this revision

Viewing changes to bzrlib/__init__.py

  • Committer: Max Bowsher
  • Date: 2011-02-09 04:09:41 UTC
  • mfrom: (0.5074.21 hardy)
  • Revision ID: maxb@f2s.com-20110209040941-4c6g890kt3pj7vjo
Merge beta-ppa into ppa upon release of 2.3.0.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2005-2010 Canonical Ltd
 
1
# Copyright (C) 2005-2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
52
52
# Python version 2.0 is (2, 0, 0, 'final', 0)."  Additionally we use a
53
53
# releaselevel of 'dev' for unreleased under-development code.
54
54
 
55
 
version_info = (2, 2, 4, 'final', 0)
 
55
version_info = (2, 3, 0, 'final', 0)
56
56
 
57
57
# API compatibility version
58
 
api_minimum_version = (2, 2, 0)
 
58
api_minimum_version = (2, 3, 0)
59
59
 
60
60
 
61
61
def _format_version_tuple(version_info):
71
71
    1.0.0
72
72
    >>> print _format_version_tuple((1, 2, 0, 'dev', 0))
73
73
    1.2.0dev
74
 
    >>> print bzrlib._format_version_tuple((1, 2, 0, 'dev', 1))
 
74
    >>> print _format_version_tuple((1, 2, 0, 'dev', 1))
75
75
    1.2.0dev1
76
76
    >>> print _format_version_tuple((1, 1, 1, 'candidate', 2))
77
77
    1.1.1rc2
78
 
    >>> print bzrlib._format_version_tuple((2, 1, 0, 'beta', 1))
 
78
    >>> print _format_version_tuple((2, 1, 0, 'beta', 1))
79
79
    2.1b1
80
80
    >>> print _format_version_tuple((1, 4, 0))
81
81
    1.4.0
82
82
    >>> print _format_version_tuple((1, 4))
83
83
    1.4
84
 
    >>> print bzrlib._format_version_tuple((2, 1, 0, 'final', 1))
 
84
    >>> print _format_version_tuple((2, 1, 0, 'final', 1))
85
85
    Traceback (most recent call last):
86
86
    ...
87
87
    ValueError: version_info (2, 1, 0, 'final', 1) not valid