-
Notifications
You must be signed in to change notification settings - Fork 503
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
pip-compile workflows failing #2177
Comments
What about adding an input to set the Python version?
Then we should be able to update the nox args with something like this:
|
I've thought about that; alternatively we could automatically figure out the right version from the branch. But I guess making the Python version configurable would be a first step, we can always improve it later on :) |
I think we can actually fix the noxfile to not require specifying a Python version in the session name. I'll take a look (probably this weekend). |
diff --git a/noxfile.py b/noxfile.py
index 9b53bc1d65..7904ab49e8 100644
--- a/noxfile.py
+++ b/noxfile.py
@@ -155,7 +155,7 @@ requirements_files = list(
)
-@nox.session(name="pip-compile", python=["3.11"])
+@nox.session(name="pip-compile", python="3.11")
@nox.parametrize(["req"], requirements_files, requirements_files)
def pip_compile(session: nox.Session, req: str):
""" and then $ nox -l | grep pip-compile
- pip-compile(requirements-relaxed)
- pip-compile(requirements)
- pip-compile(pr_labeler)
- pip-compile(spelling)
- pip-compile(formatters)
- pip-compile(tag)
- pip-compile(static)
- pip-compile(typing) as opposed to the previous $ nox -l | grep pip-compile
- pip-compile-3.11(typing)
- pip-compile-3.11(pr_labeler)
- pip-compile-3.11(spelling)
- pip-compile-3.11(static)
- pip-compile-3.11(formatters)
- pip-compile-3.11(tag)
- pip-compile-3.11(requirements)
- pip-compile-3.11(requirements-relaxed) |
from @felixfontein in #1920 (comment)
it's no longer possible to run the update dependency tasks for stable-2.17 and stable-2.16 in CI. On these two branches the workflows have been deleted, and if you try to run them from devel, it tries to run the update for Python 3.11, while both branches use other Python versions. This makes the workflow fail:
The text was updated successfully, but these errors were encountered: