When using versioneer to build conda-forge packages from GitHub archives, strings that were substituted into _version.py upon git archive are used to determine the version number during the conda-forge recipe build. Since git archive support is not included in version-pioneer, version inference fails during conda-forge recipe builds: instead, inferred versions are based on (incorrect) tags taken from a git repo on the build machine that contains the downloaded source code several directories down.
I'm going to try to get git archive working at least in my use case by editing the _version.py file. Not sure if there's an appetite to restore git archive support more widely - if not, hopefully my experience is nonetheless useful if anyone else wants to use version-pioneer with conda-forge (will link my version script in case useful for anyone if I get things working)
(Edited since I realised an earlier alternative attempt at fixing my conda-forge build wouldn't work)
When using versioneer to build conda-forge packages from GitHub archives, strings that were substituted into
_version.pyupongit archiveare used to determine the version number during the conda-forge recipe build. Sincegit archivesupport is not included in version-pioneer, version inference fails during conda-forge recipe builds: instead, inferred versions are based on (incorrect) tags taken from a git repo on the build machine that contains the downloaded source code several directories down.I'm going to try to get
git archiveworking at least in my use case by editing the _version.py file. Not sure if there's an appetite to restoregit archivesupport more widely - if not, hopefully my experience is nonetheless useful if anyone else wants to use version-pioneer with conda-forge (will link my version script in case useful for anyone if I get things working)(Edited since I realised an earlier alternative attempt at fixing my conda-forge build wouldn't work)