-
Vincent Hatakeyama authoredVincent Hatakeyama authored
History
21.7.2 (2024-04-23)
start: do not loose odoo return code value
21.7.1 (2024-04-22)
run_tests: fix function name.
21.7.0 (2024-04-22)
Refactor of test results display. run_tests, do_tests.zsh, start: improve handling of the log files. Added tests for test results display and error detection.
21.6.0 (2024-04-18)
run_tests: allow setting odoo_scripts_run_tests_logfile to keep the log of tests
21.5.1 (2024-04-18)
Fix readme.
21.5.0 (2024-04-18)
Compatibility with Odoo 17:
- add odoo17 value for odoo_type
- when black/flake8/isort is run on an odoo 17 super project, they are either ignored or raise an exception
Replaced black/flake8/isort with ruff.
21.4.1 (2024-03-21)
black
21.4.0 (2024-03-21)
docker_build, docker_dev_start: give values to VERSION/VERSION_ARG/SENTRY_RELEASE_TAG/SENTRY_RELEASE closer to what the built image value would be.
do_tests: only add user/password if provided
docker_dev_start:
- add argument to disable queue_job delay
- fix issue with missing marabunta db user that breaks anonymize
21.3.0 (2024-03-21)
Allow setting marabunta_db_user and marabunta_db_password in global configuration file and reuse it if set and they are not provided in the command line.
21.2.4
docker_build_copy: Handle empty packages.
21.2.3
run_tests: Avoid using deprecated grep environment variable.
21.2.2
Fix issue when building a package whose name is available elsewhere.
21.2.1
docker_build_copy: Handle non mercurial repository correctly when searching for packages.
21.2.0
docker_build_copy: Apply any local changes from python packages when building. This requires the patch binary to be in the path.
21.1.0
docker_redner: Ease running the command by providing same default as docker_dev_start --start-redner.
Factorize postgres connection code.
21.0.8
Fix detecting existing container.
docker_dev_start: Fix missing proxy mode in command line when using workers.
Fix running redner when asked to use docker network.
21.0.7
Fix running redner.
21.0.6
docker_build: fix issue with missing buildx. (is_installed is working correctly)
21.0.5
Avoid docker.buildx.is_installed() as it reports installation even if it is not installed.
21.0.4
black
21.0.3
Fix flake8/isort.
21.0.2
docker_dev_start and docker_pylint: do not duplicate mount point for songs when they are correctly defined in python_packages.
21.0.1
docker_build_copy: Do not do strange thing if . is defined in python_packages
21.0.0
Use python_on_whales rather than Docker-py to use buildkit when building images.
https://github.com/docker/docker-py/issues/2230
If buildx for docker is installed, use it to build.
do_tests: Add --odoo-sources option available on docker_dev_start.
20.14.0
docker_build: Use the Orus API token if available (giving it to docker in the environment variable PIP_INDEX_URL)
20.13.0
Add version detection.
Add information indicating that Orus API token is required in configuration. Defaults to False.
20.12.2
Fix issue with secretstorage when docker section is not installed.
20.12.1
do_tests.zsh: Fix pg_extensions use, and allow setting unaccent to install it.
20.12.0
Use SecretStorage to store Orus API token.
20.11.0
do_tests.zsh: allow using env var pg_extensions to describe extensions to install. Allow compatibility with modules requiring a specific extension.
20.10.1
do_tests.zsh: Fix issue with log handler.
20.10.0
Use tomli instead of toml for python < 3.11.
Download wheel for python packages if able, caching them. Use multiprocess to speed up coping/compiling/downloading.
20.9.0
Allow setting log handler instead of log level.
20.8.2
docker_build: When building image with dev tools, do not add the user flags. This allows using venv and when odoo is installed in a user, it is picked automatically.
20.8.1
Use correct gevent uri/option for Odoo 16+.
20.8.0
docker_dev_start: create database when it does not exists (avoid issue with anomization when creating new databases)
20.7.1
Fix typing error.
20.7.0
Change python_packages keys to allow several mount point and targets in the same package).
20.7.0
Enable cache for pip for dev packages.
20.6.0
docker_dev_start:
- add werzeug in odoo 15+ to the automatically enabled dev options
20.5.1
docker_dev_start: Fix path for volumes.
20.5.0
Allow setting db_user, db_password, log_handler and pythondevmode in a global settings file (${XDG_CONFIG_HOME-$HOME/.config}/odoo_scripts/config.toml). Configuration can be done by odoo_type too.
Detect missing package when preparing to build the image.
20.4.0
When copying python packages to build the image, use hg archive rather than rsync.
docker_dev_start: Add option to activate S3 storage for attachments (requires the s3_attachment_storage module to be installed to work)
20.3.1
Add missing common shell script.
20.3.0
docker_dev_start:
- Clearer message for missing redner image name.
- Improve version string: include next version and topic for mercurial super projects.
run_tests: exclude all manifest from coverage, previous exclusion did not apply for installable modules.
Rename do_tests shell script so that it is installed, the console script was shadowing it.
20.2.0
docker_build_copy: when not in CI, default to copying packages and let the package be build in the image.
docker_black: also indicate version before running the command.
20.1.0
docker_dev_start: Add ability to run a redis container.
20.0.1
Fix getting the redner api key when starting it for Odoo.
20.0.0
Support for Odoo 16.0 super project: add new python_packages configuration key.
Install shell scripts too.
19.1.0
Support Odoo 14.
19.0.2
docker_dev_start: Change how odoo sources is mounted in the image.
It leaves the installed module path alone and also avoids ending up with empty directory in the odoo clone’s
odoo/addons
directory.
19.0.1
import base import: match only the start of the version, in case the git hash is present in the version string.
19.0.0
docker_black: on Odoo 11 projects, force the line length to 79.
18.1.0
Add pylint output format option and default to a colorized output.
Do not run coverage when giving odoo test tags.
18.0.1
Fix coverage in Odoo 16 image.
18.0.0
Add compatibility with Odoo 16.
17.1.0
do_tests and docker_dev_start: add --test-tags option that passes information to Odoo
17.0.0
Changes to docker_isort so that it can be used to apply changes.
Compatibility with long polling.
Extract version number with setuptools-scm.
Update to use only pyproject.toml and remove setup.py, indicating to use pip 10.0+ to install.
Add tests for python 3.11.
Prettier is in Odoo 11 image, update docker_prettier accordingly.
import_base_import is a new section as the base import is broken in recent version of Odoo due to the inability to get a CRCF token.
Use mypy to check code type and help detect issues.
16.10.0
docker_doc_build: new command to build module documentation.
16.9.1
docker_pylint: fix the command in odoo 15 projects.
16.9.0
docker_dev_start: Exclude acl when restoring.
16.8.2
Fix incorrect prettier and black warning.
16.8.1
Stop tagging with tip.
16.8.0
Prettier for odoo 11.
16.7.3
docker_dev_start: Fix restoring database and applying script.
16.7.2
docker_dev_start: Fix --start-redner
16.7.1
Fix incorrect permissions on /var/lib/odoo. It is now handled correctly both at creation or when using the --chown flag.
16.7.0
Add command to run a redner for a project, from docker_dev_start or directly with docker_redner.
Fix issue with volume being created at each docker_dev_start run.
Make docker_pylint work on Odoo 11 projects that uses python3.8.
Detect import errors in run_tests.
Add option to disable PYTHONDEVMODE.
16.6.0
docker_dev_start: Set the VERSION and SENTRY_RELEASE environment variable. Useful when there is a module displaying their value.
odoorpc merged a fix for the python 3.10 compatibility, so update the requirements accordingly.
Set PYTHONDEVMODE when in dev mode. This will only be used with 3.7 python to display some additional messages. See https://docs.python.org/3/library/devmode.html#devmode
16.5.1
Avoid trying to set db_host with an empty value. 16.5.0 ------
Fix path used when running chown in the image, it was using /var/lib/odoo
which is not where the data is present when running.
When running tests, only install modules that are not going to be tested. Modules to be tested will be installed during the tests.
16.4.0
When creating the data volume to store session and filestore, also run chown on them avoiding to have to do it manually.
16.3.0
Also mount songs when running pylint with docker_pylint
.
16.2.0
Change back option in do_tests
to keep the same comportment as in version <16.0.0. Override of module_list from configuration file is a new option.
16.1.0
Shell script: avoid running tests if there is no module to test.
Fix using do_tests as adding the --without-demo
with any value breaks odoo 13.0 tests.
16.0.0
Support marabunta that is in the images.
Marabunta is not run when using do_tests.
Change how the tests are run with do_tests: modules not to be tested are installed, then modules to test are installed with test enabled. This fix the issues of installation tests that were not run previously.
15.3.1
Fix pyproject.toml so that the project can be installed.
15.3.0
Add docker_black to run black on a directory using the project image. Black must be present in that image.
15.2.1
Fix prettier volume mount mode; that prevented from writing changes.
15.2.0
Add chown option to do_tests.
Add populate options to docker_dev_start.
Add docker_prettier.
Add odoo_conf_inject_env_var entry point.
15.1.0
Also do branch coverage when doing coverage.
Better output of odoo 15 tests with run_tests shell script.
Fix chown of extra directories.
15.0.0
Odoo 15 compatibility.
Explicitly disable base import with version it is not tested (it did not work with 13.0 anyway).
Use black default line length.
Change isort options to be able to show differences.
Use the presence of a Dockerfile as a sign that the current directory is a super project. Avoids starting to create files by error.
Add new command and flags to run pylint on some modules.
Fix conf2reST.
14.0.0
Allow not setting the database owner in do_tests.
Remove static image support.
docker_build
also tag with any current tag if any.
import_jsonrpc
: Add --allow-import-errors
& --allow-missing-refs
to log warnings without blocking errors.
import_jsonrpc
: More lenient float parsing - handle commas / dots / nbspaces.
13.3.0
Sort subdirectories when importing files. This was supposed to be the case but was not done correctly.
13.2.0
Do not require odoorpc that works with python 3.10, just be aware that you need to use the one from requirements if you want python 3.10 compatibility.
13.1.0
Add a handy method in odoo.py when writing scripts.
13.0.0
Update odoorpc required version to one including the fix for python 3.10.
12.0.1
Do not use python 3.10 as odoorpc is not compatible with this version.
12.0.0
Default to not doing flake8 and isort in do_tests.
11.1.0
Add the possibility to indicate a different path for the copied sources.
11.0.1
Fix reading other sources from setup, it was only accepting directories.
Password in imports and odoo scripts is not mandatory anymore, if not provided, it will be asked by using getpass.
11.0.0
docker_build_copy: Add the copy of setup files in directory odoo_setup so that they can be added to the Docker images of each projects.
10.0.1
Fix setting default developer mode.
10.0.0
Add option to include custom developer mode. Default is still to use reload and pdb. To use ipdb, use --dev-opt ipdb
instead of --ipdb
.
docker_dev_start chown option also chown the content of /var/lib/odoo
for recent Odoo.
9.0.1
Run chown in odoo as root.
9.0.0
Add install option to do_tests, allowing to override installed modules.
Fix issues with documentation generation (incompatibility with expand)
Changed following base image changes.
Make start-py3o option work again.
Odoo 13 set not null errors when testing are ignored the same way it was in other versions.
8.0.1
Fix nested blacklisting.