Skip to content

Commit

Permalink
Add new plugin install methods
Browse files Browse the repository at this point in the history
Signed-off-by: Nig3l <[email protected]>
  • Loading branch information
Ni-g-3l committed Feb 3, 2025
1 parent a7fa195 commit cab8f04
Showing 1 changed file with 22 additions and 2 deletions.
24 changes: 22 additions & 2 deletions docs/source/plugins.rst
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,29 @@ To make your plugin available to rez, you can install it directly under

Add the source path to the REZ_PLUGIN_PATH environment variable in order to make your plugin available to rez.

3. Create a setup.py
3. Add entry points to pyproject.toml

To make your plugin available to rez, you can also create a ``setup.py`` file
To make your plugin available to rez, you can also create an entry points section in your
``pyproject.toml`` file, that will allow you to install your plugin with `pip install` command.

.. code-block:: toml
:caption: pyproject.toml
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "foo"
version = "0.1.0"
[project.entry-points."rez.plugins"]
foo_cmd = "foo"
4. Create a setup.py

To make your plugin available to rez, you can also create a ``setup.py`` file,
that will allow you to install your plugin with `pip install` command.

.. code-block:: python
Expand Down

0 comments on commit cab8f04

Please sign in to comment.