Starting from version 69.3.0, Setuptools canonicalizes filenames of a source distribution according to PEP 625. Notably, all hyphens (-) are replaced with underscores (_) in the distribution name.
That leads to the following error when installing previously built common packages during a testing job of the build workflow:
Run pip install dist/allure-python-commons*.tar.gz \
WARNING: Requirement 'dist/allure-python-commons*.tar.gz' looks like a filename, but the file does not exist
Processing ./dist/allure-python-commons*.tar.gz
ERROR: Could not install packages due to an OSError: [Errno 2] No such file or directory: '/home/runner/work/allure-python/allure-python/dist/allure-python-commons*.tar.gz'
If we run ls dist before pip install, we see the following content:
Although a simple fix of the pip install command would be enough, I've decided to eliminate caching altogether and replace it with direct installation from the corresponding directory. The caching doesn't save us anything:
Context
Starting from version 69.3.0, Setuptools canonicalizes filenames of a source distribution according to PEP 625. Notably, all hyphens (
-
) are replaced with underscores (_
) in the distribution name.That leads to the following error when installing previously built common packages during a testing job of the build workflow:
If we run
ls dist
beforepip install,
we see the following content:Although a simple fix of the
pip install
command would be enough, I've decided to eliminate caching altogether and replace it with direct installation from the corresponding directory. The caching doesn't save us anything:In fact, it only makes the build longer and more complicated.