Skip to content

Expose click API from cloup namespace - #205

Merged
janluke merged 3 commits into
masterfrom
expose-click-api
Sep 11, 2026
Merged

Expose click API from cloup namespace#205
janluke merged 3 commits into
masterfrom
expose-click-api

Conversation

@janluke

@janluke janluke commented Jun 8, 2026

Copy link
Copy Markdown
Owner

Closes #204

Summary

  • Re-export the complete public Click 8.5 top-level namespace from Cloup while retaining the intentional Cloup overrides.
  • Mirror Click's lazy deprecated aliases for as long as Click continues to provide them.
  • Update examples and documentation to describe the unified namespace.
  • Simplify the installation and dependency guidance.

Breaking changes

  • cloup._version is no longer included in cloup.__all__. Consequently, from cloup import * won't import _version. This symbol is private and was added purely by mistake.

  • cloup.warnings is no longer included in cloup.__all__. Consequently, from cloup import * will no longer import warnings and shadow the standard-library warnings module.

    Avoid from cloup import warnings, use:

    import cloup
    
    # example
    cloup.warnings.formatter_settings_conflict = False

Thanks @kdeldycke for the heads up!

@codecov

codecov Bot commented Sep 11, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.87%. Comparing base (27f5c74) to head (2fa0ab8).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #205      +/-   ##
==========================================
+ Coverage   96.86%   96.87%   +0.01%     
==========================================
  Files          22       22              
  Lines        1626     1633       +7     
==========================================
+ Hits         1575     1582       +7     
  Misses         51       51              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@janluke janluke added enhancement New feature or request breaking change This breaks backward compatibility labels Sep 11, 2026
@janluke
janluke merged commit 22a7a31 into master Sep 11, 2026
15 checks passed
@janluke
janluke deleted the expose-click-api branch September 11, 2026 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

breaking change This breaks backward compatibility enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Expose the complete click API

1 participant