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

adds "from" path to package location #58

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

gzt5142
Copy link

@gzt5142 gzt5142 commented Apr 30, 2024

The patch in this pull request adds support for the 'from' key in a package description.

Why?

I typically use 'src' layout for python projects:

project-name/
    README.md
    ...etc...
    pyproject.toml
    src/
        project_name/
            __init__.py
    tests/
        conftest.py
        test_stuff.py

With this line in my pyproject.toml:

packages = [  
    { include = "project_name", from = "src" },
]

The plugin was not finding the __init__.py with this sort of project layout, although poetry was finding the package just fine. The tweaks in this PR will follow the path indicated in the from key in a package description as above.

@KoenBaak
Copy link

Would also really like this feature ! 😄

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

Successfully merging this pull request may close these issues.

None yet

2 participants