Skip to content

Commit

Permalink
update noxfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ohmayr committed Sep 30, 2024
1 parent 3174c46 commit 4b7620b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,14 @@ def default(session, install_grpc=True, prerelease=False, install_async_rest=Fal
else:
constraints_type = ""

lib_with_extras = f".[{','.join(install_extras)}]" if len(install_extras) else "."
if prerelease:
install_prerelease_dependencies(
session,
f"{constraints_dir}/constraints-{constraints_type}{PYTHON_VERSIONS[0]}.txt",
)
# This *must* be the last install command to get the package from source.
session.install("-e", f".[{','.join(install_extras)}]", "--no-deps")
session.install("-e", lib_with_extras, "--no-deps")
else:
constraints_file = (
f"{constraints_dir}/constraints-{constraints_type}{session.python}.txt"
Expand All @@ -158,7 +159,7 @@ def default(session, install_grpc=True, prerelease=False, install_async_rest=Fal

session.install(
"-e",
f".[{','.join(install_extras)}]",
lib_with_extras,
"-c",
constraints_file,
)
Expand Down

0 comments on commit 4b7620b

Please sign in to comment.