Skip to content
This repository has been archived by the owner on May 16, 2024. It is now read-only.

[FIX] fix compatibility with 15.0 PyPI addon naming scheme #698

Closed

Conversation

sebastienbeau
Copy link
Member

@sebastienbeau sebastienbeau commented Oct 5, 2021

Comment on lines +132 to 139
if [[ $VERSION < '15' ]]
then
SHORT_VERSION=$(echo $VERSION | cut -d '.' -f 1)
else
SHORT_VERSION=""
fi
for addon in $(ls setup/ -I README -I _metapackage) ; do
addon_dist="odoo${SHORT_VERSION}-addon-${addon}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
if [[ $VERSION < '15' ]]
then
SHORT_VERSION=$(echo $VERSION | cut -d '.' -f 1)
else
SHORT_VERSION=""
fi
for addon in $(ls setup/ -I README -I _metapackage) ; do
addon_dist="odoo${SHORT_VERSION}-addon-${addon}"
if [[ $VERSION < '15' ]]
then
DIST_PREFIX_VERSION=$(echo $VERSION | cut -d '.' -f 1)
else
DIST_PREFIX_VERSION=""
fi
for addon in $(ls setup/ -I README -I _metapackage) ; do
addon_dist="odoo${DIST_PREFIX_VERSION}-addon-${addon}"

@sbidoul sbidoul changed the title [FIX] fix compatibility with 15.0 pip version [FIX] fix compatibility with 15.0 PyPI addon naming scheme Oct 9, 2021
@@ -129,7 +129,12 @@ else
echo "Installing addons to test and their dependencies"
pip install setuptools-odoo
setuptools-odoo-make-default --clean --addons-dir .
SHORT_VERSION=$(echo $VERSION | cut -d '.' -f 1)
if [[ $VERSION < '15' ]]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This won't work for Odoo 8 and 9

@sbidoul
Copy link
Member

sbidoul commented Oct 15, 2021

Superseded by #699

@sbidoul sbidoul closed this Oct 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants