-
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 all commits
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,31 @@ | ||
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: python ./bin/update_dependencies.py | ||
- name: Create Pull Request | ||
if: github.ref == 'refs/heads/master' | ||
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/${{github.repository}}/actions/runs/${{github.run_id}}). | ||
branch: update-dependencies-pr | ||
delete-branch: 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
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
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
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
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
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,17 @@ | ||
# | ||
# This file is autogenerated by pip-compile | ||
# To update, run: | ||
# | ||
# bin/update_dependencies.py | ||
# | ||
appdirs==1.4.4 # via virtualenv | ||
delocate==0.8.2 # via -r cibuildwheel/resources/constraints.in | ||
distlib==0.3.1 # via virtualenv | ||
filelock==3.0.12 # via virtualenv | ||
six==1.15.0 # via virtualenv | ||
virtualenv==20.2.2 # via -r cibuildwheel/resources/constraints.in | ||
wheel==0.36.2 # via -r cibuildwheel/resources/constraints.in, delocate | ||
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
pip==20.3.3 # via -r cibuildwheel/resources/constraints.in | ||
setuptools==51.0.0 # via -r cibuildwheel/resources/constraints.in |
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,17 @@ | ||
# | ||
# This file is autogenerated by pip-compile | ||
# To update, run: | ||
# | ||
# bin/update_dependencies.py | ||
# | ||
appdirs==1.4.4 # via virtualenv | ||
delocate==0.8.2 # via -r cibuildwheel/resources/constraints.in | ||
distlib==0.3.1 # via virtualenv | ||
filelock==3.0.12 # via virtualenv | ||
six==1.15.0 # via virtualenv | ||
virtualenv==20.2.2 # via -r cibuildwheel/resources/constraints.in | ||
wheel==0.36.2 # via -r cibuildwheel/resources/constraints.in, delocate | ||
|
||
# The following packages are considered to be unsafe in a requirements file: | ||
pip==20.3.3 # via -r cibuildwheel/resources/constraints.in | ||
setuptools==51.0.0 # via -r cibuildwheel/resources/constraints.in |
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
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 |
---|---|---|
@@ -1,22 +1,22 @@ | ||
[x86_64] | ||
manylinux1 = quay.io/pypa/manylinux1_x86_64:2020-11-11-0f1f128 | ||
manylinux2010 = quay.io/pypa/manylinux2010_x86_64:2020-12-03-912b0de | ||
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2020-11-11-bc8ce45 | ||
manylinux1 = quay.io/pypa/manylinux1_x86_64:2020-12-18-c48c073 | ||
manylinux2010 = quay.io/pypa/manylinux2010_x86_64:2020-12-19-8df9e2d | ||
manylinux2014 = quay.io/pypa/manylinux2014_x86_64:2020-12-18-cb453dc | ||
|
||
[i686] | ||
manylinux1 = quay.io/pypa/manylinux1_i686:2020-11-11-0f1f128 | ||
manylinux2010 = quay.io/pypa/manylinux2010_i686:2020-12-03-912b0de | ||
manylinux2014 = quay.io/pypa/manylinux2014_i686:2020-11-11-bc8ce45 | ||
manylinux1 = quay.io/pypa/manylinux1_i686:2020-12-18-c48c073 | ||
manylinux2010 = quay.io/pypa/manylinux2010_i686:2020-12-19-8df9e2d | ||
manylinux2014 = quay.io/pypa/manylinux2014_i686:2020-12-18-cb453dc | ||
|
||
[pypy_x86_64] | ||
manylinux2010 = pypywheels/manylinux2010-pypy_x86_64:2020-11-21-a03b9e9 | ||
manylinux2010 = pypywheels/manylinux2010-pypy_x86_64:2020-12-11-f1e0e80 | ||
|
||
[aarch64] | ||
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2020-11-11-bc8ce45 | ||
manylinux2014 = quay.io/pypa/manylinux2014_aarch64:2020-12-18-cb453dc | ||
|
||
[ppc64le] | ||
manylinux2014 = quay.io/pypa/manylinux2014_ppc64le:2020-11-11-bc8ce45 | ||
manylinux2014 = quay.io/pypa/manylinux2014_ppc64le:2020-12-18-cb453dc | ||
|
||
[s390x] | ||
manylinux2014 = quay.io/pypa/manylinux2014_s390x:2020-11-11-bc8ce45 | ||
manylinux2014 = quay.io/pypa/manylinux2014_s390x:2020-12-18-cb453dc | ||
|
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.
Is there a reason to still have a default
constraints.txt
file?I thought the reason it's there is because 3.8 and 3.9 currently have the exact same version file?
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.
see @joerick comments #490 (comment) on his review.
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.
Yeah, I saw, but to start customizing your own constraints, you could also start from
constraints-python39.txt
?constraints.txt
feels like a historical remainder, somehow. But ofc, it's not wrong; I was just thinking if it's not better to get a reminder (in the form of a failing CI), when we add 3.10, and future versions tocibuildwheel
?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 think it's simpler just to have one per version. "But just copying the latest Python we support should do" I think is exactly what @YannickJadoul is referring to here.
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.
Yeah, we're coming from a situation at the start where we only had one
constraints.txt
. Then 2.7 started acting up, and we hadconstraints-python2.7.txt
, then 3.5, then 3.6, ... and now, there seems to be the realization that just having a separate file for all is better.So why not just ditch the "default", then, if falling back to the default is a mistake?
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.
Not that crucial, though. Just wondering if there's a good reason. (There's nothing else to nitpick about, so I need to find something? I very much like the idea and rest of the PR :-) )
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.
@YannickJadoul, @henryiii, I agree and proposed to do so. Final decision left to @joerick.
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.
Right. Sorry; should have added my comment to that thread, then :-)
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'm happy to go with that - that we don't bundle a constraints.txt. I think as @YannickJadoul says, the version-specific ones appeared to solve specific problems, but version-specific is probably a more robust solution. We'll have to remove this line but that's not a huge deal, I think.
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.
Hmmm, looking at that code, I'm now seeing it's because we want to keep supporting a default
constraints.txt
for users.I'm fine either way, then! As you see fit, @mayeut. Sorry about the confusion!