Simple command line utility used to filter specific odoo addons from multiple repositories. It leverages git-aggregator and its repo.yml format as well as doodba's addons addons.yml format.
- Via
pipx
withpipx install odoo-filter-addons
(recommended) - Via
pip
withpython3 -m pip install odoo-filter-addons
- After cloning locally with
python3 -m pip install .
To execute the program simply run odoo_filter_addons
. In order to work, it requires a directory
containing the configuration files repos.yml
and addons.yml
. If repos.yml
references any environment variables, they can
be defined in repos.env
. If the files are valid, the modules specified in addons.yml
are
filtered from the results of running gitaggregate
into the specified output directory.
By default, both the input and output path default to the current working directory,
but can be overridden through the -i/--input-path
and -o/--output-path
flags
respectively. Additionally, some other flags can be provided to alter the behavior of
the program:
Flag | Default | Description |
---|---|---|
-i, --input-path | "." | Path to directory containing configuration files |
-o, --output-path | "." | Path to the directory that will contain the output |
-c, --clean / --no-clean | True | Clean gitaggregate output |
-C, --cache / --no-cache | False | Cache gitaggregate output, overrides -c |
-r, --release / --no-release | False | Create a release commit if any changes are made |
-p, --push / --no-push | False | Push to remote repo if any changes are commited |
-g, --gitlab-ci | False | Update client addon repository in GitLab CI |