juanep97 / iop4

IOP4, the Interactive Optical Photo-Polarimetric Python Pipeline.
https://juanep97.github.io/iop4/
BSD 3-Clause "New" or "Revised" License
5 stars 2 forks source link

Warnings in CI tests from setuptools_scm #42

Open juanep97 opened 10 months ago

juanep97 commented 10 months ago

This warning is repeated in the github CI Actions many times during tests

 /opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/setuptools_scm/git.py:163: UserWarning: "/home/runner/work/iop4/iop4" is shallow and may cause errors
  warnings.warn(f'"{wd.path}" is shallow and may cause errors')
/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/setuptools_scm/git.py:163: UserWarning: "/home/runner/work/iop4/iop4" is shallow and may cause errors
  warnings.warn(f'"{wd.path}" is shallow and may cause errors')
/opt/hostedtoolcache/Python/3.11.6/x64/lib/python3.11/site-packages/setuptools_scm/git.py:163: UserWarning: "/home/runner/work/iop4/iop4" is shallow and may cause errors
  warnings.warn(f'"{wd.path}" is shallow and may cause errors')

https://github.com/juanep97/iop4/actions/runs/7034575267/job/19142940434?pr=39

morcuended commented 10 months ago

I'll have a look

morcuended commented 10 months ago

Perhaps it is related to the fact that there was no tag yet.

juanep97 commented 10 months ago

Looks like it was the case, it does not appear in the last runs. Closing.

morcuended commented 10 months ago

I was about to comment. I still see the warnings there. Let's keep this open to not forget about it.

juanep97 commented 10 months ago

Can you point to the warnings? I don't see the warnings, at least in the last run: https://github.com/juanep97/iop4/actions/runs/7035783243/job/19146947713

morcuended commented 10 months ago

Open the Run tests (with -o log_cli...) drop-down section and search for shallow in the logs. First appearance in L639. It might be also related to a problem with versioning.

The warning already appears in the build package step.

morcuended commented 10 months ago

Found another error warning ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any

morcuended commented 10 months ago

And another

/tmp/build-env-38jhk5t9/lib/python3.10/site-packages/setuptools/command/build_py.py:207: _Warning: Package 'iop4lib._dev_version' is absent from the `packages` configuration.
morcuended commented 10 months ago

So the only warning still present is:

ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any

leaving this open until fixed.

It is a nuisance error message. (More info: https://github.com/pypa/setuptools_scm/issues/997)