A tool to reason about Odoo addons manifests
Project description
Manifestoo
A tool to reason about Odoo addons manifests.
Installation
Using pipx (recommended):
pipx install manifestoo
Using pip:
pip install --user manifestoo
Features
Manifestoo is a command line tool that provides the following features:
- listing addons,
- listing direct and transitive dependencies of selected addons,
- listing direct and transitive co-dependencies of selected addons,
- listing core Odoo CE and EE addons,
- listing external dependencies,
- listing missing dependencies,
- displaying the dependency tree,
- checking license compatibility,
- checking development status compatibility.
For a full list of commands an options, run manifestoo --help
.
For more information, read the documentation.
Quick start
Let's create a directory (/tmp/myaddons
) containing addons a
, b
and c
,
where a
depends on b
and c
, and b
and c
respectively depend on the
contacts
and mail
core Odoo modules.
Using bash
you can do it like this:
mkdir -p /tmp/myaddons/{a,b,c}
echo '{"name": "A", "version": "14.0.1.0.0", "depends": ["b", "c"], "license": "GPL-3"}' > /tmp/myaddons/a/__manifest__.py
echo '{"name": "B", "version": "14.0.1.0.0", "depends": ["crm"], "license": "Other Proprietary"}' > /tmp/myaddons/b/__manifest__.py
echo '{"name": "C", "version": "14.0.1.0.0", "depends": ["mail"], "license": "LGPL-3"}' > /tmp/myaddons/c/__manifest__.py
The manifestoo list
command is useful to list all installable addons in a
directory. This can be useful to install them all at once, for instance.
$ manifestoo --select-addons-dir /tmp/myaddons list
a
b
c
The list-depends
command shows the direct dependencies. It is handy to
pre-install a database before running tests.
$ manifestoo -d /tmp/myaddons list-depends --separator=,
crm,mail
The list-codepends
command shows the transitive co-dependencies.
It is handy to know which modules are impacted by changes in selected modules.
$ manifestoo --addons-path /tmp/myaddons --select a list-codepends --separator=,
b,c
You can explore the dependency tree of module a
like this:
$ manifestoo --addons-path /tmp/myaddons --select a tree
a (14.0.1.0.0)
├── b (14.0.1.0.0)
│ └── contacts (14.0+c)
│ └── mail (14.0+c)
│ ├── base_setup (14.0+c)
│ │ └── web (14.0+c)
│ ├── bus (14.0+c)
│ │ └── web ⬆
│ └── web_tour (14.0+c)
│ └── web ⬆
└── c (14.0.1.0.0)
└── mail ⬆
To check that licenses are compatibles, use the check-licenses
command:
$ moo -d /tmp/myaddons check-licenses
a (GPL-3) depends on b (Other Proprietary)
And much more... See the documentation for more information.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file manifestoo-0.4.1.tar.gz
.
File metadata
- Download URL: manifestoo-0.4.1.tar.gz
- Upload date:
- Size: 37.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2b5c80f42087a21bc552b1f380fba0b573d0c4f9c9f1277f4eaccffefe4daa4a |
|
MD5 | f1f9ccd04534a87c3247f47fd2039eb4 |
|
BLAKE2b-256 | bca64c98a338eb1ed656118f143f9e66298115819415b7ec94b134af7b7cef23 |
File details
Details for the file manifestoo-0.4.1-py3-none-any.whl
.
File metadata
- Download URL: manifestoo-0.4.1-py3-none-any.whl
- Upload date:
- Size: 47.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.26.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5020cb22445743265443f5e88e14dac22d48078d266ff1a56555863a88609ad7 |
|
MD5 | 5ff8d78f9e19188afb13689125d06dfe |
|
BLAKE2b-256 | e937ef30caead0bc0acb8da4518d038f54c203211340555fbd6b76b14a6ce507 |