Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support packages with different folder names #705

Closed
skorokithakis opened this issue Dec 6, 2018 · 3 comments
Closed

Support packages with different folder names #705

skorokithakis opened this issue Dec 6, 2018 · 3 comments

Comments

@skorokithakis
Copy link

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.

@sdispater
Copy link
Member

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"}
]

@skorokithakis
Copy link
Author

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

Copy link

github-actions bot commented Mar 3, 2024

This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants