Skip to content
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

Fix GitHub Actions Errors #59

Merged
merged 1 commit into from May 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/ci_requirements.txt
@@ -1,2 +1,2 @@
poetry==1.1.9
poetry==1.3.2
nox==2022.1.7
8 changes: 8 additions & 0 deletions noxfile.py
Expand Up @@ -21,6 +21,14 @@ def install_with_constraints(session, *args, **kwargs):
f"--output={requirements.name}",
external=True,
)
# Using sed to remove extras from the constraints file, thereby fixing the
# error "Constraints cannot have extras". A better solution might be to
# use `poetry install --only dev` but this requires a newer version of
# Poetry than we're using in our development environments. See
# https://github.com/jazzband/pip-tools/issues/1300#issuecomment-818122483
# for more info relating to the sed solution
sed_expression = r"s/\[.*\]//g"
session.run("sed", "-i", sed_expression, requirements.name, external=True)
session.install(f"--constraint={requirements.name}", *args, **kwargs)

try:
Expand Down