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

Bump to 0.24 + remove deprecated code #2287

Merged
merged 2 commits into from
May 28, 2024
Merged

Bump to 0.24 + remove deprecated code #2287

merged 2 commits into from
May 28, 2024

Conversation

Wauplin
Copy link
Contributor

@Wauplin Wauplin commented May 22, 2024

This PR bumps the version to 0.24.0.dev0.

Breaking changes:

  • ModelFilter and DatasetFilter are completely removed. You can now pass arguments directly to list_models and list_datasets. This removes one level of complexity for the same result.
  • remove organization and name from update_repo_visibility. Please use a proper repo_id instead. This makes the method consistent with all other methods from HfApi.

These breaking changes have been announced with a regular deprecation cycle so hopefully it should be fine. In HF repos, I noticed a usage of DatasetFilter in Setfit but that's all (PR to remove it: github.com/huggingface/setfit/pull/527).

I also took the liberty to update code style in related tests, now using the pytest style. I did not change the tests logic.

@Wauplin Wauplin requested a review from LysandreJik May 22, 2024 09:18
Copy link
Member

@julien-c julien-c left a comment

Choose a reason for hiding this comment

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

nice cleanup!

@HuggingFaceDocBuilderDev

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

Copy link
Member

@LysandreJik LysandreJik left a comment

Choose a reason for hiding this comment

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

Cool, nice cleanup indeed!

@Wauplin
Copy link
Contributor Author

Wauplin commented May 27, 2024

Thanks for the reviews 🤗

@Wauplin Wauplin merged commit bb38f94 into main May 28, 2024
11 of 16 checks passed
@Wauplin Wauplin deleted the prepare-0.24 branch May 28, 2024 12:01
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.

4 participants