From 3bfadfe25edebee9630cfdd820b9660ff241d1bf Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Thu, 22 Sep 2022 23:46:43 +0200 Subject: [PATCH] Missing conda scripts. --- .github/conda/bld.bat | 2 ++ .github/conda/build.sh | 2 ++ .github/conda/meta.yaml | 28 ++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 .github/conda/bld.bat create mode 100644 .github/conda/build.sh create mode 100644 .github/conda/meta.yaml 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" -- 2.43.0