From: Nicolas Patry Date: Thu, 22 Sep 2022 21:46:43 +0000 (+0200) Subject: Missing conda scripts. X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=3bfadfe25edebee9630cfdd820b9660ff241d1bf;p=safetensors.git Missing conda scripts. --- diff --git a/.github/conda/bld.bat b/.github/conda/bld.bat new file mode 100644 index 0000000..6f70044 --- /dev/null +++ b/.github/conda/bld.bat @@ -0,0 +1,2 @@ +cd bindings\python +%PYTHON% setup.py install --prefix=%PREFIX% diff --git a/.github/conda/build.sh b/.github/conda/build.sh new file mode 100644 index 0000000..76f2cf3 --- /dev/null +++ b/.github/conda/build.sh @@ -0,0 +1,2 @@ +cd bindings/python +$PYTHON setup.py install --prefix=$PREFIX diff --git a/.github/conda/meta.yaml b/.github/conda/meta.yaml new file mode 100644 index 0000000..644ec17 --- /dev/null +++ b/.github/conda/meta.yaml @@ -0,0 +1,28 @@ +{% set name = "safetensors" %} + +package: + name: "{{ name|lower }}" + version: "{{ SAFETENSORS_VERSION }}" + +source: + path: ../../ + +requirements: + host: + - pip + - python x.x + - setuptools + - setuptools-rust + + run: + - python x.x + +test: + imports: + - safetensors + +about: + home: https://huggingface.co/docs/safetensors + license: Apache License 2.0 + license_file: LICENSE + summary: "Safe and portable way of storing tensors"