rsconnect-python icon indicating copy to clipboard operation
rsconnect-python copied to clipboard

[1.21.1] unable to build from tar.gz file

Open tuxmaster5000 opened this issue 2 years ago • 1 comments

The build fails with:

LookupError: setuptools-scm was unable to detect version for /builddir/build/BUILD/rsconnect-python-1.21.0.

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj

But an source package on PyPI don't exists.

tuxmaster5000 avatar Oct 27 '23 04:10 tuxmaster5000

An possible solution will be using of "fallback_version" in the release tar ball: https://setuptools-scm.readthedocs.io/en/latest/config/

tuxmaster5000 avatar Oct 27 '23 04:10 tuxmaster5000