Skip to content

Commit

Permalink
prepare for v0.0.30
Browse files Browse the repository at this point in the history
  • Loading branch information
jessekrubin committed Feb 19, 2025
1 parent 7322a52 commit 12c95b1
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 8 deletions.
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# CHANGELOG

## v0.0.30 [2025-02-11]
## v0.0.30 [2025-02-18]

- `jiff`
- Upgraded jiff to version 2
Expand All @@ -9,6 +9,8 @@
- Removed a bunch o commented out code
- `ryo3-std`
- added several `std::fs` structs
- `ryo3-fspath`
- conversion to `pathlib.Path` by way of `FsPath.to_pathlib()`

___

Expand Down
1 change: 1 addition & 0 deletions python/ry/ryo3/__init__.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import datetime as pydt
import typing as t
from os import PathLike
from pathlib import Path

import typing_extensions as te

from . import http as http
Expand Down
3 changes: 1 addition & 2 deletions python/ry/ryo3/reqwest.pyi
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ import ry

if t.TYPE_CHECKING:
from ry import Duration, Headers

from ._url import URL
from ry.ryo3._url import URL

class HttpClient:
def __init__(
Expand Down
2 changes: 1 addition & 1 deletion tests/bytes/test_bytes.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ def test_uno_byte_bytes_repr(b: bytes) -> None:
"""Test the repr of Bytes and bytes for single byte values."""
rust_bytes = Bytes(b)
rust_bytes_str = repr(rust_bytes)
rust_bytes_str_eval = eval(rust_bytes_str) # noqa: S307
rust_bytes_str_eval = eval(rust_bytes_str)
assert rust_bytes_str_eval == rust_bytes == b


Expand Down
2 changes: 1 addition & 1 deletion tests/test_sh.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def test_ls_objects(tmp_path: Path) -> None:
(tmp_path / "b.txt").write_text("world")
paths = ry.ls(tmp_path, objects=True)
assert all(isinstance(p, ry.FsPath) for p in paths)
assert set(str(e) for e in ry.ls(tmp_path, objects=True)) == {
assert {str(e) for e in ry.ls(tmp_path, objects=True)} == {
"a.txt",
"b.txt",
}
Expand Down
2 changes: 1 addition & 1 deletion tests/xxhash/_xxhash_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class XXHashDataRecord(TypedDict):


def _load_data() -> list[XXHashDataRecord]:
with open(_TEST_DATA, "r") as f:
with open(_TEST_DATA) as f:
xx32_test_data = f.read()
lines = xx32_test_data.split("\n")
return [
Expand Down
4 changes: 2 additions & 2 deletions tests/xxhash/test_xxhash.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,13 @@ def _assert_xxh32_all_forms(
# hexdigest
actual_hexes = [ry_xxh.xxh32_hexdigest(data, seed=s) for s in seeds]
assert [int(h, 16) for h in actual_hexes] == expected_ints, (
f"xxh32_hexdigest mismatch"
"xxh32_hexdigest mismatch"
)

# digest (raw bytes)
actual_digests = [ry_xxh.xxh32_digest(data, seed=s) for s in seeds]
actual_from_bytes = [int.from_bytes(d, "big") for d in actual_digests]
assert actual_from_bytes == expected_ints, f"xxh32_digest mismatch"
assert actual_from_bytes == expected_ints, "xxh32_digest mismatch"


def _assert_xxh64_all_forms(
Expand Down

0 comments on commit 12c95b1

Please sign in to comment.