Skip to content

[1.21.1] unable to build from tar.gz file #520

Closed

Description

@tuxmaster5000

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.

Activity

  1. tuxmaster5000 commented on Oct 27, 2023

    @tuxmaster5000
    ContributorAuthor

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

  2. tdstein commented on Nov 10, 2026

    @tdstein
    Collaborator

    🤖 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions