chore: fix pip-compile-multi by pinning a few deps#26913
Conversation
| # | ||
| -e file:. | ||
|
|
||
| # pinning these two dependencies that pip-compile-multi complained about |
There was a problem hiding this comment.
@mistercrunch this feels somewhat icky and will likely corner us in the future. Have you tried simply running pip-compile-multi --upgrade to give it a fighting chance of finding an eligible set of frozen dependencies.
There was a problem hiding this comment.
oh didn't know that was an option, let me re-try
There was a problem hiding this comment.
form pip-compile-multi --help
--upgrade / --no-upgrade Upgrade package version (default true)
Trying to run it I get the same error as above
|
I think there's no way around it short of changing the logic. Maybe there's a way to target different ranges of our top-level deps to avoid this fix, but I'm unclear on how to proceed for that. Note that currently I also noticed that dependabot seems to fail for python/pip, not sure if it's because of this issue, or something else. |
|
I can take a look later today to see if I can wrangle the issue. |
|
Awesome, please do! I'll put this on hold for now. |
|
Bonus point if you can get dependabot back on track :) |
|
@mistercrunch I don't have the ability to push to Author: John Bodley <john.bodley@gmail.com>
Date: Thu Feb 1 12:40:35 2024 +1300
Reconstrain dependencies
diff --git a/requirements/base.in b/requirements/base.in
index 2a3c58f84b..7a01a030dd 100644
--- a/requirements/base.in
+++ b/requirements/base.in
@@ -18,7 +18,7 @@
#
-e file:.
-# pinning these two dependencies that pip-compile-multi complained about
-# please oh please python overlords can you add support for diamond deps!
-urllib3[socks]==1.26.18
-referencing==0.31.0
+# The following constraints are currently required as these packages resolved to
+# different versions in different environments due to differing sets of dependencies.
+referencing>=0.28.0,<0.32.0 # jsonschema-path 0.3.2
+urllib3>=1.25.4,<1.27 # botocore 1.34.32
diff --git a/requirements/base.txt b/requirements/base.txt
index 4f876bd537..92ebd7190e 100644
--- a/requirements/base.txt
+++ b/requirements/base.txt
@@ -1,4 +1,4 @@
-# SHA1:4e4c4b98ddadacf7f8054c4afaa91bbc20c9f8e3
+# SHA1:f2d183fdbf060b653ccae2c5ce1ac2cba47e4255
#
# This file is autogenerated by pip-compile-multi
# To update, run:
@@ -13,7 +13,7 @@ amqp==5.2.0
# via kombu
apispec[yaml]==6.4.0
# via flask-appbuilder
-apsw==3.45.0.0
+apsw==3.45.1.0
# via shillelagh
async-timeout==4.0.3
# via redis
@@ -313,7 +313,7 @@ pyyaml==6.0.1
# apispec
redis==4.6.0
# via apache-superset
-referencing==0.31.0
+referencing==0.31.1
# via
# -r requirements/base.in
# jsonschema
diff --git a/requirements/development.txt b/requirements/development.txt
index ce34c9ae10..12d999ba81 100644
--- a/requirements/development.txt
+++ b/requirements/development.txt
@@ -14,9 +14,9 @@ astroid==3.0.2
# via pylint
asttokens==2.4.1
# via stack-data
-boto3==1.34.31
+boto3==1.34.32
# via tabulator
-botocore==1.34.31
+botocore==1.34.32
# via
# boto3
# s3transfer
@@ -92,7 +92,7 @@ rfc3986==2.0.0
# via tableschema
s3transfer==0.10.0
# via boto3
-sqloxide==0.1.39
+sqloxide==0.1.43
# via -r requirements/development.in
stack-data==0.6.3
# via ipython |
|
@john-bodley please re-open on |
I noticed dependabot wasn't really doing anything on the python side and also encountered issues while trying to bump a dependency before.
So I ran
pip-compile-multi, waited for minutes for it to do its thing, and got this error message:From there I guessed that I could pin those indirect dependencies to a number that satistified all of the things referenced in the "# via {some_lib}"
After fixing one I hit another bump and ended up with the two lines in
base.inthat unlocked the run and ultimately bumping all those libs here.🤞 pray for unit tests / CI to go through!