We use Poetry / Docker.
I am having a serious problems with a repository. The PyPi version is old, however on Github there is a properly working version. So, in my pyproject.toml I have:
django-smart-selects = {git = "https://github.com/jazzband/django-smart-selects.git", branch = "master"}
This has worked fine for a good number of months. However, I have updated various packages and now when building the docker image I get:
LookupError: setuptools-scm was unable to detect version for /usr/local/src/django-smart-selects.
#0 21.63 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.
Obviously I searched (and searched) the internet for solutions. One suggestion is that Git is not installed, however, I tested with another package in the toml file:
python-docx = { git = "https://github.com/takis/python-docx.git", branch = "master" }
and that is still working just fine.
I cloned the smart-selects repository and tried to find where I could set a version myself. No luck so far.
Any help is appreciated, I am a bit lost for solutions.
p.s. I will move away from django-smart-selects, the maintenance seems to dwindle.