Skip to main content

A tool to reason about Odoo addons manifests.

Project description

Manifestoo

Github-CI Coverage Status PyPI

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 core Odoo CE and EE addons,
  • listing external 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-depend 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

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

manifestoo-0.3.tar.gz (23.2 kB view details)

Uploaded Source

Built Distribution

manifestoo-0.3-py3-none-any.whl (44.1 kB view details)

Uploaded Python 3

File details

Details for the file manifestoo-0.3.tar.gz.

File metadata

  • Download URL: manifestoo-0.3.tar.gz
  • Upload date:
  • Size: 23.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/58.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.10

File hashes

Hashes for manifestoo-0.3.tar.gz
Algorithm Hash digest
SHA256 18e27e71a007fd7b43dd28c18f6551cfe1264bacc48adc701b28635f5ddbdbe0
MD5 d4b19a6bcd5083a502a282d831b471be
BLAKE2b-256 c10313c452913de5e3265469835e0074b409d7c5638cc890562c2edb3cff0cfb

See more details on using hashes here.

File details

Details for the file manifestoo-0.3-py3-none-any.whl.

File metadata

  • Download URL: manifestoo-0.3-py3-none-any.whl
  • Upload date:
  • Size: 44.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/58.2.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.8.10

File hashes

Hashes for manifestoo-0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f1e88389d263dfd3ba7108bd248ca018c20d3a35a1be289a716bd9d54005a967
MD5 8c8370ac03dffc9002f772875dfd3344
BLAKE2b-256 e4df94def4ac1f1cfed428e52b3beb919f6d6160f22ca72d7966d0ad9463a0ab

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page