Control: reassign -1 src:asdf-wcs-schema
Hi Ole (2023.09.16_09:28:47_-0400)
Reassigning this bug as it's not a bug in "build" but a limitation of
the environment Debian packages build in.
I am trying to build the package "asdf-wcs-schema"
https://salsa.debian.org/debian-astro-team/asdf-wcs-schemas
This package uses setuptools-scm, and the relavent mechanism that you're
looking at is:
https://setuptools-scm.readthedocs.io/en/latest/usage/#file-finders-hook-makes-most-of-manifestin-unnecessary
With the normal build procedure, the build does not include the data
files see f.e.
https://salsa.debian.org/debian-astro-team/asdf-wcs-schemas/-/jobs/4706731
I traced this down to the "python3 -m build" call, which is
python3.11 -m build --skip-dependency-check --no-isolation --wheel
--outdir /builds/debian-astro-team/asdf-wcs-schemas/debian/output/source_dir/.pybuild/cpython3_3.11
Running this command locally on a system with just the build deps
installed does (with the environment variable
SETUPTOOLS_SCM_PRETEND_VERSION=0.2.0) not include the data files.
However, when I install the "git" package, the data files are
included.
That would happen if you are running out of a git checkout, but archive
package builds happen from source packages that don't include a .git
directory. So there is no way to get the list of files from git.
Instead, if you use PyPI as your source, instead of github, you will get
egg-info that includes a SOURCES.txt describing all the files that were
known to git when the sdist was built.
If this file is present (currently
asdf_wcs_schemas-0.5.0/src/asdf_wcs_schemas.egg-info/SOURCES.txt) then
setuptools-scm will see it and generate the correct file list.
Stefano
--
Stefano Rivera
http://tumbleweed.org.za/
+1 415 683 3272