Source: python-datetimerange
Version: 2.3.0-2
Severity: normal

Hi Thomas,


The version number is not know by the setuptools framework
during the build and the .deb files ends up containing
these weird 0.0.0 files. This has other impacts:
same weird output with 'pip list';
importlib.metadata.version() fails.

Please add a build-dependency on python3-setuptools-scm to fix this.

This should be a Lintian warning: 
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1034588

Sadly what should be an easy fix is actually breaking the build.

I don't know what "pkgos-dh_auto_install --no-py2 --in-tmp" does
so I cannot get further here.




Greetings

Alexandre





  File 
"/usr/lib/python3/dist-packages/setuptools_scm/_integration/version_inference.py",
 line 102, in infer_version_string
    _version_missing(config)
    ~~~~~~~~~~~~~~~~^^^^^^^^
  File "/usr/lib/python3/dist-packages/setuptools_scm/_get_version_impl.py", 
line 188, in _version_missing
    raise LookupError(error_msg)
LookupError: setuptools-scm was unable to detect version for 
/build/reproducible-path/python-datetimerange-2.3.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

Reply via email to