I am using Poetry to build some package. For simplicity sake the structure of the repository looks something like this:
my_package
pyproject.toml
service
client
client.py
data.py
__init__.py
__init__.py
But I want the package is named my_package_client
and includes just client
directory. So that after installation I could import like this:
from my_package_client import Client
I tried to write this in pyproject.toml:
name = "my_project_client"
packages = [
{include = "client", from = "service"}
]
But obviously after installation I only can import this way:
from service.client import Client