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 — Add poetry caching support by patrick91 · Pull Request #281 · actions/setup-python

Conversation

@patrick91

@patrick91 patrick91 commented Nov 24, 2021 •
edited
Loading

Uh oh!

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

Copy link
Copy Markdown
Contributor

Description:
A continuation of #266 to add support for caching poetry's virtualenv

This is still draft, I need to implement the actual caching, but it is good to start running the tests early :)

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.

gcangussu, dwallace0723, edgarrmondragon, browniebroke, ruohola, Zxilly, psirenny, JJ, kfoxb, disrupted, and 14 more reacted with thumbs up emoji parisk, amureki, jidicula, matiashf, HotThoughts, playpauseandstop, gcangussu, dwallace0723, noirbizarre, floatingpurr, and 13 more reacted with hooray emoji amureki, jidicula, gcangussu, branchv, edgarrmondragon, noirbizarre, encukou, browniebroke, dimaqq, psirenny, and 10 more reacted with heart emoji
All reactions
  • 👍 24 reactions
  • 🎉 23 reactions
  • ❤️ 20 reactions
@patrick91
patrick91 force-pushed the feature/poetry-caching branch from 7dc18af to 63a127c Compare November 24, 2021 19:58
patrick91
patrick91 commented Nov 24, 2021
View reviewed changes
Comment thread __tests__/cache-restore.test.ts Resolved

Uh oh!

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

Comment thread src/cache-distributions/poetry-cache.ts Resolved

Uh oh!

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

Comment thread .github/workflows/e2e-cache.yml Resolved

Uh oh!

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

@patrick91
patrick91 force-pushed the feature/poetry-caching branch from f1b64ab to 63a127c Compare November 27, 2021 11:27
@patrick91
patrick91 marked this pull request as ready for review November 27, 2021 17:20
@patrick91

patrick91 commented Nov 27, 2021

Copy link
Copy Markdown
Contributor Author

I've tested this here: https://github.com/patrick91/test-action-poetry-cache/runs/4341929604?check_suite_focus=true

All reactions

Sorry, something went wrong.

Uh oh!

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

@patrick91
patrick91 force-pushed the feature/poetry-caching branch from da28c46 to 99a5f2b Compare November 27, 2021 17:20
@nikita-bykov nikita-bykov mentioned this pull request Dec 15, 2021
Built-in caching for poetry dependencies #298
Closed
@floatingpurr

floatingpurr commented Dec 22, 2021

Copy link
Copy Markdown

Great improvement!

All reactions

Sorry, something went wrong.

Uh oh!

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

@browniebroke browniebroke mentioned this pull request Jan 14, 2022
replace the old building and packaging tools with poetry cookiecutter/cookiecutter#1638
Closed
@dimaqq

dimaqq commented Jan 20, 2022

Copy link
Copy Markdown

Keep going! :)

All reactions

Sorry, something went wrong.

Uh oh!

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

@Zxilly

Zxilly commented Jan 30, 2022

Copy link
Copy Markdown
Contributor

Any update on this?

All reactions

Sorry, something went wrong.

Uh oh!

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

@patrick91
patrick91 force-pushed the feature/poetry-caching branch from 99a5f2b to 0f8afe0 Compare January 31, 2022 14:39
@patrick91

patrick91 commented Jan 31, 2022

Copy link
Copy Markdown
Contributor Author

Any update on this?

I've rebased the PR, but we have to wait the mainteners to review the PR. They are probably busy with other priorities so we'll probably have to wait a bit 😊

edgarrmondragon, JJ, paveltsialnou, XF-FW, Zxilly, rupurt, and Cajuteq reacted with thumbs up emoji
All reactions
  • 👍 7 reactions

Sorry, something went wrong.

Uh oh!

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

@DMRobertson DMRobertson mentioned this pull request Feb 2, 2022
GitHub action to setup poetry matrix-org/setup-python-poetry#1
Merged
dmitry-shibanov
dmitry-shibanov reviewed Feb 18, 2022
View reviewed changes
Comment thread .github/workflows/e2e-cache.yml Resolved

Uh oh!

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

Comment thread __tests__/data/.tool-versions Resolved

Uh oh!

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

Comment thread src/cache-distributions/poetry-cache.ts Resolved

Uh oh!

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

Comment thread src/cache-distributions/poetry-cache.ts Resolved

Uh oh!

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

@dmitry-shibanov

dmitry-shibanov commented Feb 18, 2022

