Skip to content
/ acsoo Public

A set of command-line utilities to facilitate the Odoo development workflow at Acsone.

License

Notifications You must be signed in to change notification settings

acsone/acsoo

Repository files navigation

acsoo - Acsone Odoo Dev Tools

License: GPL-3 https://travis-ci.org/acsone/acsoo.svg?branch=master

This is a set of command-line utilities to facilitate the Odoo development workflow at Acsone.

It assumes the project is a setuptools-based python package that can be packaged and installed with pip.

Criteria for tools to be included here:

  • being small wrappers around standard commands (git, pip, etc)
  • yet being sufficiently non-trivial to be error-prone or time consuming when done manually
  • being used across several Acsone Odoo projects
pip install --user acsoo

or

pipx install acsoo

Note

Since acsoo has a lot of dependencies that are not required at runtime, for your application, it is not recommanded to install it in the same virtualenv as your project.

To enable bash completion, add this line in your .bashrc:

eval "$(_ACSOO_COMPLETE=source acsoo)"

Below, the list of available commands with a few examples.

Use acsoo --help or acsoo <command> --help for more information.

Look for git references of the form refs/pull/NNN/head in requirement files and print the corresponding GitHub pull request status.

acsoo checklog is deprecated: use `checklog-odoo <https://pypi.org/project/checklog-odoo>`_

Check if an odoo log file contains error, with the possibility to ignore some errors based on regular expressions.

acsoo checklog odoo.log
odoo -d mydb -i base --stop-after-init | acsoo checklog
acsoo checklog --ignore "WARNING.*blah" odoo.log

acsoo tag is deprecated: use `bump2version <https://pypi.org/project/bump2version/>`_ with `tag = True`, followed ``git push --tags`` instead.

Tag the current project after ensuring everything has been commited to git.

acsoo tag-requirements is deprecated: use `pip-preserve-requirements <https://pypi.org/project/pip-preserve-requirements/>`_ instead. In addition to tagging, it automatically pushes thirdparty repositories to the corresponding ACSONE fork, simplifying the declaration of OCA VCS references using ``@refs/pull/NNN/head``.

Tag all VCS requirements found in requirements.txt, so the referenced commits are not lost in case of VCS garbage collection.

acsoo addons is deprecated: use `manifestoo <https://pypi.org/project/manifestoo>`_ instead: it is more robust and has better test coverage.

A set of commands to print addons lists, useful when running tests.

acsoo addons list
acsoo addons list-depends

Deprecated: use `pip-deepfreeze <https://pypi.org/project/pip-deepfreeze>`_ instead.

Just like pip freeze, except it outputs only dependencies of the provided distribution name.

This command is deprecated, use pip >= 20.1 and do not use editable VCS dependencies. `pip wheel -e . -r requirements.txt --wheel-dir=release` will then give the same result, including caching of pinned VCS dependencies.

Build wheels for all dependencies found in requirements.txt, plus the project in the current directory.

The main advantage of this command (compared to a regular pip wheel -r requirements.txt -e . --wheel_dir=release --src src), was that it maintains a cache of git dependencies that are pinned with a sha1.

This command is deprecated. Releasing is automated via .gitlab-ci. See the `build` stage in the project template.

Perform acsoo tag, acsoo tag_requirements and acsoo wheel in one command.

A file named acsoo.cfg at the project root helps you set sensible defaults.

Here is a minimal example:

[acsoo]
trigram=xyz
series=10.0
version=1.5.0

And a more elaborate example:

[acsoo]
trigram=xyz
series=11.0
version=1.5.2
pushable=
  github.com:acsone
  github.com:mozaik

[checklog]
ignore=
  WARNING .* module .*: description is empty !
  WARNING: unable to set column .* of table account_analytic_account not null
ACSONE SA/NV

This project is maintained by ACSONE SA/NV.

About

A set of command-line utilities to facilitate the Odoo development workflow at Acsone.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages