-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
How to generate this setup.py for a namespace subpackage? #356
Comments
I think this sounds related: #167 |
Your I've been able to use namespace packages in Poetry just fine, but my use case is slightly different. I don't have projects that share innermost (leaf) packages, so I'm not sure if this will work for you. I have two projects,
This is how I use
This picks up
Installing both places the files in the correct directories. |
Sorry, I've updated the link. Thanks for the code sample, I'll try to do something similar and report the result. |
|
@RaptDept [ValueError]
C:\Users\moigagoo\Projects\foliantcontrib.bump\foliant.cli does not contain any element
|
It turns out, putting |
See my solution here: #167 (comment) |
@dfee it's 404 unfortunately. |
@moigagoo Updated the link, glad you'd already found it. |
@moigagoo I'm not understanding how your project doesn't follow the PEP420 guidelines. Is it because you don't have and |
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. |
Question
Hi!
I'm moving all my projects to Poetry and have issues with some of them. Namely, it's packages that are subpackages to a bigger project.
Here is one example: https://github.com/foliant-docs/foliantcontrib.bump. It's an extension for https://github.com/foliant-docs/foliant.
It means that during installation, the file
foliant/cli/bump.py
should be placed infoliant/cli
folder in Foliant installation. To accomplish this, I'm using namespace package in setup.py.I haven't found a way to achieve the same thing with Poetry. Tried using
packages
in pyproject.toml, but that gives me a package namecli
, notfoliant.cli
.The text was updated successfully, but these errors were encountered: