Skip to content

Lock click to older version #200

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

Merged
merged 5 commits into from
Jul 10, 2025
Merged

Lock click to older version #200

merged 5 commits into from
Jul 10, 2025

Conversation

sjmonson
Copy link
Collaborator

The latest version of click has dropped support for python 3.9 and has additionally introduced breaking interface changes. Until we drop python 3.9, lock to the last supported click version. Additionally types-click has been deprecated since click 8.0.0 so remove it.

@sjmonson sjmonson requested a review from markurtz June 25, 2025 16:12

📦 Build Artifacts Available
The build artifacts (.whl and .tar.gz) have been successfully generated and are available for download: https://github.com/neuralmagic/guidellm/actions/runs/15881569980/artifacts/3403027462.
They will be retained for up to 30 days.

@sjmonson sjmonson self-assigned this Jun 27, 2025
@sjmonson sjmonson requested a review from jaredoconnell June 27, 2025 20:43

📦 Build Artifacts Available
The build artifacts (.whl and .tar.gz) have been successfully generated and are available for download: https://github.com/neuralmagic/guidellm/actions/runs/15935756417/artifacts/3422364854.
They will be retained for up to 30 days.

jaredoconnell
jaredoconnell previously approved these changes Jun 27, 2025
Copy link
Collaborator

@jaredoconnell jaredoconnell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but we need to get the CI to pass. Is the error present in main, or is the version change causing a new error, is is it exposing one that wasn't there before?

Copy link
Collaborator

@markurtz markurtz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sjmonson can you take a look at these again with the build jobs failing for pre-commit and type checks? I believe it's due to removing the types-click from pre commit config and types-click from the toml. Can we pin those to the latest version before 8.0 rather than removing?

📦 Build Artifacts Available
The build artifacts (.whl and .tar.gz) have been successfully generated and are available for download: https://github.com/neuralmagic/guidellm/actions/runs/16198359555/artifacts/3505294957.
They will be retained for up to 30 days.

📦 Build Artifacts Available
The build artifacts (.whl and .tar.gz) have been successfully generated and are available for download: https://github.com/neuralmagic/guidellm/actions/runs/16198587450/artifacts/3505381737.
They will be retained for up to 30 days.

📦 Build Artifacts Available
The build artifacts (.whl and .tar.gz) have been successfully generated and are available for download: https://github.com/neuralmagic/guidellm/actions/runs/16199269680/artifacts/3505660148.
They will be retained for up to 30 days.

📦 Build Artifacts Available
The build artifacts (.whl and .tar.gz) have been successfully generated and are available for download: https://github.com/neuralmagic/guidellm/actions/runs/16199269680/artifacts/3505702675.
They will be retained for up to 30 days.

📦 Build Artifacts Available
The build artifacts (.whl and .tar.gz) have been successfully generated and are available for download: https://github.com/neuralmagic/guidellm/actions/runs/16200329690/artifacts/3506070821.
They will be retained for up to 30 days.

📦 Build Artifacts Available
The build artifacts (.whl and .tar.gz) have been successfully generated and are available for download: https://github.com/neuralmagic/guidellm/actions/runs/16201460539/artifacts/3506529818.
They will be retained for up to 30 days.

@sjmonson
Copy link
Collaborator Author

@markurtz Fixed linting failures; types-click was deprecated in click 8.0 (last update Nov 2021) so it was masking some incompatibilities.

@sjmonson sjmonson requested a review from markurtz July 10, 2025 17:15
@markurtz markurtz requested a review from Copilot July 10, 2025 20:56
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR locks the Click dependency to the last version supporting Python 3.9, removes the now-deprecated types-click, and adjusts some CLI-related code formatting and guard logic.

  • Constrain Click to >=8.0.0,<8.2.0 and remove types-click
  • Add a cmd is not None guard and update DefaultCommandFormatter inheritance
  • Simplify STRATEGY_PROFILE_CHOICES construction and condense a Click decorator

Reviewed Changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 1 comment.

File Description
src/guidellm/utils/default_group.py Guard cmd.name access, insert ctx.arg0 unconditionally, and subclass HelpFormatter
src/guidellm/main.py Change STRATEGY_PROFILE_CHOICES to list(set(...)) and collapse @benchmark.command args
pyproject.toml Lock Click version <8.2.0, remove types-click
.pre-commit-config.yaml Remove types-click hook

@markurtz markurtz merged commit e163dd5 into main Jul 10, 2025
16 of 18 checks passed
@markurtz markurtz deleted the fix/click_ver branch July 10, 2025 22:02
DaltheCow pushed a commit that referenced this pull request Jul 15, 2025
The latest version of click has dropped support for python 3.9 and has
additionally introduced breaking interface changes. Until we drop python
3.9, lock to the last supported click version. Additionally types-click
has been deprecated since click 8.0.0 so remove it.

---------

Co-authored-by: Mark Kurtz <mark.j.kurtz@gmail.com>
Signed-off-by: dalthecow <dalcowboiz@gmail.com>
DaltheCow pushed a commit that referenced this pull request Jul 15, 2025
The latest version of click has dropped support for python 3.9 and has
additionally introduced breaking interface changes. Until we drop python
3.9, lock to the last supported click version. Additionally types-click
has been deprecated since click 8.0.0 so remove it.

---------

Co-authored-by: Mark Kurtz <mark.j.kurtz@gmail.com>
Signed-off-by: dalthecow <dalcowboiz@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants