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

Support namespace packages #43

Closed
Stealthii opened this issue Nov 7, 2023 · 1 comment
Closed

Support namespace packages #43

Stealthii opened this issue Nov 7, 2023 · 1 comment

Comments

@Stealthii
Copy link

Currently poetry-version-plugin trips over namespace packages as no __init__.py is present in the parent namespace.

Example package: mycompany-mypackage
Path: mycompany/mypackage/__init__.py
Poetry config:

[tool.poetry]
packages = [
   {include = "mycompany", from = "."},
]
[tool.poetry-version-plugin]
source = "init"

Output:

poetry-version-plugin: __init__.py file not found at mycompany/__init__.py cannot extract dynamic version
poetry-version-plugin: __init__.py file not found at mycompany/__init__.py cannot extract dynamic version
@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 as completed Sep 8, 2024
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

No branches or pull requests

2 participants