[FIX] Typo rename dependancy to dependency

This commit is contained in:
Mathieu Benoit 2020-09-04 17:22:28 -04:00
parent 5eba2508ab
commit 8a05074de7
9 changed files with 10 additions and 12 deletions

View file

@ -7,7 +7,7 @@ Add your dependancies in files [requirements.txt](../requirements.txt) and run s
This will search all requirements.txt files and update pyproject.toml, to run poetry update.
## Add manually dependancies
The automatic script will erase this dependancy, but you can add it for your locally test.
The automatic script will erase this dependency, but you can add it for your locally test.
```bash
poetry add PYTHON_MODULE
```

View file

@ -39,7 +39,7 @@ sudo su - postgres -c "createuser -s ${EL_USER}" 2> /dev/null || true
#--------------------------------------------------
# Install Dependencies
#--------------------------------------------------
echo -e "\n--- Installing debian dependancy --"
echo -e "\n--- Installing debian dependency --"
sudo apt-get install git build-essential wget libxslt-dev libzip-dev libldap2-dev libsasl2-dev node-less libpng12-0 gdebi-core libffi-dev -y
sudo apt-get install libmariadbd-dev -y

View file

@ -8,11 +8,11 @@ if [[ "${OSTYPE}" == "linux-gnu" ]]; then
OS=$(lsb_release -si)
if [[ "${OS}" == "Ubuntu" ]]; then
echo "\n---- linux-gnu installation process started ----"
./script/install_debian_dependancy.sh
./script/install_debian_dependency.sh
else
echo "Your Linux system is not supported."
fi
elif [[ "${OSTYPE}" == "darwin"* ]]; then
echo "\n---- Darwin installation process started ----"
./script/install_OSX_dependancy.sh
./script/install_OSX_dependency.sh
fi

View file

@ -216,7 +216,7 @@ if [[ ! -f ${VENV_REPO_PATH} ]]; then
chmod +x ${VENV_PATH}/repo
fi
echo -e "\n---- Installing poetry dependancy ----"
echo -e "\n---- Installing poetry dependency ----"
${VENV_PATH}/bin/pip install --upgrade pip
#/home/"${USER}"/.poetry/bin/poetry env use ${PYTHON_EXEC}
source $HOME/.poetry/env

View file

@ -2,7 +2,7 @@
. ./env_var.sh
./script/install_debian_dependancy.sh
./script/install_debian_dependency.sh
echo -e "\n---- Create ERPLIBRE system user ----"
sudo adduser --system --quiet --shell=/bin/bash --home=/${EL_USER} --gecos 'ERPLIBRE' --group ${EL_USER}

View file

@ -1,4 +0,0 @@
#!/usr/bin/env bash
source $HOME/.poetry/env
poetry add -vv $(grep -v ";" ./.venv/build_dependancy.txt | grep -v "*" | sed 's/==/@^/' )
# poetry export -f ./.venv/build_dependency.txt --dev | poetry run -- pip install -r /dev/stdin

View file

@ -1,3 +1,5 @@
#!/usr/bin/env bash
source $HOME/.poetry/env
poetry add -vv $(grep -v ";" ./.venv/build_dependency.txt | grep -v "*" )
# poetry add -vv $(grep -v ";" ./.venv/build_dependency.txt | grep -v "*" | sed 's/==/@^/' )
# poetry export -f ./.venv/build_dependency.txt --dev | poetry run -- pip install -r /dev/stdin

View file

@ -212,10 +212,10 @@ def sorted_dependency_poetry(pyproject_filename):
poetry = tool.get("poetry")
if poetry:
dependencies = poetry.get("dependencies")
python_dependencie = ("python", dependencies.get("python", ''))
python_dependency = ("python", dependencies.get("python", ''))
lst_dependency = [(k, v) for k, v in dependencies.items() if k != "python"]
lst_dependency = sorted(lst_dependency, key=lambda tup: tup[0])
poetry["dependencies"] = OrderedDict([python_dependencie] + lst_dependency)
poetry["dependencies"] = OrderedDict([python_dependency] + lst_dependency)
# Rewrite pyproject.toml
with open(pyproject_filename, 'w') as f: