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

_virtual_env: add --no-input to all invocations #707

Merged
merged 3 commits into from
Dec 19, 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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ All versions prior to 0.0.9 are untracked.

* `pip-audit`'s minimum Python version is now 3.8.

### Fixed

* Fixed a hang caused by auditing requirements when resolving against
an index that requires authentication, causing `pip` to wait indefinitely
for credentials ([#707](https://github.com/pypa/pip-audit/pull/707))

## [2.6.1]

### Fixed
Expand Down
3 changes: 3 additions & 0 deletions pip_audit/_virtual_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,11 +116,14 @@ def post_setup(self, context: SimpleNamespace) -> None:
# windows, see GitHub issue #646.

# Install our packages
# NOTE(ww): We pass `--no-input` to prevent `pip` from indefinitely
# blocking on user input for repository credentials.
package_install_cmd = [
context.env_exe,
"-m",
"pip",
"install",
"--no-input",
*self._index_url_args,
"--dry-run",
"--report",
Expand Down
7 changes: 6 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,12 @@ dependencies = [
requires-python = ">=3.8"

[project.optional-dependencies]
test = ["coverage[toml]", "pretend", "pytest", "pytest-cov"]
test = [
"coverage[toml] ~= 7.0, != 7.3.3", # https://github.com/nedbat/coveragepy/issues/1713
"pretend",
"pytest",
"pytest-cov",
]
lint = [
# NOTE(ww): ruff is under active development, so we pin conservatively here
# and let Dependabot periodically perform this update.
Expand Down