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

Namespace packages get collapsed into a single package #174

Open
ns-ggeorgiev opened this issue Aug 8, 2023 · 1 comment
Open

Namespace packages get collapsed into a single package #174

ns-ggeorgiev opened this issue Aug 8, 2023 · 1 comment
Labels

Comments

@ns-ggeorgiev
Copy link

Describe the bug
When two or more packages share namespace, the tools seems to believe that all of the files in the namespace belong to one of the packages (it seems like the first one alphabetically)

To Reproduce
Steps to reproduce the behavior:

  1. Create two packages as described here: https://packaging.python.org/en/latest/guides/packaging-namespace-packages/#pkgutil-style-namespace-packages

  2. Create app that imports files from both

  3. run the tool and observe the suggested list will not include one of the packages

Expected behavior
All packages that have imports should be included.

@damnever damnever added the bug label Aug 11, 2023
@damnever
Copy link
Owner

Could you please provide an environment with the minimum requirements to reproduce this issue?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants