Skip to content

Commit d1de0aa

Browse files
committed
[Internal] make hf-xet optional (#3079)
* make hf-xet optional * fix dep installation in CI
1 parent 080b047 commit d1de0aa

File tree

3 files changed

+4
-8
lines changed

3 files changed

+4
-8
lines changed

.github/conda/meta.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ requirements:
2121
- typing-extensions
2222
- packaging
2323
- pyyaml
24-
- hf-xet >=1.1.1,<2.0.0
2524
run:
2625
- python
2726
- pip
@@ -31,7 +30,6 @@ requirements:
3130
- typing-extensions
3231
- packaging
3332
- pyyaml
34-
- hf-xet >=1.1.1,<2.0.0
3533

3634
test:
3735
imports:

.github/workflows/python-tests.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -94,14 +94,13 @@ jobs:
9494
sudo apt install -y graphviz
9595
uv pip install "huggingface_hub[tensorflow-testing] @ ."
9696
;;
97+
98+
"Xet only")
99+
uv pip install "huggingface_hub[hf_xet] @ ."
100+
;;
97101
98102
esac
99103
100-
# If not "Xet only", we want to test upload/download with regular LFS workflow
101-
# => uninstall hf_xet to make sure we are not using it.
102-
if [[ "${{ matrix.test_name }}" != "Xet only" ]]; then
103-
uv pip uninstall hf_xet
104-
fi
105104
# Run tests
106105
- name: Run tests
107106
working-directory: ./src # For code coverage to work

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def get_version() -> str:
1414
install_requires = [
1515
"filelock",
1616
"fsspec>=2023.5.0",
17-
"hf-xet>=1.1.1,<2.0.0; platform_machine=='x86_64' or platform_machine=='amd64' or platform_machine=='arm64' or platform_machine=='aarch64'",
1817
"packaging>=20.9",
1918
"pyyaml>=5.1",
2019
"requests",

0 commit comments

Comments
 (0)