-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Allow to define package source dir in pyproject.toml #182
Comments
I'll note that the packages I want to switch to Poetry use namespace packing, so this issue is also relevant #167 |
I also need this. I have a project named |
In my organization, we put all of our code under one namespace
It would be great if poetry could support namespace packages for this reason. Would it be better to be able to configure the "source" directory in |
Namespace packages and custom package dir are two different features. |
I think it's fairly common for the PyPI name and package name to be different. https://pypi.org/project/minilog/ is used as Can this library be developed using Poetry? |
The |
Support PEP 660 hooks
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. |
Poetry has the convention of the package title being the same as the package dir name. However, this is not always the desired behavior.
Here's an example of a package called
foliantcontrib.includes
which is in fact exportsfoliant.preprocessors.includes
module. Insetup.py
, package name and the names of the exported packages are independent: https://github.com/foliant-docs/foliantcontrib.includes/blob/develop/setup.py#L23.Poetry could have an option
src
that would point to the source code path within the project path. By the way, this could be an alternative way to support src layout: you'd just setsrc: src/mypackage
.The text was updated successfully, but these errors were encountered: