GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Include Python version in pip cache key by hugovk · Pull Request #303 · actions/setup-python

Conversation

@hugovk

@hugovk hugovk commented Dec 16, 2021 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Description:

Like we do for pipenv, let's include the Python version in the pip cache key.

Without it, PyPy jobs continually build wheels from source, which is slow, and they never make it into the pip cache because there are prebuilt wheels for CPython jobs already in the cache.

Related issue:

Fixes #288.
Fixes #304.

Check list:

  • Mark if documentation changes are required.
  • Mark if tests were added or updated to cover the changes.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Molkree, achimnol, and simonhkswan reacted with thumbs up emoji
All reactions
  • 👍 3 reactions
@hugovk hugovk mentioned this pull request Dec 16, 2021
PyPy3 wheels not uploaded to cache -> very slow builds #288
Closed
2 of 5 tasks
@hugovk
hugovk force-pushed the pip-cache-python-version branch from 6b3d987 to 45cf4cf Compare December 17, 2021 10:43
@MaksimZhukov
MaksimZhukov requested a review from dmitry-shibanov December 17, 2021 11:20
@nikita-bykov nikita-bykov mentioned this pull request Dec 17, 2021
Pip caching should include Python version in cache key #304
Closed
2 of 5 tasks
@dmitry-shibanov

dmitry-shibanov commented Dec 23, 2021

Copy link
Copy Markdown
Contributor

Hello @hugovk. Thank you for your pull request. Could you please sync with the main branch and run the npm run release command.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hugovk
hugovk force-pushed the pip-cache-python-version branch from 45cf4cf to 95b9974 Compare December 24, 2021 17:51
@hugovk

hugovk commented Dec 24, 2021

Copy link
Copy Markdown
Contributor Author

Done! After npm install and npm run release, there were unstaged changes in package-lock.json, but I didn't commit it, just the auto-staged dist/setup/index.js changed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hugovk
hugovk force-pushed the pip-cache-python-version branch from eba23d0 to 7ccd7e6 Compare January 1, 2022 11:47
@hugovk

hugovk commented Jan 1, 2022

Copy link
Copy Markdown
Contributor Author

Not sure why these are failing, they pass on my fork: https://github.com/hugovk/setup-python/actions/runs/1643387334

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@havogt havogt mentioned this pull request Jan 6, 2022
CI: Enable pip caching GridTools/gt4py#591
Closed
@hugovk hugovk mentioned this pull request Jan 12, 2022
Disable cache: 'pip' for unreleased Python versions #319
Closed
@dmitry-shibanov

dmitry-shibanov commented Jan 26, 2022

Copy link
Copy Markdown
Contributor

Hello @hugovk. Sorry for the late response. Could please sync with the main branch. Builds should be fixed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

hugovk added 2 commits January 26, 2022 18:02
@hugovk
Include Python version in pip cache key
4f512f8
@hugovk
npm run release
fcd6854
@hugovk
hugovk force-pushed the pip-cache-python-version branch from 7ccd7e6 to fcd6854 Compare January 26, 2022 16:02
@hugovk

hugovk commented Jan 26, 2022

Copy link
Copy Markdown
Contributor Author

Rebased and CI passes, thanks! ✅

simonhkswan reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dmitry-shibanov
dmitry-shibanov approved these changes Jan 27, 2022
View reviewed changes
MaksimZhukov
MaksimZhukov approved these changes Jan 27, 2022
View reviewed changes
@MaksimZhukov
MaksimZhukov merged commit ba33a69 into actions:main Jan 31, 2022
@MaksimZhukov

MaksimZhukov commented Jan 31, 2022

Copy link
Copy Markdown
Contributor

Hello @hugovk! Thank you for the contribution!

hugovk reacted with rocket emoji
All reactions
  • 🚀 1 reaction

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@hugovk
hugovk deleted the pip-cache-python-version branch January 31, 2022 10:43
@wmmc88 wmmc88 mentioned this pull request Feb 1, 2022
setup-python failing due to missing cache directory #328
Closed
3 tasks
@hugovk hugovk mentioned this pull request Feb 11, 2022
Enable testing with Python 3.11 pytest-dev/pytest#9511
Merged
tdfacer pushed a commit to ifit/setup-python that referenced this pull request Oct 7, 2025
@hugovk
Include Python version in pip cache key (actions#303)
7df4324
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

2 more reviewers
@dmitry-shibanov dmitry-shibanov dmitry-shibanov approved these changes
@MaksimZhukov MaksimZhukov MaksimZhukov approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Pip caching should include Python version in cache key PyPy3 wheels not uploaded to cache -> very slow builds

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@hugovk @dmitry-shibanov @MaksimZhukov
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.