Copy link
Copy Markdown
Contributor

Could you please sync with the main branch ?

All reactions

Sorry, something went wrong.

Uh oh!

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

@patrick91 patrick91 closed this Feb 18, 2022
@patrick91
patrick91 force-pushed the feature/poetry-caching branch from 0f8afe0 to 7f80679 Compare February 18, 2022 17:25
@patrick91

patrick91 commented Feb 18, 2022

Copy link
Copy Markdown
Contributor Author

I closed this by mistake :) @dmitry-shibanov the PR should be up to date now!

Zxilly reacted with hooray emoji
All reactions
  • 🎉 1 reaction

Sorry, something went wrong.

Uh oh!

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

@patrick91 patrick91 reopened this Feb 18, 2022
@dmitry-shibanov

dmitry-shibanov commented Feb 21, 2022

Copy link
Copy Markdown
Contributor

Hello @patrick91. Could you please run these commands:

  • npm run build
  • npm run format
patrick91 reacted with thumbs up emoji
All reactions
  • 👍 1 reaction

Sorry, something went wrong.

Uh oh!

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

@patrick91

patrick91 commented Feb 21, 2022

Copy link
Copy Markdown
Contributor Author

@dmitry-shibanov done!

All reactions

Sorry, something went wrong.

Uh oh!

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

@patrick91
patrick91 force-pushed the feature/poetry-caching branch from 92cd993 to a1cc6a7 Compare February 21, 2022 17:02
@patrick91

patrick91 commented Feb 25, 2022

Copy link
Copy Markdown
Contributor Author

Not 100% sure why the CI failied, I'll try to take a look soon, maybe a rebase helps 😊

rupurt and Zxilly reacted with thumbs up emoji
All reactions
  • 👍 2 reactions

Sorry, something went wrong.

Uh oh!

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

@patrick91
patrick91 force-pushed the feature/poetry-caching branch 2 times, most recently from 57c8ee5 to a580a2d Compare February 26, 2022 04:19
@patrick91

patrick91 commented Mar 7, 2022

Copy link
Copy Markdown
Contributor Author

Rebased this again :)

marqueurs404, rc-mattschwager, tony, and edran reacted with thumbs up emoji Zxilly, Cajuteq, rc-mattschwager, tony, rupurt, edran, and bencevans reacted with hooray emoji dio, matthew-mcallister, rc-mattschwager, tony, rupurt, edran, and bencevans reacted with heart emoji
All reactions
  • 👍 4 reactions
  • 🎉 7 reactions
  • ❤️ 7 reactions

Sorry, something went wrong.

Uh oh!

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

@patrick91
patrick91 force-pushed the feature/poetry-caching branch from a580a2d to 86304bc Compare March 7, 2022 02:31
@m0ar

m0ar commented Mar 9, 2022

Copy link
Copy Markdown

Super stoked for this! Keep the good work up @patrick91 💘

All reactions

Sorry, something went wrong.

Uh oh!

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

@rc-mattschwager

rc-mattschwager commented Mar 25, 2022

Copy link
Copy Markdown

Friendly bump here, can a maintainer at least approve the CI workflows so the submitter can see if everything's still passing?

First-time contributors need a maintainer to approve running workflows.

brcrista and rupurt reacted with thumbs up emoji Zxilly, bencevans, branchv, disrupted, and gruzewski reacted with eyes emoji
All reactions
  • 👍 2 reactions
  • 👀 5 reactions

Sorry, something went wrong.

Uh oh!

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

patrick91 added 8 commits March 25, 2022 22:53
@patrick91
Add tests
1259541
@patrick91
Add more tests
7c950eb
@patrick91
Release
c275cf4
@patrick91
Parse values from poetry
42ed863
@patrick91
Reduce test matrix
415c356
@patrick91
Remove unused file
0ebf799
@patrick91
Remove console.log
b0c8e3d
@patrick91
Build and format
aac0ef9
@patrick91
patrick91 force-pushed the feature/poetry-caching branch from 86304bc to aac0ef9 Compare March 26, 2022 03:54
@patrick91
patrick91 requested a review from a team March 26, 2022 03:54
@patrick91
Initialise pyproject.toml
e4be7a4
@patrick91

patrick91 commented Mar 29, 2022

Copy link
Copy Markdown
Contributor Author

@dmitry-shibanov pipenv seems to fail on main too, shall I sent a PR to try and fix that?

