X-Git-Url: http://git.inspyration.org/?a=blobdiff_plain;f=openerp%2Frelease.py;h=f0f1f049cb6af8da060a1a4ecdea984b76b9ec9a;hb=f05c4faf5b40910d25ceda3506d6e3bc090fac58;hp=5ae15a05bd966be22a5dc0fc441c17556a5e31ab;hpb=f8572e5c602798f37c2a94d54ab5e3ac79ff0185;p=odoo%2Fodoo.git diff --git a/openerp/release.py b/openerp/release.py index 5ae15a0..f0f1f04 100644 --- a/openerp/release.py +++ b/openerp/release.py @@ -1,4 +1,3 @@ -#!/usr/bin/env python # -*- encoding: utf-8 -*- ############################################################################## # @@ -20,9 +19,21 @@ # ############################################################################## -name = 'openerp-server' -version = '6.0.1' -major_version = '6.0' +RELEASE_LEVELS = [ALPHA, BETA, RELEASE_CANDIDATE, FINAL] = ['alpha', 'beta', 'candidate', 'final'] +RELEASE_LEVELS_DISPLAY = {ALPHA: ALPHA, + BETA: BETA, + RELEASE_CANDIDATE: 'rc', + FINAL: ''} + +# version_info format: (MAJOR, MINOR, MICRO, RELEASE_LEVEL, SERIAL) +# inspired by Python's own sys.version_info, in order to be +# properly comparable using normal operarors, for example: +# (6,1,0,'beta',0) < (6,1,0,'candidate',1) < (6,1,0,'candidate',2) +# (6,1,0,'candidate',2) < (6,1,0,'final',0) < (6,1,2,'final',0) +version_info = (6,2,0,ALPHA,0) +version = '.'.join(map(str,version_info[:2])) + RELEASE_LEVELS_DISPLAY[version_info[3]] + str(version_info[4] or '') +major_version = '.'.join(map(str,version_info[:2])) + description = 'OpenERP Server' long_desc = '''OpenERP is a complete ERP and CRM. The main features are accounting (analytic and financial), stock management, sales and purchases management, tasks @@ -37,8 +48,6 @@ Programming Language :: Python url = 'http://www.openerp.com' author = 'OpenERP S.A.' author_email = 'info@openerp.com' -support_email = 'support@openerp.com' license = 'AGPL-3' # vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4: -