[FIX] Typo rename dependancy to dependency
This commit is contained in:
parent
5eba2508ab
commit
8a05074de7
9 changed files with 10 additions and 12 deletions
|
|
@ -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.
|
This will search all requirements.txt files and update pyproject.toml, to run poetry update.
|
||||||
|
|
||||||
## Add manually dependancies
|
## 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
|
```bash
|
||||||
poetry add PYTHON_MODULE
|
poetry add PYTHON_MODULE
|
||||||
```
|
```
|
||||||
|
|
|
||||||
|
|
@ -39,7 +39,7 @@ sudo su - postgres -c "createuser -s ${EL_USER}" 2> /dev/null || true
|
||||||
#--------------------------------------------------
|
#--------------------------------------------------
|
||||||
# Install Dependencies
|
# 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 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
|
sudo apt-get install libmariadbd-dev -y
|
||||||
|
|
||||||
|
|
@ -8,11 +8,11 @@ if [[ "${OSTYPE}" == "linux-gnu" ]]; then
|
||||||
OS=$(lsb_release -si)
|
OS=$(lsb_release -si)
|
||||||
if [[ "${OS}" == "Ubuntu" ]]; then
|
if [[ "${OS}" == "Ubuntu" ]]; then
|
||||||
echo "\n---- linux-gnu installation process started ----"
|
echo "\n---- linux-gnu installation process started ----"
|
||||||
./script/install_debian_dependancy.sh
|
./script/install_debian_dependency.sh
|
||||||
else
|
else
|
||||||
echo "Your Linux system is not supported."
|
echo "Your Linux system is not supported."
|
||||||
fi
|
fi
|
||||||
elif [[ "${OSTYPE}" == "darwin"* ]]; then
|
elif [[ "${OSTYPE}" == "darwin"* ]]; then
|
||||||
echo "\n---- Darwin installation process started ----"
|
echo "\n---- Darwin installation process started ----"
|
||||||
./script/install_OSX_dependancy.sh
|
./script/install_OSX_dependency.sh
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -216,7 +216,7 @@ if [[ ! -f ${VENV_REPO_PATH} ]]; then
|
||||||
chmod +x ${VENV_PATH}/repo
|
chmod +x ${VENV_PATH}/repo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo -e "\n---- Installing poetry dependancy ----"
|
echo -e "\n---- Installing poetry dependency ----"
|
||||||
${VENV_PATH}/bin/pip install --upgrade pip
|
${VENV_PATH}/bin/pip install --upgrade pip
|
||||||
#/home/"${USER}"/.poetry/bin/poetry env use ${PYTHON_EXEC}
|
#/home/"${USER}"/.poetry/bin/poetry env use ${PYTHON_EXEC}
|
||||||
source $HOME/.poetry/env
|
source $HOME/.poetry/env
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
. ./env_var.sh
|
. ./env_var.sh
|
||||||
|
|
||||||
./script/install_debian_dependancy.sh
|
./script/install_debian_dependency.sh
|
||||||
|
|
||||||
echo -e "\n---- Create ERPLIBRE system user ----"
|
echo -e "\n---- Create ERPLIBRE system user ----"
|
||||||
sudo adduser --system --quiet --shell=/bin/bash --home=/${EL_USER} --gecos 'ERPLIBRE' --group ${EL_USER}
|
sudo adduser --system --quiet --shell=/bin/bash --home=/${EL_USER} --gecos 'ERPLIBRE' --group ${EL_USER}
|
||||||
|
|
|
||||||
|
|
@ -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
|
|
||||||
|
|
@ -1,3 +1,5 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
source $HOME/.poetry/env
|
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 "*" )
|
||||||
|
# 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
|
||||||
|
|
|
||||||
|
|
@ -212,10 +212,10 @@ def sorted_dependency_poetry(pyproject_filename):
|
||||||
poetry = tool.get("poetry")
|
poetry = tool.get("poetry")
|
||||||
if poetry:
|
if poetry:
|
||||||
dependencies = poetry.get("dependencies")
|
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 = [(k, v) for k, v in dependencies.items() if k != "python"]
|
||||||
lst_dependency = sorted(lst_dependency, key=lambda tup: tup[0])
|
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
|
# Rewrite pyproject.toml
|
||||||
with open(pyproject_filename, 'w') as f:
|
with open(pyproject_filename, 'w') as f:
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue