Skip to content

Commit

Permalink
[IMP] release: PEP440 release naming
Browse files Browse the repository at this point in the history
Use the PEP440 release naming.

closes #11863

Related: odoo/odoo#195176
Signed-off-by: Krzysztof Magusiak (krma) <[email protected]>
  • Loading branch information
kmagusiak committed Jan 27, 2025
1 parent e8da6e1 commit 8675b65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions conf.py
Original file line number Diff line number Diff line change
@@ -21,7 +21,7 @@

# `version` is the version info for the project being documented, acts as replacement for |version|,
# also used in various other places throughout the built documents.
# `release` is the full version, including alpha/beta/rc tags. Acts as replacement for |release|.
# `release` is the full version, including a/b/rc tags. Acts as replacement for |release|.
version = release = 'master'

# `current_branch` is the technical name of the current branch.
@@ -116,7 +116,7 @@
odoo.addons.__path__.append(str(odoo_dir) + '/addons')
from odoo import release as odoo_release # Don't collide with Sphinx's 'release' config option
odoo_version = '.'.join(str(s) for s in odoo_release.version_info[:2]).replace('~', '-') # Change saas~XX.Y to saas-XX.Y
odoo_version = 'master' if 'alpha' in odoo_release.version else odoo_version
odoo_version = 'master' if odoo_release.ALPHA in odoo_release.version_info else odoo_version
if release != odoo_version:
_logger.warning(
"Found Odoo sources in %(directory)s but with version '%(odoo_version)s' incompatible "

0 comments on commit 8675b65

Please sign in to comment.