Skip to content
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
10 changes: 10 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
UNRELEASED
----------

* Require ``click>=8.5.0``. This drops a Windows-only workaround that monkey-patched
``click.utils.auto_wrap_for_ansi`` to force raw ANSI codes through when ``--force-color``
was used; click 8.5.0 removed its colorama-based wrapping on Windows entirely, which made
the attribute disappear (breaking ``deps`` on click 8.5.0+) and made the workaround
unnecessary, since ``echo()`` already writes raw ANSI codes when ``color=True`` is passed
explicitly.

1.7.0 (2026-06-01)
------------------

Expand Down
6 changes: 1 addition & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@ authors = [
]
requires-python = ">=3.10"
dependencies = [
"click>=7.0",
"colorama>=0.4",
"click>=8.5.0",
"importlib-metadata>=8.7.0",
"jinja2>=3.1",
"pyyaml>=6.0.2",
Expand All @@ -26,9 +25,6 @@ deps = "deps.deps_cli:main_func"

[dependency-groups]
dev = [
# click 8.2.1 has a bug regarding bool flags and env vars: https://github.com/pallets/click/pull/2956
# this breaks test_force_color in our test suite.
"click>=8.1,!=8.2.*",
"pre-commit>=4.3.0",
"pytest>=9.0.3",
"pytest-mock>=3.14.1",
Expand Down
7 changes: 0 additions & 7 deletions src/deps/deps_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -918,15 +918,9 @@ def cli(

initial_time = time.time()
global _click_echo_color
original_auto_wrap_for_ansi = click.utils.auto_wrap_for_ansi
try:
if force_color:
_click_echo_color = True
if sys.platform == "win32":
# Click always wrap the output stream on windows calling
# `click.utils.auto_wrap_for_ansi`, setting to `None` causes ansi escape codes to
# be output.
click.utils.auto_wrap_for_ansi = None

directories = find_directories(project)

Expand Down Expand Up @@ -987,7 +981,6 @@ def required_files_filter(dependency: Dep, quiet: bool) -> bool:
sys.exit(execution_return[-1] if execution_return else 1)
finally:
_click_echo_color = None
click.utils.auto_wrap_for_ansi = original_auto_wrap_for_ansi


@contextmanager
Expand Down
15 changes: 4 additions & 11 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading