Else cache restore fails:
/usr/bin/tar: ../../../../../var/lib/clamav/main.cvd: Cannot open: Permission denied
/usr/bin/tar: ../../../../../var/lib/clamav/freshclam.dat: Cannot open: File exists
/usr/bin/tar: ../../../../../var/lib/clamav/daily.cvd: Cannot open: File exists
/usr/bin/tar: ../../../../../var/lib/clamav/bytecode.cvd: Cannot open: Permission denied
/usr/bin/tar: ../../../../../var/lib/clamav: Cannot utime: Operation not permitted
/usr/bin/tar: Exiting with failure status due to previous errors
Warning: Failed to restore: Tar failed with error: The process '/usr/bin/tar' failed with exit code 2
Cache not found for input keys: clamav-v1
cryptography 39 is causing problems on Ubuntu 22.04 for Sphinx
autosummary:
* AttributeError: module 'lib' has no attribute 'OpenSSL_add_all_algorithms'
Stop installing pdfminer.six which is causing cryptography to be
installed.
We don't care if the signatures are stale (we only need the EICAR virus
test signature), so run freshclam only if the cache is missing entirely.
Closes#709.
Also, use apt-get instead of apt to avoid
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
20181108 is the version used by the current Debian oldstable.
Ubuntu 20.04 LTS has 20191020.
pdfminer installs cryptography, >= 38 breaks pyOpenSSL < 22 as found in
Ubuntu 20.04 LTS. Update docs job to use ubuntu-22.04 to avoid
failures.
Drop code target, sphinx-autogen is not using conf.py, and since Sphinx
4.0 autosummary is generating stub pages by default anyway.
Mock ctypes and linkcheck.__main__: colorama.py imports MS Windows
libraries, autosummary executes __main__.py.
This is a partial revert of:
47d1015e ("Replace setuptools and setup.py with hatch and pyproject.toml", 2022-09-05)
Also hatch is an option to run tests.
All files stored in Git are included in the sdist, unless excluded with
tool.hatch.build.exclude.
Build artifacts listed in tool.hatch.build.artifacts are also included.
Expected to be used form a fork, it will create a branch man-updates,
based on the upstream repository with additional commits with the updates.
Then a pull request would be created to send the updates upstream.