Skip to content

Commit 253cc33

Browse files
committed
update metadata
1 parent be6a4f4 commit 253cc33

File tree

5 files changed

+7
-9
lines changed

5 files changed

+7
-9
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "blurhash-py"
33
description = "A Python and rust library for encoding and decoding blurhash strings"
4-
version = "0.2.2"
4+
version = "0.2.3"
55
edition = "2021"
66
repository = "https://github.com/jimexist/blurhash-py"
77

pyproject.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@ classifiers = [
2121
]
2222
dynamic = ["version"]
2323
dependencies = ["pillow>=8.0.0"]
24+
maintainers = [{ name = "Jiayu Liu", email = "[email protected]" }]
2425
urls = { repository = "https://github.com/jimexist/blurhash-py" }
26+
readme = "README.md"
27+
license = "MIT"
28+
keywords = ["blurhash", "image", "compression"]
2529

2630
[tool.maturin]
2731
features = ["pyo3/extension-module"]

python/blurhash_py/__init__.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
from ._lib_name import blurhash_for_pixels_py, decode_blurhash_py, is_valid_blurhash_py
77

8-
__version__ = "0.2.2"
8+
__version__ = "0.2.3"
99

1010
__all__ = (
1111
"BlurhashDecodeError",
@@ -84,16 +84,11 @@ def decode(
8484

8585
channels = mode.value
8686

87-
# Call the Rust decode wrapper: returns bytes, rgb order, row-major
8887
try:
8988
bytes_data = decode_blurhash_py(blurhash, width, height, punch)
9089
except Exception:
9190
raise BlurhashDecodeError(blurhash)
9291

93-
# decode_blurhash_py returns a Python bytes object.
94-
# NB: While mode=RGBA might be supported, our Rust code outputs only RGB,
95-
# so we only support RGB at the moment. If/when RGBA is supported,
96-
# handle accordingly.
9792
if not bytes_data or len(bytes_data) != width * height * channels:
9893
raise BlurhashDecodeError(blurhash)
9994

src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ fn clamp_to_ubyte(src: i32) -> u8 {
88
}
99

1010
// Use lazy_static for global cache of sRGB to linear conversion
11-
1211
lazy_static::lazy_static! {
1312
static ref SRGB_TO_LINEAR_CACHE: [f32; 256] = {
1413
let mut arr = [0.0f32; 256];

0 commit comments

Comments
 (0)