]> khamidou — GitHub mirrors - safetensors.git/commitdiff
Preparing for release 0.2.2 (#36)
authorNicolas Patry <patry.nicolas@protonmail.com>
Wed, 26 Oct 2022 14:43:18 +0000 (16:43 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Oct 2022 14:43:18 +0000 (16:43 +0200)
RELEASE.md
bindings/python/Cargo.toml
bindings/python/requirements-dev.txt [new file with mode: 0644]
bindings/python/setup.py
safetensors/Cargo.toml

index 4beae17256fe0266bd419471e1d43b85d3105d91..3f33ebfbccece5a1173e56c5552d7ab1d435f733 100644 (file)
@@ -4,7 +4,7 @@
 
 Simple checklist on how to make releases for `safetensors`.
 
-- Freeze `master` branch.
+- Freeze `main` branch.
 - Run all tests (Check CI has properly run)
 - If any significant work, check benchmarks:
   - `cd safetensors && cargo bench` (needs to be run on latest release tag to measure difference if it's your first time)
index 8c66059a03267e433a0249a3708f37c2fbbb729c..6421a295d7ebed06d8a042f6d298c97a35c50655 100644 (file)
@@ -1,6 +1,6 @@
 [package]
 name = "safetensors-python"
-version = "0.2.1"
+version = "0.2.2"
 edition = "2018"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
diff --git a/bindings/python/requirements-dev.txt b/bindings/python/requirements-dev.txt
new file mode 100644 (file)
index 0000000..3727104
--- /dev/null
@@ -0,0 +1,7 @@
+black==22.3  # after updating to black 2023, also update Python version in pyproject.toml to 3.7
+isort>=5.5.4
+flake8>=3.8.3
+pytest
+numpy
+setuptools_rust
+huggingface_hub
index 17589cef37de3c5572e9ee0772c7258e600656da..e0f6faa2898c61e055bc66ec1d5cb765af91bb48 100644 (file)
@@ -2,19 +2,15 @@ from setuptools import setup
 from setuptools_rust import Binding, RustExtension
 
 
+with open("requirements-dev.txt", "r") as f:
+    testing = f.read().splitlines()
+
 extras = {}
-extras["testing"] = [
-    "black==22.3",  # after updating to black 2023, also update Python version in pyproject.toml to 3.7
-    "isort>=5.5.4",
-    "flake8>=3.8.3",
-    "pytest",
-    "numpy",
-]
-extras["docs"] = ["sphinx", "sphinx_rtd_theme", "setuptools_rust"]
+extras["testing"] = testing
 
 setup(
     name="safetensors",
-    version="0.2.1.dev0",
+    version="0.2.2",
     description="Fast and Safe Tensor serialization",
     long_description=open("README.md", "r", encoding="utf-8").read(),
     long_description_content_type="text/markdown",
index a3c9913d1f7d217bd33d7d4b5fcb71a1e58ae867..852a73a65508eb05ae5f44274d3a7dca273dd35b 100644 (file)
@@ -1,6 +1,6 @@
 [package]
 name = "safetensors"
-version = "0.2.1"
+version = "0.2.2"
 edition = "2021"
 
 # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
@@ -14,4 +14,4 @@ criterion = "0.3"
 
 [[bench]]
 name = "benchmark"
-harness = false
\ No newline at end of file
+harness = false