Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
tuxmaster5000 opened this issue Oct 27, 2023 · 1 comment
Open

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

tuxmaster5000 opened this issue Oct 27, 2023 · 1 comment

Comments

@tuxmaster5000
Copy link
Contributor

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
Copy link
Contributor Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant