= Entrypoints

Python offer a mechanism to declare entrypoints used to offer a plugin for some library.

{page-component-name} support this.

You don't need to add the full final path `odoo.addons.<your_addon_name>`, {page-component-name} do it for you.

NOTE: If you want a custom path for your entry point use `project.entry_points` instead of `tool.addon-odoo-wheel.entry_points`.

== Example

.my_addon struct
[,txt]
----
. my_addon
├── __init__.py
├── __manifest__.py
├── pyproject.toml
├── README.rst
└── my_file.py
----

.pyproject.toml
[source,toml]
----
[build-system]
requires = ["addon-odoo-wheel"]
build-backend = "addon_odoo_wheel.builder"

[tool.addon-odoo-wheel.entry_points."entry-point.name"]
group_entry = "my_file:function"
----

A file called `entry-points.txt` with the following content will be created:

[,ini]
----
[entrpy-point.name]
group_entry = "odoo.addons.my_addon.my_file:function" <1>
----
<1> {page-component-name} add `odoo.addons.my_addon.` before each entrypoints
