-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Remove src/poetry/__init__.py
to convert to namespace package
#5614
Conversation
poetry.__init__
to convert to namespace packagesrc/poetry/__init__.py
to convert to namespace package
Any ideas why pre-commit is failing? |
pre-commit is failing because it explicitly bans implicit-namespace-packages: poetry/.pre-commit-config.yaml Line 39 in f33c9db
If this MR goes ahead you'll also need to fix things that are broken by implicit namespaces. mypy for instance, I think you'd want to set all of namespace_packages, explicit_package_bases, mypy_path - all as in poetry-core. However, since poetry-core has already done this - python-poetry/poetry-core#251 - there is already no collision of |
Thanks for the tip. I have resolved the errors that CI was raising. This PR should now be mergeable if the maintainers so choose.
AFAIK you are correct that there's no longer any technical reason this PR would be required. My personal preference would still be go ahead and make this package a proper PEP420 namespace package. If a third package is ever added to the |
This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Pull Request Check List
Resolves: #3735
The corresponding change was made in python-poetry/poetry-core@fa93845.