release.py 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. # -*- coding: utf-8 -*-
  2. # Part of Odoo. See LICENSE file for full copyright and licensing details.
  3. RELEASE_LEVELS = [ALPHA, BETA, RELEASE_CANDIDATE, FINAL] = ['alpha', 'beta', 'candidate', 'final']
  4. RELEASE_LEVELS_DISPLAY = {ALPHA: ALPHA,
  5. BETA: BETA,
  6. RELEASE_CANDIDATE: 'rc',
  7. FINAL: ''}
  8. # version_info format: (MAJOR, MINOR, MICRO, RELEASE_LEVEL, SERIAL)
  9. # inspired by Python's own sys.version_info, in order to be
  10. # properly comparable using normal operators, for example:
  11. # (6,1,0,'beta',0) < (6,1,0,'candidate',1) < (6,1,0,'candidate',2)
  12. # (6,1,0,'candidate',2) < (6,1,0,'final',0) < (6,1,2,'final',0)
  13. version_info = (16, 0, 0, FINAL, 0, '')
  14. version = '.'.join(str(s) for s in version_info[:2]) + RELEASE_LEVELS_DISPLAY[version_info[3]] + str(version_info[4] or '') + version_info[5]
  15. series = serie = major_version = '.'.join(str(s) for s in version_info[:2])
  16. product_name = 'Odoo'
  17. description = 'Odoo Server'
  18. long_desc = '''Odoo is a complete ERP and CRM. The main features are accounting (analytic
  19. and financial), stock management, sales and purchases management, tasks
  20. automation, marketing campaigns, help desk, POS, etc. Technical features include
  21. a distributed server, an object database, a dynamic GUI,
  22. customizable reports, and XML-RPC interfaces.
  23. '''
  24. classifiers = """Development Status :: 5 - Production/Stable
  25. License :: OSI Approved :: GNU Lesser General Public License v3
  26. Programming Language :: Python
  27. """
  28. url = 'https://www.odoo.com'
  29. author = 'OpenERP S.A.'
  30. author_email = 'info@odoo.com'
  31. license = 'LGPL-3'
  32. nt_service_name = "odoo-server-" + series.replace('~','-')