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
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion travis/travis_install_nightly
Original file line number Diff line number Diff line change
Expand Up @@ -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

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}"
Comment on lines +132 to 139
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}"

echo "-e file://${PWD}/setup/${addon}#egg=${addon_dist}" >> test-requirements.txt
Expand Down