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
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.
🤖 rsconnect-python no longer uses setuptools-scm. Since #808 (released in 1.30.0) the version is set in pyproject.toml and the package builds with uv_build, so a GitHub release tarball builds without git metadata. We checked by running uv build on a git archive export of main. Each release also publishes an sdist to PyPI (for example rsconnect_python-1.33.1.tar.gz). Closing as completed. If building from a release tarball still fails for you, please reopen with the command and the error.
Activity
tuxmaster5000 commentedon Oct 27, 2023
An possible solution will be using of "fallback_version" in the release tar ball:
https://setuptools-scm.readthedocs.io/en/latest/config/
tdstein commentedon Nov 10, 2026
🤖 rsconnect-python no longer uses setuptools-scm. Since #808 (released in 1.30.0) the version is set in
pyproject.tomland the package builds withuv_build, so a GitHub release tarball builds without git metadata. We checked by runninguv buildon agit archiveexport ofmain. Each release also publishes an sdist to PyPI (for examplersconnect_python-1.33.1.tar.gz). Closing as completed. If building from a release tarball still fails for you, please reopen with the command and the error.