poetry-version-plugin icon indicating copy to clipboard operation
poetry-version-plugin copied to clipboard

adds "from" path to package location

Open gzt5142 opened this issue 1 year ago • 1 comments

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.

gzt5142 avatar Apr 30 '24 13:04 gzt5142

Would also really like this feature ! 😄

KoenBaak avatar May 14 '24 09:05 KoenBaak

Thanks for the patience with my reply! :sweat_smile:

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! :coffee:

tiangolo avatar Sep 08 '24 20:09 tiangolo