You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Cache pip dependencies from pyproject.toml file (without requirements.txt) #502
Description:
Currently setup-python (v4) produces an error when trying to cache pip packages defined in a .pyproject.toml file instead of requirements.txt.
Error: No file in /home/runner/work/EMAworkbench/EMAworkbench matched to [**/requirements.txt], make sure you have checked out the target repository
It would be great if pip packages defined in a .pyproject.toml file could also be cached, without a requirements.txt file present. Support for caching defined extras (optional dependencies) would also be great.
Justification:
setup-python should support projects following the latest build and configuration standards.
Are you willing to submit a PR?
Not at this moment
Hello @EwoutH. Thank you for your feature request. The action uses requirements.txt file to generate hash for the primary key. You can override this file with cache-dependency-path.
Activity
dmitry-shibanov commentedon Sep 20, 2022
Hello @EwoutH. Thank you for your feature request. The action uses requirements.txt file to generate hash for the primary key. You can override this file with cache-dependency-path.
EwoutH commentedon Oct 11, 2022
Would it be useful to look for
.pyproject.tomlifrequirements.txtcan't be found? Or would that make things too complicated?Temporary fix for actions/setup-python#502
This might enable the caching.