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

Regression in support for click 7.* in main branch (1.7.0dev, unreleased) #112

Closed
dwreeves opened this issue Jun 19, 2023 · 3 comments · Fixed by #113
Closed

Regression in support for click 7.* in main branch (1.7.0dev, unreleased) #112

dwreeves opened this issue Jun 19, 2023 · 3 comments · Fixed by #113
Labels
bug Something isn't working

Comments

@dwreeves
Copy link
Collaborator

dwreeves commented Jun 19, 2023

Was adding a matrix strategy to the CI and noticed the following:

git checkout main
pip install -U "click<8"
python examples/01_simple.py

Result: No output at all, and exit code 0.

I bring this up because the setup.py says that click>=7 is supported.

It's possible I can get around to fixing this as part of my CI changes. There is a hint as to at least one thing that may be going on with the pytest results.

@ewels ewels added the bug Something isn't working label Jun 19, 2023
@ewels
Copy link
Owner

ewels commented Jun 19, 2023

If it's too much hassle then I'm happy to drop support for Click 7 too. Click 8 was released over 2 years ago so it's been around a while. But if it's an easy fix, then.. 🤷🏻‍♂️

@dwreeves
Copy link
Collaborator Author

The actual fix in the code wasn't hard. I do need to however figure out how to fix the test suite breaking. I suppose if I cannot figure out how to fix the test suite we can just keep the fix in the code but not cover it by the tests/CI. But, let's just wait, I have a few more hours in me of work on this 7.x problem I haven't gotten to yet.

@dwreeves
Copy link
Collaborator Author

dwreeves commented Jun 19, 2023

Quick update on this. I did need to make a few changes to the code and to the test suite to get Click 7.x compatibility. I'll hopefully show my work soon.

The main thing I am struggling with right now is the suite of tests that use rich_config. For each of these, the output is blank. I'm deciding whether this is a feature that can be supported in 7.x or whether the user should be warned doesn't work.

Everything else is looking good though.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants