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

Add hf-transfer #28934

Closed
wants to merge 5 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 50 additions & 0 deletions recipes/hf-transfer/recipe.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
context:
version: 0.1.9

package:
name: hf_transfer
version: ${{ version }}

source:
- url: https://pypi.org/packages/source/h/hf-transfer/hf_transfer-${{ version }}.tar.gz
sha256: 035572865dab29d17e783fbf1e84cf1cb24f3fcf8f1b17db1cfc7fdf139f02bf

build:
script:
- cargo-bundle-licenses --format yaml --output THIRDPARTY.yml
- ${{ PYTHON }} -m pip install . -vv --no-deps --no-build-isolation
number: 0

requirements:
build:
- ${{ compiler("c") }}
- ${{ stdlib("c") }}
- ${{ compiler("cxx") }}
- ${{ compiler("rust") }}
- cargo-bundle-licenses
host:
- python
- maturin >=1.4,<2
- openssl
- pip
run:
- python

tests:
- python:
imports:
- hf_transfer
pip_check: true

about:
summary: Speed up file transfers with the Hugging Face Hub.
homepage: https://github.com/huggingface/hf_transfer
repository: https://github.com/huggingface/hf_transfer
license: Apache-2.0
license_file:
- LICENSE
- THIRDPARTY.yml

extra:
recipe-maintainers:
- maresb
Loading