You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oops, good catch. Looks like we should be using INIT_PY_SNIPPET (in src/setupfunc.py) as a template, and populate the import statement using the relative filename that we extract from versionfile_build. I'll see if I can assemble a test and a patch.
effigies
changed the title
Versionees does not write import inside __init__.py in accordance with versionfile_source
Versioneer does not write import inside __init__.py in accordance with versionfile_source
Sep 16, 2020
* Change __init__.py snippet to fix#123 and #218
* ENH: Add migration path for new snippet
Co-authored-by: Christopher J. Markiewicz <markiewicz@stanford.edu>
Example:
With that config
versioneer install
writes file__version__.py
, but in__init__.py
writes:Notice -
from ._version ...
, notfrom .__version__ ...
.The text was updated successfully, but these errors were encountered: