Closed jorgepiloto closed 1 year ago
This is related with #44.
Pinging @koubaa.
This is not related at all to #44. #44 is about the version that is reported by the framework.
As I noted https://github.com/pythonnet/pythonnet/issues/1909#issuecomment-1250091669, you can just use importlib.metadata.version
to retrieve the version, I don't see any point in complicating the build process (which your PR doesn't even touch).
🐞 Problem The
__version__
attribute is not defined anywhere in the source code. Thedynamic
field is declared in thepyproject.toml
but there is no version specified in the__init__.py
top file.💡 Idea Declare this variable in the
__init__.py
file. Note the value of the__version__
needs to be updated every time a release is made.