A command-line tool for managing Odoo dependencies.
Project description
bl
Why BL
Because ak is a bit slow and I was tired of waiting around
Install
pipx install bl-odoo
Usage
For all those command bl will try to look in the current directory. If it does find the spec file
it will try to look in the child odoo directory. (i.e. you can launch bl in the root of you project)
Build
bl build -c <path_to_spec.yaml> -z <path_to_frozen.yaml> -j <concurrency>
What does it do
It does what ak build does
Params
path_to_spec.yamlshould be the path to your spec (default: spec.yaml)path_to_frozen.yamlshould be the path to your spec (default: frozen.yaml)concurrencynumber of module clone simultaneously (default: 28)
How it looks
Freeze
bl freeze -c <path_to_spec.yaml> -z <path_to_frozen.yaml> -j <concurrency>
What does it do
It does what ak freeze does
Params
path_to_spec.yamlshould be the path to your spec (default: spec.yaml)path_to_frozen.yamlshould be the path to your spec (default: frozen.yaml)concurrencynumber of module clone simultaneously (default: 28)
Clean
bl clean -c <path_to_spec.yaml>
What does it do
It asks you if you want to delete external-src and src and then deletes it
Params
path_to_spec.yamlshould be the path to your spec (default: spec.yaml)
Odoo is taking a really long time to clone
Yes !
You can add a locales entry to your odoo repo in spec.yaml like so:
odoo:
modules:
- account
...
remotes:
odoo: https://github.com/odoo/odoo
merges:
- odoo 14.0
locales:
- fr
- en
It will only download the french and english translation instead of all of them
- without locales: 849MB and 40 seconds fresh build
- with locales fr, en: 169MB and 27 seconds fresh build
⚠️ WARNING: you must list all the odoo modules you need if you use the locales property
I have warnings about patch globs
There is a new property to handle "git am <patch_glob>"
Before:
folder_name:
modules:
...
remotes:
...
merges:
...
shell_command_after:
- git am ../../patches/patch_folder/*
After:
folder_name:
modules:
...
remotes:
...
merges:
...
patch_globs:
- ../../patches/patch_folder/*
Benchmarks
Ak benchmarks
Fresh install
Already cloned once
Bl benchmarks
Fresh install
Already cloned once
Results
| Type | AK | BL |
|---|---|---|
| Cold | ~100s | 2 - 10x faster |
| Hot | 3-20s | 2 - 10x faster |
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file bl_odoo-0.3.6.tar.gz.
File metadata
- Download URL: bl_odoo-0.3.6.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
629e628a246dbd149b9b00a72f7cfed57bb4e1070541b1aec77178025dc0088a
|
|
| MD5 |
d1af4c37208bddc825dbbd66acb630a1
|
|
| BLAKE2b-256 |
5239b93b4f737229c6a5e2f0a6ba44e83884236d1b75a68ed782e9a7d710a4b3
|
File details
Details for the file bl_odoo-0.3.6-py3-none-any.whl.
File metadata
- Download URL: bl_odoo-0.3.6-py3-none-any.whl
- Upload date:
- Size: 16.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.6 {"installer":{"name":"uv","version":"0.10.6","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7cc23519969f109bcf0b2df8c2157c8eb6f579042112c0a89056119d5153f1b9
|
|
| MD5 |
6b51602f0d3e35b227df764bf7898cb9
|
|
| BLAKE2b-256 |
332311e388c962c85c733a56869d8effb99a0b646cff481bb37f086e84ce4eaf
|