setuptools-scm was unable to detect version

From: Alexis Praga <>
Date: Wed, 02 Nov 2022 21:54:04 UTC

I'm trying to update textproc/py-sphinxext-opengraph to the latest version 0.7.2.
Both 0.7.2 and 0.7.1 fails with setuptools-scm unable to find the version but 0.7.0 build fine.
Errors are shown below.

Could it be that CHEESESHOP is not up-to-date ?


===> Configuring for py39-sphinxext-opengraph-0.7.1
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "", line 6, in <module>
File "/usr/local/lib/python3.9/site-packages/setuptools/", line 87, in setup
return distutils.core.setup(**attrs)
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/", line 139, in setup
_setup_distribution = dist = klass(attrs)
File "/usr/local/lib/python3.9/site-packages/setuptools/", line 476, in __init__
File "/usr/local/lib/python3.9/site-packages/setuptools/_distutils/", line 275, in __init__
File "/usr/local/lib/python3.9/site-packages/setuptools/", line 900, in finalize_options
File "/usr/local/lib/python3.9/site-packages/setuptools/", line 920, in _finalize_setup_keywords
ep.load()(self,, value)
File "/usr/local/lib/python3.9/site-packages/setuptools_scm/", line 75, in version_keyword
_assign_version(dist, config)
File "/usr/local/lib/python3.9/site-packages/setuptools_scm/", line 51, in _assign_version
File "/usr/local/lib/python3.9/site-packages/setuptools_scm/", line 106, in _version_missing
raise LookupError(
LookupError: setuptools-scm was unable to detect version for /usr/ports/textproc/py-sphinxext-opengraph/work-py39/sphinxext-opengraph-0.7.1.

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 use git+
*** Error code 1

make[1]: stopped in /usr/ports/textproc/py-sphinxext-opengraph
*** Error code 1

Stop.make: stopped in /usr/ports/textproc/py-sphinxext-opengraph