-
Notifications
You must be signed in to change notification settings - Fork 237
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a workflow to update dependencies #490
Merged
Merged
Changes from 1 commit
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
336db95
Add a workflow to update dependencies
mayeut 3b465d8
Fix a few things in update workflow
mayeut 17798c5
Use '--no-docker' to run dependency update using local pythons
mayeut 5ffc7e4
Only run the dependency update workflow manually
mayeut 55048c7
Update .github/workflows/update-dependencies.yml
mayeut 13b7ed3
Create constraints for all python versions
mayeut d0b61cd
Use manylinux2010_x86_64:latest to update dependencies
mayeut File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: Update dependencies | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
update-dependencies: | ||
name: Update dependencies | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
name: Install Python 3.9 | ||
with: | ||
python-version: 3.9 | ||
architecture: x64 | ||
- name: Install dependencies | ||
run: python -m pip install requests pip-tools | ||
- name: Run update | ||
run: python3 ./bin/update-dependencies.py | ||
- name: Create Pull Request | ||
#if: github.ref == 'refs/heads/master' && always() | ||
uses: peter-evans/create-pull-request@v3 | ||
with: | ||
commit-message: Update dependencies | ||
title: '[Bot] Update dependencies' | ||
body: | | ||
Update the versions of our dependencies. | ||
|
||
PR generated by "Update dependencies" [workflow](https://github.com/joerick/cibuildwheel/actions/runs/${{github.run_id}}). | ||
branch: update-dependencies-pr | ||
delete-branch: true | ||
draft: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
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.
I just realised... this command is implicitly run in python3.8, because that's what my venv is in on my mac >.< (maybe a little sloppy, sorry!). Could it be made explicit? Perhaps
38
and39
should be added to the list of versions and the default constraints.txt uses the final entry of this list? Then it should also be generated inside the docker container, so we're sure which version of Python is running it.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.
Shall we use a default
constraints.txt
at all ?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.
That's a great point. Maybe we don't need it at all, in fact!
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.
Oh, well actually our code does assert that it exists, currently
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.
It's also maybe useful as a starting point if somebody wanted to customise their constraints. But just copying the latest Python we support should do
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.
Done. I had to modify a test so I updated all dependencies. Anyway, I think I'll have to rebase on #489 anyway.