A way to install globally a local python package is using pipx.
You just need to use the install command.
For example:
pipx install /path/to/project your-package-name
The /path/to/project should be the path to the folder that contains your pyproject.yaml.