hist icon indicating copy to clipboard operation
hist copied to clipboard

[BUG] Fails to build from a tarball: expects git to be present

Open yurivict opened this issue 2 years ago • 2 comments

Error:

LookupError: Error getting the version from source `vcs`: setuptools-scm was unable to detect version for /disk-samsung/freebsd-ports/misc/py-hist/work-py39/hist-2.6.1-31-g9d6543a.

Package builders typically use tarballs, not git clones.

Could you please make this error non-fatal or add a way to supply the version by the caller?

yurivict avatar Aug 07 '22 17:08 yurivict

Set SETUPTOOLS_SCM_PRETEND_VERSION to the version and it won’t require git.

I think we can actually make the git archive work by itself as well now with setuptools_scm 7+ and a recent copy of git (which GitHub has).

henryiii avatar Aug 07 '22 18:08 henryiii

SETUPTOOLS_SCM_PRETEND_VERSION helps, thanks.

yurivict avatar Aug 07 '22 18:08 yurivict

There should be a version setuptools_scm can use even in the tarball now.

henryiii avatar Sep 20 '22 03:09 henryiii