Poetry: Support packages with different folder names

Created on 6 Dec 2018  路  2Comments  路  Source: python-poetry/poetry

I have a package that I want to call pysignald because it is a client for signald, but I want the module to actually be available under signald. I called the module signald in my package, and called the package itself pysignald in the pyproject.toml, but poetry refuses to build it because it can't find a package with the same name.

This seems like an unnecessary precaution, no? I would like to name my package something other than what people can use to import it, it seems to me that this use case should be supported.

Most helpful comment

Isn't the packages section what you want: https://poetry.eustace.io/docs/pyproject/#packages

Basically you would have:

[tool.poetry]
name = "pysignald"
# ...
packages = [
    {include = "signald"}
]

All 2 comments

Isn't the packages section what you want: https://poetry.eustace.io/docs/pyproject/#packages

Basically you would have:

[tool.poetry]
name = "pysignald"
# ...
packages = [
    {include = "signald"}
]

That fixed it, thank you! I didn't realize this was possible with packages.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ulope picture ulope  路  3Comments

nikaro picture nikaro  路  3Comments

Euphorbium picture Euphorbium  路  3Comments

EdgyEdgemond picture EdgyEdgemond  路  3Comments

mozartilize picture mozartilize  路  3Comments