Addon Odoo Wheel Builder
A standards-compliant Python build backend to package individual Odoo addons. The main idea and the code is taken from sbidoul/whool.
Quick Usage
[build-system]
requires = ["addon-odoo-wheel"]
build-backend = "addon_odoo_wheel.builder"
This config will produce a wheel and the module will be available in the odoo/addons namespace.
Auto patch
addon-odoo-wheel next-version <addon> prints the version of the next release from the releases on PyPI
(manifest 20.0.1.1 → 20.0.1.1.0, 20.0.1.1.1…, always 5 digits; 6 digits as whool with auto_patch_append), nothing when the content of the addon is already published.
ADDON_ODOO_WHEEL_VERSION builds with this version, Odoo still sees the manifest version (no module update).
The CI components enable it with auto_patch: true, see modules/ROOT/pages/version.adoc.
addon-odoo-wheel plan <root> lists the addons of a repository to publish: the publish-repo component
publishes them with one build job, see modules/ROOT/pages/ci.adoc.
Documentation
The complete documentation (package name, version, auto patch, CI components, dependencies, project URLs, editable install, contributors)
is in modules/ROOT/pages.
Contributors
A contributor sets the package prefix, author email, default website and classifiers of the addons
whose __manifest__.py author matches one of its names.
The known contributors (OCA, Mangono, Odoo) are in src/addon_odoo_wheel/contributors.py.
To register your company, subclass ContributorABC in your own package and declare it as an
addon_odoo_wheel.contributor entry point:
from addon_odoo_wheel.contributors_api import ContributorABC, OdooSeries
class MyCompanyContributor(ContributorABC):
names = ["My Company"] # every `author` value used by your company, case insensitive
def get_mail(self, odoo_series: OdooSeries | None) -> str | None:
return "contact@my-company.com"
def get_website(self, odoo_series: OdooSeries | None) -> str | None:
return "https://my-company.com"
def get_package_prefix(self, odoo_series: OdooSeries | None) -> str | None:
return "my-company-addon"
[project.entry-points."addon_odoo_wheel.contributor"]
my-company = "my_company_package:MyCompanyContributor"
See modules/ROOT/pages/contributors.adoc for the full example.
Metadata
Release files for addon-odoo-wheel 0.6.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| addon_odoo_wheel-0.6.0.tar.gz | 63.8 kB | Without provenance | Details for addon_odoo_wheel-0.6.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| addon_odoo_wheel-0.6.0-py3-none-any.whl | Python 3 | none | any | Details for addon_odoo_wheel-0.6.0-py3-none-any.whl |
Total release size: 88.3 kB
Release files / addon_odoo_wheel-0.6.0.tar.gz
| Download URL | addon_odoo_wheel-0.6.0.tar.gz |
|---|---|
| Size | 63.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ccb613392bc761db6b642b27ff8fde24bda323c830ab52824e6bf62abd168c03
|
|
BLAKE2b-256 checksum How to use checksums |
ea4a66327b54a40a61ae5dc1c3e22837f6efcb9a6a916a8fc99b9c9fde031a12
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Release files / addon_odoo_wheel-0.6.0-py3-none-any.whl
| Download URL | addon_odoo_wheel-0.6.0-py3-none-any.whl |
|---|---|
| Size | 24.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
cb63e0b4e161a3d59a8b4d7b3a81e4e578bb831ad05a628a8139689e6950455d
|
|
BLAKE2b-256 checksum How to use checksums |
30122ff2355624db2182a25faba18fbb78384b9e7d3ab3cf844a43842fb17023
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.15.2
|
Security for addon-odoo-wheel 0.6.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.