From 82dd9873d21dbcd2299d3f6e0d3a359d2b8631fb Mon Sep 17 00:00:00 2001 From: Ned Twigg Date: Mon, 16 Dec 2024 11:59:25 -0800 Subject: [PATCH 1/6] Update the changelog. --- python/CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/python/CHANGELOG.md b/python/CHANGELOG.md index 1ba30a5e..775aa63d 100644 --- a/python/CHANGELOG.md +++ b/python/CHANGELOG.md @@ -13,6 +13,10 @@ Changelog for the selfie Python libraries. ### Changed -## [0.1.0] - 2024-12-4 +## [1.0.0] - 2024-12-16 + +- Full feature parity with 1.0 spec (facets, caching, and binary) + +## [0.1.0] - 2024-04-04 - Initial release. From a6c7eca6160379de82005b8098625f2a78f37e5e Mon Sep 17 00:00:00 2001 From: Ned Twigg Date: Mon, 16 Dec 2024 12:01:00 -0800 Subject: [PATCH 2/6] Update project files and lock files to suit. --- python/example-pytest-selfie/pyproject.toml | 3 ++- python/example-pytest-selfie/uv.lock | 6 +++--- python/pytest-selfie/pyproject.toml | 2 +- python/selfie-lib/pyproject.toml | 2 +- 4 files changed, 7 insertions(+), 6 deletions(-) diff --git a/python/example-pytest-selfie/pyproject.toml b/python/example-pytest-selfie/pyproject.toml index baa8282e..a75785dc 100644 --- a/python/example-pytest-selfie/pyproject.toml +++ b/python/example-pytest-selfie/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "example-pytest-selfie" -version = "0.1.0" +version = "1.0.0.dev0" description = "An example project for using the pytest plugin for selfie snapshot testing." authors = [ { name = "Edwin Ye", email = "EdwinYeDeveloper@gmail.com" }, @@ -14,6 +14,7 @@ requires-python = ">=3.9" dependencies = [ "flask>=3.0.3", ] +classifiers = ["Private :: Do Not Upload"] [tool.uv.sources] selfie-lib = { path = "../selfie-lib", editable = true } diff --git a/python/example-pytest-selfie/uv.lock b/python/example-pytest-selfie/uv.lock index df1c13f5..e8333839 100644 --- a/python/example-pytest-selfie/uv.lock +++ b/python/example-pytest-selfie/uv.lock @@ -171,7 +171,7 @@ wheels = [ [[package]] name = "example-pytest-selfie" -version = "0.1.0" +version = "1.0.0.dev0" source = { virtual = "." } dependencies = [ { name = "flask" }, @@ -663,7 +663,7 @@ wheels = [ [[package]] name = "pytest-selfie" -version = "0.1.0" +version = "1.0.0" source = { editable = "../pytest-selfie" } dependencies = [ { name = "pytest" }, @@ -725,7 +725,7 @@ wheels = [ [[package]] name = "selfie-lib" -version = "0.1.0" +version = "1.0.0" source = { editable = "../selfie-lib" } [package.metadata] diff --git a/python/pytest-selfie/pyproject.toml b/python/pytest-selfie/pyproject.toml index 821bd7af..20ea9c4b 100644 --- a/python/pytest-selfie/pyproject.toml +++ b/python/pytest-selfie/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pytest-selfie" -version = "0.1.0" +version = "1.0.0" description = "A pytest plugin for selfie snapshot testing." authors = [ { name = "Edwin Ye", email = "EdwinYeDeveloper@gmail.com" }, diff --git a/python/selfie-lib/pyproject.toml b/python/selfie-lib/pyproject.toml index 993b7d82..5ef07c37 100644 --- a/python/selfie-lib/pyproject.toml +++ b/python/selfie-lib/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "selfie-lib" -version = "0.1.0" +version = "1.0.0" description = "Infrastructure for creating selfie-compatible test runner plugins." authors = [ { name = "Edwin Ye", email = "EdwinYeDeveloper@gmail.com" }, From 1f311d57f64dab9ca128d8d3e4ebb5130b0b3ae3 Mon Sep 17 00:00:00 2001 From: Ned Twigg Date: Mon, 16 Dec 2024 12:09:02 -0800 Subject: [PATCH 3/6] selfie-lib - uv lock --- python/selfie-lib/uv.lock | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/selfie-lib/uv.lock b/python/selfie-lib/uv.lock index f3592a7b..afec8460 100644 --- a/python/selfie-lib/uv.lock +++ b/python/selfie-lib/uv.lock @@ -112,7 +112,7 @@ wheels = [ [[package]] name = "selfie-lib" -version = "0.1.0" +version = "1.0.0" source = { virtual = "." } [package.dev-dependencies] From a8ea37a77dc9dd1365fcc1ab4dc28973624b04b1 Mon Sep 17 00:00:00 2001 From: Ned Twigg Date: Mon, 16 Dec 2024 12:12:26 -0800 Subject: [PATCH 4/6] pytest-selfie - uv lock --- python/pytest-selfie/uv.lock | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/python/pytest-selfie/uv.lock b/python/pytest-selfie/uv.lock index aec7fd47..72a4260e 100644 --- a/python/pytest-selfie/uv.lock +++ b/python/pytest-selfie/uv.lock @@ -87,7 +87,7 @@ wheels = [ [[package]] name = "pytest-selfie" -version = "0.1.0" +version = "1.0.0" source = { virtual = "." } dependencies = [ { name = "pytest" }, @@ -141,7 +141,7 @@ wheels = [ [[package]] name = "selfie-lib" -version = "0.1.0" +version = "1.0.0" source = { editable = "../selfie-lib" } [package.metadata] From 7994c899a257bd71b03eb2d298e6b38852f20f44 Mon Sep 17 00:00:00 2001 From: Ned Twigg Date: Mon, 16 Dec 2024 12:21:32 -0800 Subject: [PATCH 5/6] Prepare for the next release. --- python/CHANGELOG.md | 6 ++++-- python/pytest-selfie/pyproject.toml | 2 +- python/selfie-lib/pyproject.toml | 2 +- 3 files changed, 6 insertions(+), 4 deletions(-) diff --git a/python/CHANGELOG.md b/python/CHANGELOG.md index 775aa63d..46e4c391 100644 --- a/python/CHANGELOG.md +++ b/python/CHANGELOG.md @@ -8,10 +8,12 @@ Changelog for the selfie Python libraries. and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). ## [Unreleased] - +### Added +- TODO ### Fixed - +- TODO ### Changed +- TODO ## [1.0.0] - 2024-12-16 diff --git a/python/pytest-selfie/pyproject.toml b/python/pytest-selfie/pyproject.toml index 20ea9c4b..d18ec24a 100644 --- a/python/pytest-selfie/pyproject.toml +++ b/python/pytest-selfie/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "pytest-selfie" -version = "1.0.0" +version = "1.0.1.dev0" description = "A pytest plugin for selfie snapshot testing." authors = [ { name = "Edwin Ye", email = "EdwinYeDeveloper@gmail.com" }, diff --git a/python/selfie-lib/pyproject.toml b/python/selfie-lib/pyproject.toml index 5ef07c37..2ba526a4 100644 --- a/python/selfie-lib/pyproject.toml +++ b/python/selfie-lib/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "selfie-lib" -version = "1.0.0" +version = "1.0.1.dev0" description = "Infrastructure for creating selfie-compatible test runner plugins." authors = [ { name = "Edwin Ye", email = "EdwinYeDeveloper@gmail.com" }, From b3db6aa4cc7ce864101e93a826f588b27bf63376 Mon Sep 17 00:00:00 2001 From: Ned Twigg Date: Mon, 16 Dec 2024 12:32:07 -0800 Subject: [PATCH 6/6] I keep forgetting to delete this line! --- python/example-pytest-selfie/tests/cache_test.py | 1 - 1 file changed, 1 deletion(-) diff --git a/python/example-pytest-selfie/tests/cache_test.py b/python/example-pytest-selfie/tests/cache_test.py index 8f458c45..955116b3 100644 --- a/python/example-pytest-selfie/tests/cache_test.py +++ b/python/example-pytest-selfie/tests/cache_test.py @@ -62,7 +62,6 @@ def test_gen_ai(): } } }""") - # raise ValueError(f"KEYS={chat.keys()} TYPE={type(chat)}") image_url: dict = cache_selfie_json( lambda: openai() .images.generate(