Subject: CVS commit: pkgsrc/devel/py-inline-snapshot
From: Adam Ciarcinski
Date: 2025-01-09 11:32:25
Message id: 20250109103225.8EA00FC1D@cvs.NetBSD.org

Log Message:
py-inline-snapshot: updated to 0.18.2

0.18.2 — 2025-01-02

Changed

- added `[dependency-groups]` to *pyproject.toml* and use uv and pytest to run \ 
tests in CI.

Fixed

- use '.model_fields' on pydantic model class and not instance. This fixes a \ 
deprecation warning in the upcomming pydantic v2.11

0.18.1 — 2024-12-22

Fixed

- uv is now only used during test time if you run the inline-snapshot tests with \ 
`pytest --use-uv`
  This solves a problem if you want to package inline-snapshot in distributions

0.18.0 — 2024-12-21

Added

- Support for a new `storage-dir` configuration option, to tell inline-snapshot \ 
where to store data files such as external snapshots.

Fixed

- pydantic v1 is supported again. pydantic v1 & v2 create now the same \ 
snapshots. You can use `.dict()` to get the same snapshots like in \ 
inline-snapshot-0.15.0 for pydantic v1.

    ``` python
    class M(BaseModel):
        name: str

    def test_pydantic():
        m = M(name="Tom")
        assert m == snapshot(M(name="Tom"))
        assert m.dict() == snapshot({"name": "Tom"})
    ```

- Find `pyproject.toml` file in parent directories, not just next to the Pytest \ 
configuration file.

Files:
RevisionActionfile
1.2modifypkgsrc/devel/py-inline-snapshot/Makefile
1.2modifypkgsrc/devel/py-inline-snapshot/PLIST
1.2modifypkgsrc/devel/py-inline-snapshot/distinfo