]> khamidou — GitHub mirrors - safetensors.git/commitdiff
Missing conda scripts.
authorNicolas Patry <patry.nicolas@protonmail.com>
Thu, 22 Sep 2022 21:46:43 +0000 (23:46 +0200)
committerNicolas Patry <patry.nicolas@protonmail.com>
Thu, 22 Sep 2022 21:46:43 +0000 (23:46 +0200)
.github/conda/bld.bat [new file with mode: 0644]
.github/conda/build.sh [new file with mode: 0644]
.github/conda/meta.yaml [new file with mode: 0644]

diff --git a/.github/conda/bld.bat b/.github/conda/bld.bat
new file mode 100644 (file)
index 0000000..6f70044
--- /dev/null
@@ -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 (file)
index 0000000..76f2cf3
--- /dev/null
@@ -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 (file)
index 0000000..644ec17
--- /dev/null
@@ -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"