Skip to content
This repository has been archived by the owner on Oct 12, 2024. It is now read-only.

adds "from" path to package location #58

Closed
wants to merge 1 commit into 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 ! 😄

@tiangolo
Copy link
Owner

tiangolo commented Sep 8, 2024

Thanks for the patience with my reply! 😅

I just marked this project as deprecated, I'm currently not using it and I think these ideas can be achieved in better ways: https://github.com/tiangolo/poetry-version-plugin#-warning-deprecated-

Given that I'll close this one, but thanks for the interest! ☕

@tiangolo tiangolo closed this Sep 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants