huggingface-hub 0.32.0rc1__py3-none-any.whl → 0.32.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of huggingface-hub might be problematic. Click here for more details.

@@ -46,7 +46,7 @@ import sys
46
46
  from typing import TYPE_CHECKING
47
47
 
48
48
 
49
- __version__ = "0.32.0.rc1"
49
+ __version__ = "0.32.1"
50
50
 
51
51
  # Alphabetical order of definitions is ensured in tests
52
52
  # WARNING: any comment added in this dictionary definition will be lost when
@@ -63,8 +63,13 @@ async def run_agent(
63
63
  os._exit(130)
64
64
 
65
65
  try:
66
- loop.add_signal_handler(signal.SIGINT, _sigint_handler)
67
-
66
+ sigint_registered_in_loop = False
67
+ try:
68
+ loop.add_signal_handler(signal.SIGINT, _sigint_handler)
69
+ sigint_registered_in_loop = True
70
+ except (AttributeError, NotImplementedError):
71
+ # Windows (or any loop that doesn't support it) : fall back to sync
72
+ signal.signal(signal.SIGINT, lambda *_: _sigint_handler())
68
73
  async with Agent(
69
74
  provider=config["provider"],
70
75
  model=config["model"],
@@ -122,9 +127,12 @@ async def run_agent(
122
127
  first_sigint = True # Allow graceful interrupt for the next command
123
128
 
124
129
  finally:
125
- if loop and not loop.is_closed():
126
- loop.remove_signal_handler(signal.SIGINT)
127
- elif original_sigint_handler:
130
+ if sigint_registered_in_loop:
131
+ try:
132
+ loop.remove_signal_handler(signal.SIGINT)
133
+ except (AttributeError, NotImplementedError):
134
+ pass
135
+ else:
128
136
  signal.signal(signal.SIGINT, original_sigint_handler)
129
137
 
130
138
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: huggingface-hub
3
- Version: 0.32.0rc1
3
+ Version: 0.32.1
4
4
  Summary: Client library to download and publish models, datasets and other repos on the huggingface.co hub
5
5
  Home-page: https://github.com/huggingface/huggingface_hub
6
6
  Author: Hugging Face, Inc.
@@ -1,4 +1,4 @@
1
- huggingface_hub/__init__.py,sha256=YkOYKjWB2DkIuauxhRnt48FZYg296N2BWwxV2FKVaj4,50648
1
+ huggingface_hub/__init__.py,sha256=MraPcpVeTtz7kvp75UQIcplF8NG871xwGxDI4QHg_Mg,50644
2
2
  huggingface_hub/_commit_api.py,sha256=ZbmuIhFdF8B3F_cvGtxorka7MmIQOk8oBkCtYltnCvI,39456
3
3
  huggingface_hub/_commit_scheduler.py,sha256=tfIoO1xWHjTJ6qy6VS6HIoymDycFPg0d6pBSZprrU2U,14679
4
4
  huggingface_hub/_inference_endpoints.py,sha256=qXR0utAYRaEWTI8EXzAsDpVDcYpp8bJPEBbcOxRS52E,17413
@@ -82,7 +82,7 @@ huggingface_hub/inference/_generated/types/zero_shot_image_classification.py,sha
82
82
  huggingface_hub/inference/_generated/types/zero_shot_object_detection.py,sha256=GUd81LIV7oEbRWayDlAVgyLmY596r1M3AW0jXDp1yTA,1630
83
83
  huggingface_hub/inference/_mcp/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
84
84
  huggingface_hub/inference/_mcp/agent.py,sha256=RDpqy2rcVKy0euIK43OAAczLlx0UH1QIACHMFjTItq0,4077
85
- huggingface_hub/inference/_mcp/cli.py,sha256=7vvP0TcSWOR2GBU8ApG7zpdtGI4cnB_R1ehr6XrZMdo,5177
85
+ huggingface_hub/inference/_mcp/cli.py,sha256=Pw6nZP57uzDWZGXRVCAqLHsLYO_WiQd4UPcQdXiCa-o,5557
86
86
  huggingface_hub/inference/_mcp/constants.py,sha256=tE_V6qcvsmvVoJa4eg04jhoTR2Cx1cNHieY2ENrm1_M,2511
87
87
  huggingface_hub/inference/_mcp/mcp_client.py,sha256=MwoovV2UTf7F8rxxQucAd4WSnIiJ71wx09QCrXDrP0Q,13477
88
88
  huggingface_hub/inference/_mcp/utils.py,sha256=K7rr4FxCh9OYWwYNlnvQraNLy9y3z-5yVMBIaoCQMjA,4052
@@ -137,9 +137,9 @@ huggingface_hub/utils/insecure_hashlib.py,sha256=iAaepavFZ5Dhfa5n8KozRfQprKmvcjS
137
137
  huggingface_hub/utils/logging.py,sha256=0A8fF1yh3L9Ka_bCDX2ml4U5Ht0tY8Dr3JcbRvWFuwo,4909
138
138
  huggingface_hub/utils/sha.py,sha256=OFnNGCba0sNcT2gUwaVCJnldxlltrHHe0DS_PCpV3C4,2134
139
139
  huggingface_hub/utils/tqdm.py,sha256=xAKcyfnNHsZ7L09WuEM5Ew5-MDhiahLACbbN2zMmcLs,10671
140
- huggingface_hub-0.32.0rc1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
141
- huggingface_hub-0.32.0rc1.dist-info/METADATA,sha256=vJ0eUDTcx6H_mI1vNATLw1wgnIl0BeHmg-yVvYNwahY,14780
142
- huggingface_hub-0.32.0rc1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
143
- huggingface_hub-0.32.0rc1.dist-info/entry_points.txt,sha256=uelw0-fu0kd-CxIuOsR1bsjLIFnAaMQ6AIqluJYDhQw,184
144
- huggingface_hub-0.32.0rc1.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
145
- huggingface_hub-0.32.0rc1.dist-info/RECORD,,
140
+ huggingface_hub-0.32.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
141
+ huggingface_hub-0.32.1.dist-info/METADATA,sha256=y3e9ulpqrSxlIWNwdsA0aXk-ZK9nVDChQ5fjApF_hNA,14777
142
+ huggingface_hub-0.32.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
143
+ huggingface_hub-0.32.1.dist-info/entry_points.txt,sha256=uelw0-fu0kd-CxIuOsR1bsjLIFnAaMQ6AIqluJYDhQw,184
144
+ huggingface_hub-0.32.1.dist-info/top_level.txt,sha256=8KzlQJAY4miUvjAssOAJodqKOw3harNzuiwGQ9qLSSk,16
145
+ huggingface_hub-0.32.1.dist-info/RECORD,,