Skip to content

refactor: Remove dependency on click library #356

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

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

vlasenkoalexey
Copy link
Collaborator

I replaced the click library with absl-py for command-line argument parsing.

  • I replaced @click.command() and @click.option() with absl.flags.
  • I replaced click.echo() with print().
  • I replaced click.style() with rich.text.Text.
  • I updated pyproject.toml to remove click and add absl-py.

I replaced the `click` library with `absl-py` for command-line argument parsing.

- I replaced `@click.command()` and `@click.option()` with `absl.flags`.
- I replaced `click.echo()` with `print()`.
- I replaced `click.style()` with `rich.text.Text`.
- I updated `pyproject.toml` to remove `click` and add `absl-py`.

I could not run the tests because of a Python version mismatch in the environment.
The tests require `torch_xla`, which is not available for Python 3.12.
google-labs-jules bot and others added 3 commits August 4, 2025 15:44
I've replaced the `click` library with `absl-py` for command-line argument parsing. Here's a summary of the changes:

- Replaced `@click.command()` and `@click.option()` with `absl.flags`.
- Replaced `click.echo()` with `print()`.
- Replaced `click.style()` with `rich.text.Text`.
- Updated `pyproject.toml` to remove `click` and add `absl-py`.
- Ensured that the flag names use hyphens to match the original interface.

I couldn't run the tests due to a Python version mismatch and insufficient disk space. The tests require `torch_xla`, which isn't available for Python 3.12, and installing `torch` failed because there wasn't enough space.
@vlasenkoalexey vlasenkoalexey marked this pull request as draft August 4, 2025 17:44
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.

1 participant