From: Nicolas Patry Date: Fri, 4 Nov 2022 14:42:43 +0000 (+0100) Subject: Preparing for release. (#60) X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=119473908008378722ca3b59cf1f81cf7347a30e;p=safetensors.git Preparing for release. (#60) --- diff --git a/bindings/python/Cargo.toml b/bindings/python/Cargo.toml index 76f2241..79fdbed 100644 --- a/bindings/python/Cargo.toml +++ b/bindings/python/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "safetensors-python" -version = "0.2.3" +version = "0.2.4" edition = "2018" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/bindings/python/py_src/safetensors/__init__.py b/bindings/python/py_src/safetensors/__init__.py index c2480d1..03c6852 100644 --- a/bindings/python/py_src/safetensors/__init__.py +++ b/bindings/python/py_src/safetensors/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.2.1.dev0" +__version__ = "0.2.4" # Re-export this from .safetensors_rust import safe_open # noqa: F401 diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 9174f16..49a95ce 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -2,6 +2,10 @@ from setuptools import setup from setuptools_rust import Binding, RustExtension +with open("py_src/safetensors/__init__.py", "r") as f: + version = f.readline().split("=")[-1].strip().strip('"') + + with open("requirements-dev.txt", "r") as f: testing = f.read().splitlines() @@ -11,7 +15,7 @@ extras["dev"] = testing setup( name="safetensors", - version="0.2.3", + version=version, description="Fast and Safe Tensor serialization", long_description=open("README.md", "r", encoding="utf-8").read(), long_description_content_type="text/markdown", diff --git a/safetensors/Cargo.toml b/safetensors/Cargo.toml index fbca13c..a3da6d9 100644 --- a/safetensors/Cargo.toml +++ b/safetensors/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "safetensors" -version = "0.2.3" +version = "0.2.4" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html