Skip to content

Commit 2bd53f9

Browse files
gowridurgadgowridurgadHarithaVattikuti
authored
Documentation update for caching poetry dependencies (#908)
* Create testing.yml * Update testing.yml * Fix for parsing version number from TOML 1.0.0 pyproject.toml file * Delete .github/workflows/testing.yml * fixed license issue * updated the Note * updated doc * updated the doc * npm run build * Mark up corrections --------- Co-authored-by: gowridurgad <[email protected]> Co-authored-by: HarithaVattikuti <[email protected]>
1 parent 80b49d3 commit 2bd53f9

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Diff for: dist/setup/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -90514,7 +90514,7 @@ class PipenvCache extends cache_distributor_1.default {
9051490514
computeKeys() {
9051590515
return __awaiter(this, void 0, void 0, function* () {
9051690516
const hash = yield glob.hashFiles(this.patterns);
90517-
const primaryKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-python-${process.arch}-${this.pythonVersion}-${this.packageManager}-${hash}`;
90517+
const primaryKey = `${this.CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${process.arch}-python-${this.pythonVersion}-${this.packageManager}-${hash}`;
9051890518
const restoreKey = undefined;
9051990519
return {
9052090520
primaryKey,

Diff for: docs/advanced-usage.md

+1
Original file line numberDiff line numberDiff line change
@@ -319,6 +319,7 @@ steps:
319319
- run: poetry install
320320
- run: poetry run pytest
321321
```
322+
>**Note:** If the `setup-python` version does not match the version specified in `pyproject.toml` and the python version in `pyproject.toml` is less than the runner's python version, `poetry install` will default to using the runner's Python version.
322323

323324
**Using a list of file paths to cache dependencies**
324325
```yaml

0 commit comments

Comments
 (0)