Also I did rebase and ran npm run build && npm run format, but the check is still failing 🤔

image

All reactions

Sorry, something went wrong.

Uh oh!

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

@brcrista

brcrista commented Mar 30, 2022

Copy link
Copy Markdown
Contributor

@patrick91 I looked at that failure briefly but couldn't figure it out. If you know what the issue is and want to submit a separate PR, that would be great. Otherwise, we don't need to block this on that.

What you do need to fix is the check-dist failure. You can just download the artifact from that run and check it in.

All reactions

Sorry, something went wrong.

Uh oh!

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

@patrick91
Update dist
7a37d78
@patrick91

patrick91 commented Mar 30, 2022

Copy link
Copy Markdown
Contributor Author

@brcrista done 😊

rc-mattschwager and ruohola reacted with rocket emoji
All reactions
  • 🚀 2 reactions

Sorry, something went wrong.

Uh oh!

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

brcrista
brcrista reviewed Mar 30, 2022
View reviewed changes
Comment thread src/cache-distributions/poetry-cache.ts Resolved

Uh oh!

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

patrick91 and others added 2 commits March 30, 2022 22:41
@patrick91 @brcrista
Use \n instead of os.EOL
6c31eb3
Co-authored-by: Brian Cristante <[email protected]>
@patrick91
Update dist
7aa3e95
brcrista
brcrista approved these changes Mar 31, 2022
View reviewed changes

@brcrista brcrista left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @patrick91!

Sorry, something went wrong.

Uh oh!

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

rc-mattschwager, Zxilly, edgarrmondragon, KSmanis, patrick91, disrupted, and branchv reacted with hooray emoji
All reactions
  • 🎉 7 reactions
@brcrista
brcrista merged commit 6c56602 into actions:main Mar 31, 2022
@Zxilly

Zxilly commented Mar 31, 2022

Copy link
Copy Markdown
Contributor

nice work

All reactions

Sorry, something went wrong.

Uh oh!

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

@patrick91
patrick91 deleted the feature/poetry-caching branch March 31, 2022 21:44
@m0ar

m0ar commented Apr 1, 2022

Copy link
Copy Markdown

@patrick91 Thank you! 🧁 💘

All reactions

Sorry, something went wrong.

Uh oh!

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

@tiwarishub tiwarishub mentioned this pull request Apr 1, 2022
dist fix #367
Merged
2 tasks
@tony tony mentioned this pull request Apr 2, 2022
ci(tests): Use poetry cache action vcs-python/libvcs#316
Merged
tony added a commit to vcs-python/libvcs that referenced this pull request Apr 2, 2022
@tony
ci(tests): Use poetry cache action (#316)
87163d0
As of yesterday, `@actions/setup-python@v3` supports this via v3.1.0: [Release](https://github.com/actions/setup-python/releases/tag/v3.1.0), [Tag](https://github.com/actions/setup-python/tree/v3.1.0), actions/setup-python#281

```yaml
steps:
- uses: actions/checkout@v3
- name: Install poetry
  run: pipx install poetry
- uses: actions/setup-python@v3
  with:
    python-version: '3.9'
    cache: 'poetry'
- run: poetry install
- run: poetry run pytest
```

 See also: python-poetry/poetry#4205
tony added a commit to vcs-python/libvcs that referenced this pull request Apr 2, 2022
@tony
tests(ci): Fix python version with poetry caching and actions/setup-p…
5637efc
…ython@v3

poetry install will pick up the python binary at the time it was
installed (before actions/python ran) so it looks like poetry env needs
to be set manually.

https://github.com/actions/setup-python/releases/tag/v3.1.0
https://github.com/actions/setup-python/tree/v3.1.0
actions/setup-python#281
@tony tony mentioned this pull request Apr 3, 2022
v3.1's default poetry example uses wrong python version #374
Closed
2 of 5 tasks
@jaagut jaagut mentioned this pull request May 17, 2022
Actions: Caching workflow dependencies: poetry package manager is missing github/docs#17926
Closed
1 task done
tdfacer pushed a commit to ifit/setup-python that referenced this pull request Oct 7, 2025
@brcrista
Merge pull request actions#281 from patrick91/feature/poetry-caching
f5e4caf
Add poetry caching support
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 left review comments
@brcrista brcrista brcrista 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.

Uh oh!

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

8 participants

@patrick91 @floatingpurr @dimaqq @Zxilly @dmitry-shibanov @m0ar @rc-mattschwager @brcrista
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.