[UPD] python version 3.7.12
This commit is contained in:
parent
3f1697177e
commit
73e58f59dd
8 changed files with 37 additions and 7 deletions
|
|
@ -1 +1 @@
|
|||
3.7.7
|
||||
3.7.12
|
||||
|
|
|
|||
|
|
@ -197,6 +197,16 @@ source ./.venv/bin/activate
|
|||
python odoo/odoo-bin scaffold MODULE_NAME addons/REPO_NAME/
|
||||
```
|
||||
|
||||
## Python version
|
||||
|
||||
Your actual version is in file .python-version. Use script `./script/version/change_python_version.sh 3.7.12` to change to version 3.7.12 .
|
||||
|
||||
Run the installation, `make install_dev`.
|
||||
|
||||
Update poetry, `./script/poetry_update.py`.
|
||||
|
||||
Create docker, `make docker_build`.
|
||||
|
||||
# Pull request
|
||||
|
||||
## Show all pull requests from organization
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
FROM python:3.7.7-slim-buster
|
||||
FROM python:3.7.12-slim-buster
|
||||
MAINTAINER TechnoLibre <docker@technolibre.ca>
|
||||
|
||||
SHELL ["/bin/bash", "-xo", "pipefail", "-c"]
|
||||
|
|
|
|||
|
|
@ -1 +1 @@
|
|||
3.7.7
|
||||
3.7.12
|
||||
|
|
@ -10,7 +10,7 @@ license = "AGPL-3.0-or-later"
|
|||
authors = [ "Mathieu Benoit <mathben@technolibre.ca>",]
|
||||
|
||||
[tool.poetry.dependencies]
|
||||
python = "^3.7.7"
|
||||
python = "^3.7.12"
|
||||
Asterisk = "^0.0.8"
|
||||
Babel = "2.3.4"
|
||||
BeautifulSoup4 = "^4.10.0"
|
||||
|
|
|
|||
|
|
@ -37,8 +37,8 @@ sudo npm install -g rtlcss
|
|||
sudo npm install -g less
|
||||
sudo npm install -g prettier
|
||||
sudo npm install -g prettier @prettier/plugin-xml
|
||||
yes n|pyenv install 3.7.7
|
||||
pyenv local 3.7.7
|
||||
yes n|pyenv install 3.7.12
|
||||
pyenv local 3.7.12
|
||||
|
||||
echo 'export PATH="/usr/local/opt/openssl@1.1/bin:$PATH"' >> ~/.zshrc
|
||||
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ if [[ ! -d "./addons/addons" ]]; then
|
|||
fi
|
||||
|
||||
PYENV_PATH=~/.pyenv
|
||||
PYTHON_VERSION=3.7.7
|
||||
PYTHON_VERSION=3.7.12
|
||||
PYENV_VERSION_PATH=${PYENV_PATH}/versions/${PYTHON_VERSION}
|
||||
PYTHON_EXEC=${PYENV_VERSION_PATH}/bin/python
|
||||
POETRY_PATH=~/.poetry
|
||||
|
|
|
|||
20
script/version/change_python_version.sh
Executable file
20
script/version/change_python_version.sh
Executable file
|
|
@ -0,0 +1,20 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
# $1 new version version, like 3.7.12
|
||||
|
||||
input=".python-version"
|
||||
while IFS= read -r line
|
||||
do
|
||||
echo -e "Actual version $line"
|
||||
sed -i -e "s/$line/$1/g" ./.python-version
|
||||
sed -i -e "s/$line/$1/g" ./docker/Dockerfile.base
|
||||
sed -i -e "s/$line/$1/g" ./docker/python-versions.txt
|
||||
sed -i -e "s/$line/$1/g" ./script/install_locally.sh
|
||||
sed -i -e "s/$line/$1/g" ./script/install_OSX_dependency.sh
|
||||
sed -i -e "s/$line/$1/g" ./pyproject.toml
|
||||
done < "$input"
|
||||
|
||||
while IFS= read -r line
|
||||
do
|
||||
echo -e "New version $line"
|
||||
done < "$input"
|
||||
Loading…
Reference in a new issue