poetry-version-plugin
poetry-version-plugin copied to clipboard
`__init__.py` detection does not assume the existence of `from` specification of packages
If the project is organized like
root
|- src
| |- my_package
|- pyproject.toml
and pyproject.toml
is like
[tool.poetry]
...
packages = [
{ include = "my_package" from = "src" }
]
...
[tool.poetry-version-plugin]
source = "init"
then, the detection of __init__.py
fails.
It is because, I think, the __init__.py
detection logic here does not consider the from
value.
Same for me.
Fixed with #20 :slightly_smiling_face:
@tiangolo : If possible for you, would be great to incorporate PR https://github.com/tiangolo/poetry-version-plugin/pull/20. I'd love to use this plugin but because I use the src
structure, the current release version doesn't work for me :/.