Commit 21edca8
Add cross-platform CLI Installers (#3378)
* [1.0] Httpx migration (#3328)
* first httpx integration
* more migration
* some fixes
* download workflow should work
* Fix repocard and error utils tests
* fix hf-file-system
* gix http utils tests
* more fixes
* fix some inference tests
* fix test_file_download tests
* async inference client
* async code should be good
* Define RemoteEntryFileNotFound explicitly (+some fixes)
* fix async code quality
* torch ok
* fix hf_file_system
* fix errors tests
* mock
* fix test_cli mock
* fix commit scheduler
* add fileno test
* no more requests anywhere
* fix test_file_download
* tmp requests
* Update src/huggingface_hub/utils/_http.py
Co-authored-by: célina <[email protected]>
* Update src/huggingface_hub/utils/_http.py
Co-authored-by: célina <[email protected]>
* Update src/huggingface_hub/hf_file_system.py
Co-authored-by: célina <[email protected]>
* not async
* fix tests
---------
Co-authored-by: célina <[email protected]>
* Bump minimal version to Python3.9 (#3343)
* Bump minimal version to Python3.9
* use built-in generics
* code quality
* new batch
* yet another btach
* fix dataclass_with_extra
* fix
* keep Type for strict dataclasses
* fix test
* Remove `HfFolder` and `InferenceAPI` classes (#3344)
* Remove HfFolder
* Remove InferenceAPI
* more recent gradio
* bump pytest
* fix python 3.9?
* install gradio only on python 3.10+
* fix tests
* fix tests
* fix
* [v1.0] Remove more deprecated stuff (#3345)
* remove constants.-hf_cache_home
* remove smoothly_deprecate_use_auth_token
* remove get_token_permission
* remove update_repo_visibility
* remove is_write_action arg
* remove write_permission arg from login methods
* new parameter skip_if_logged_in in login methods
* Remove resume_download / force_filename parameters
* Remove deprecated local_dir_use_symlinks parameter
* Remove deprecated language, library, task, tags from list_models
* Return commit URL in upload_file/upload_folder (previously url to file/folder on the Hub)
* fix upload_file/upload_folder tests
* smoothly_deprecate_legacy_arguments everywhere
* code quality
* fix tests
* fix xet tests
* [v1.0] Remove `Repository` class (#3346)
* Remove Repository class + adapt docs
* remove fr git_vs_http
* bump to 1.0.0.dev0
* Remove _deprecate_positional_args on login methods (#3349)
* [v1.0] Remove imports kept only for backward compatibility (#3350)
* Remove imports kept only for backward compatibility
* fix tests
* [v1.0] Remove keras2 utilities (#3352)
* Remove keras2 utilities
* remove keras from init
* [v1.0] Remove anything tensorflow-related + deps (#3354)
* Remove anything tensorflow-related + deps
* init
* fix tests
* fix conflicts in tests
* Release: v1.0.0.rc0
* [v1.0] Update "HTTP backend" docs + `git_vs_http` guide (#3357)
* HTTP configuration docs
* http configuration docs
* refactored git_vs_http
* fix import
* fix docs?
* Update docs/source/en/package_reference/utilities.md
Co-authored-by: célina <[email protected]>
---------
Co-authored-by: célina <[email protected]>
* Refactor CLI implementation using Typer (#3372)
* Refactor CLI implementation using Typer (#3365)
* migrate CLI to typer
* (#3364) disable rich in all cases
* update tests
* make typer-slim a required dep
* use Annotated
* fix linting issues
* fix tests
* refactoring
* update docs
* use built in types
* fix mypy
* call whoami directly
* lint
* Apply suggestions from code review
Co-authored-by: Lucain <[email protected]>
* import Annotated from typing
* Use Enums
* set verbosity globally
* refactor scan cache and update version docstring
* centralize where Typer is defined
* no need for ...
* rename enum
* no need for extra param name
* docstring
* revert
* centralize arguments and options definition
* add library version when initializing HfApi
* add auto-completion
* sort commands alphabetically
* suggestions
* centralize jobs params and HfApi initialization
* fix
---------
Co-authored-by: Lucain <[email protected]>
* update docs
---------
Co-authored-by: Lucain <[email protected]>
* add installers
* fix windows
* fix log
* fix workflow?
* fix workflow again
* add debugging steps
* fix
* remove bin dir and install dir params
* update workflow
* remove version param
* document usage
* [1.0] Httpx migration (#3328)
* first httpx integration
* more migration
* some fixes
* download workflow should work
* Fix repocard and error utils tests
* fix hf-file-system
* gix http utils tests
* more fixes
* fix some inference tests
* fix test_file_download tests
* async inference client
* async code should be good
* Define RemoteEntryFileNotFound explicitly (+some fixes)
* fix async code quality
* torch ok
* fix hf_file_system
* fix errors tests
* mock
* fix test_cli mock
* fix commit scheduler
* add fileno test
* no more requests anywhere
* fix test_file_download
* tmp requests
* Update src/huggingface_hub/utils/_http.py
Co-authored-by: célina <[email protected]>
* Update src/huggingface_hub/utils/_http.py
Co-authored-by: célina <[email protected]>
* Update src/huggingface_hub/hf_file_system.py
Co-authored-by: célina <[email protected]>
* not async
* fix tests
---------
Co-authored-by: célina <[email protected]>
* Bump minimal version to Python3.9 (#3343)
* Bump minimal version to Python3.9
* use built-in generics
* code quality
* new batch
* yet another btach
* fix dataclass_with_extra
* fix
* keep Type for strict dataclasses
* fix test
* Remove `HfFolder` and `InferenceAPI` classes (#3344)
* Remove HfFolder
* Remove InferenceAPI
* more recent gradio
* bump pytest
* fix python 3.9?
* install gradio only on python 3.10+
* fix tests
* fix tests
* fix
* [v1.0] Remove more deprecated stuff (#3345)
* remove constants.-hf_cache_home
* remove smoothly_deprecate_use_auth_token
* remove get_token_permission
* remove update_repo_visibility
* remove is_write_action arg
* remove write_permission arg from login methods
* new parameter skip_if_logged_in in login methods
* Remove resume_download / force_filename parameters
* Remove deprecated local_dir_use_symlinks parameter
* Remove deprecated language, library, task, tags from list_models
* Return commit URL in upload_file/upload_folder (previously url to file/folder on the Hub)
* fix upload_file/upload_folder tests
* smoothly_deprecate_legacy_arguments everywhere
* code quality
* fix tests
* fix xet tests
* [v1.0] Remove `Repository` class (#3346)
* Remove Repository class + adapt docs
* remove fr git_vs_http
* bump to 1.0.0.dev0
* Remove _deprecate_positional_args on login methods (#3349)
* [v1.0] Remove imports kept only for backward compatibility (#3350)
* Remove imports kept only for backward compatibility
* fix tests
* [v1.0] Remove keras2 utilities (#3352)
* Remove keras2 utilities
* remove keras from init
* [v1.0] Remove anything tensorflow-related + deps (#3354)
* Remove anything tensorflow-related + deps
* init
* fix tests
* fix conflicts in tests
* Release: v1.0.0.rc0
* [v1.0] Update "HTTP backend" docs + `git_vs_http` guide (#3357)
* HTTP configuration docs
* http configuration docs
* refactored git_vs_http
* fix import
* fix docs?
* Update docs/source/en/package_reference/utilities.md
Co-authored-by: célina <[email protected]>
---------
Co-authored-by: célina <[email protected]>
* Refactor CLI implementation using Typer (#3372)
* Refactor CLI implementation using Typer (#3365)
* migrate CLI to typer
* (#3364) disable rich in all cases
* update tests
* make typer-slim a required dep
* use Annotated
* fix linting issues
* fix tests
* refactoring
* update docs
* use built in types
* fix mypy
* call whoami directly
* lint
* Apply suggestions from code review
Co-authored-by: Lucain <[email protected]>
* import Annotated from typing
* Use Enums
* set verbosity globally
* refactor scan cache and update version docstring
* centralize where Typer is defined
* no need for ...
* rename enum
* no need for extra param name
* docstring
* revert
* centralize arguments and options definition
* add library version when initializing HfApi
* add auto-completion
* sort commands alphabetically
* suggestions
* centralize jobs params and HfApi initialization
* fix
---------
Co-authored-by: Lucain <[email protected]>
* update docs
---------
Co-authored-by: Lucain <[email protected]>
* Make HfHubHTTPError inherit from OSError (#3387)
* Release: v1.0.0.rc1
* print relevant message based on the linux distro
* better warning message
* log info instead of warning
* copilot suggestions
* Update utils/installers/install.sh
Co-authored-by: Copilot <[email protected]>
* update docs
---------
Co-authored-by: Lucain <[email protected]>
Co-authored-by: Lucain Pouget <[email protected]>
Co-authored-by: Copilot <[email protected]>1 parent ee6c65a commit 21edca8
File tree
5 files changed
+1046
-0
lines changed- .github/workflows
- docs/source/en
- guides
- utils/installers
5 files changed
+1046
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
20 | 34 | | |
21 | 35 | | |
22 | 36 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
106 | 122 | | |
107 | 123 | | |
108 | 124 | | |
| |||
0 commit comments