The file exists and has a valid definition for the version variable. The one thing "special" in my case is that I have the variable typed. Below is an abbreviated version of my init.py file:
from typing import Final
__version__: Final[str] = "2.4.0"
If I remove the typing and write the version definition like __version__ = "2.4.0" collect works as expected.
Is it possible to make scriv work with typed variables to determine the version?
Loving scriv... thanks a lot.
In my case scriv errors out with the following exception when issuing
scriv collect
:scriv.exceptions.ScrivException: Couldn't find literal: 'literal: src/fedinesia/__init__.py: __version__'
The file exists and has a valid definition for the version variable. The one thing "special" in my case is that I have the variable typed. Below is an abbreviated version of my init.py file:
If I remove the typing and write the version definition like
__version__ = "2.4.0"
collect works as expected.Is it possible to make scriv work with typed variables to determine the version?