diff --git a/pyproject.toml b/pyproject.toml index b4f468287..94fe712a2 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -23,7 +23,7 @@ classifiers=[ ] dependencies = [ "pulp-glue==0.41.0.dev", - "click>=8.0.0,<8.5", # Proven to not do semver. + "click>=8.0.0,<8.6", # Not SemVer, more like .. : https://palletsprojects.com/versions "PyYAML>=5.3,<6.1", "schema>=0.7.5,<0.8", "tomli>=2.0.0,<2.1;python_version<'3.11'", diff --git a/src/pulp_cli/generic.py b/src/pulp_cli/generic.py index 781c5e256..c0055236d 100644 --- a/src/pulp_cli/generic.py +++ b/src/pulp_cli/generic.py @@ -98,7 +98,7 @@ def show(self, file: t.IO[str] | None = None) -> None: # Format the message into file or STDERR. # Overwritten from base class to not print "Error: ". if file is None: - file = click.get_text_stream("stderr") + file = sys.stderr click.echo(self.format_message(), file=file)