From 29fe1e37143d8af2075c09fe139d115e8dfb5200 Mon Sep 17 00:00:00 2001 From: Nicolas Patry Date: Wed, 26 Oct 2022 16:43:18 +0200 Subject: [PATCH] Preparing for release 0.2.2 (#36) --- RELEASE.md | 2 +- bindings/python/Cargo.toml | 2 +- bindings/python/requirements-dev.txt | 7 +++++++ bindings/python/setup.py | 14 +++++--------- safetensors/Cargo.toml | 4 ++-- 5 files changed, 16 insertions(+), 13 deletions(-) create mode 100644 bindings/python/requirements-dev.txt diff --git a/RELEASE.md b/RELEASE.md index 4beae17..3f33ebf 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -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) diff --git a/bindings/python/Cargo.toml b/bindings/python/Cargo.toml index 8c66059..6421a29 100644 --- a/bindings/python/Cargo.toml +++ b/bindings/python/Cargo.toml @@ -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 index 0000000..3727104 --- /dev/null +++ b/bindings/python/requirements-dev.txt @@ -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 diff --git a/bindings/python/setup.py b/bindings/python/setup.py index 17589ce..e0f6faa 100644 --- a/bindings/python/setup.py +++ b/bindings/python/setup.py @@ -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", diff --git a/safetensors/Cargo.toml b/safetensors/Cargo.toml index a3c9913..852a73a 100644 --- a/safetensors/Cargo.toml +++ b/safetensors/Cargo.toml @@ -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 -- 2.43.0