-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add missing file in 2.9 setup files and
And upgrade pytest-rerunfailures To avoid error: File "/usr/lib/python3.9/site-packages/setuptools/_vendor/typeguard/_pytest_plugin.py", line 53, in pytest_addoption add_ini_option("string") File "/usr/lib/python3.9/site-packages/setuptools/_vendor/typeguard/_pytest_plugin.py", line 22, in add_ini_option parser.addini( File "/usr/lib/python3.9/site-packages/_pytest/config/argparsing.py", line 131, in addini assert type in (None, "pathlist", "args", "linelist", "bool") AssertionError
- Loading branch information
Showing
2 changed files
with
61 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,58 @@ | ||
#!/bin/bash | ||
|
||
if [ $(id -u) -ne 0 ]; then | ||
echo "Please run as root" | ||
exit 1 | ||
fi | ||
|
||
# Install any local extensions in the src_extensions volume | ||
echo "Looking for local extensions to install..." | ||
echo "Extension dir contents:" | ||
ls -la $SRC_EXTENSIONS_DIR | ||
for i in $SRC_EXTENSIONS_DIR/* | ||
do | ||
if [ -d $i ]; | ||
then | ||
if [ -d $SRC_DIR/$(basename $i) ]; | ||
then | ||
pip uninstall -y "$(basename $i)" | ||
fi | ||
|
||
if [ -f $i/pip-requirements.txt ]; | ||
then | ||
pip install -r $i/pip-requirements.txt | ||
echo "Found requirements file in $i" | ||
fi | ||
if [ -f $i/requirements.txt ]; | ||
then | ||
pip install -r $i/requirements.txt | ||
echo "Found requirements file in $i" | ||
fi | ||
if [ -f $i/dev-requirements.txt ]; | ||
then | ||
pip install -r $i/dev-requirements.txt | ||
echo "Found dev-requirements file in $i" | ||
fi | ||
if [ -f $i/setup.py ]; | ||
then | ||
cd $i | ||
python3 $i/setup.py develop | ||
echo "Found setup.py file in $i" | ||
cd $APP_DIR | ||
fi | ||
if [ -f $i/pyproject.toml ]; | ||
then | ||
cd $i | ||
pip install -e . | ||
echo "Found pyproject.toml file in $i" | ||
cd $APP_DIR | ||
fi | ||
|
||
# Point `use` in test.ini to location of `test-core.ini` | ||
if [ -f $i/test.ini ]; | ||
then | ||
echo "Updating \`test.ini\` reference to \`test-core.ini\` for plugin $i" | ||
ckan config-tool $i/test.ini "use = config:../../src/ckan/test-core.ini" | ||
fi | ||
fi | ||
done |