Skip to content

Commit

Permalink
bump: version 0.17.1 → 0.18.0
Browse files Browse the repository at this point in the history
  • Loading branch information
15r10nk committed Dec 21, 2024
1 parent df78b7f commit bbbe50e
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 136 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,11 +128,11 @@ jobs:
run: hatch build

- name: Publish package distributions to PyPI
if: ${{ steps.check-version.outputs.should_continue == true }}
if: ${{ steps.check-version.outputs.should_continue == 'true' }}
uses: pypa/gh-action-pypi-publish@67339c736fd9354cd4f8cb0b744f2b82a74b5c70 # v1.12.3

- name: create github release
if: ${{ steps.check-version.outputs.should_continue == true }}
if: ${{ steps.check-version.outputs.should_continue == 'true' }}
env:
GITHUB_TOKEN: ${{ github.token }}
run: scriv github-release
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,28 @@

<a id='changelog-0.18.0'></a>
# 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.

<a id='changelog-0.17.1'></a>
# 0.17.1 — 2024-12-17

Expand Down
40 changes: 0 additions & 40 deletions changelog.d/20241220_120136_Pawamoy_snapshot_dir_config.md

This file was deleted.

52 changes: 0 additions & 52 deletions changelog.d/20241220_173346_15r10nk-git_pydantic_v1.md

This file was deleted.

40 changes: 0 additions & 40 deletions changelog.d/20241220_221301_Pawamoy_find_pyproject_upper_dirs.md

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ keywords = []
name = "inline-snapshot"
readme = "README.md"
requires-python = ">=3.8"
version = "0.17.1"
version = "0.18.0"

[project.entry-points.pytest11]
inline_snapshot = "inline_snapshot.pytest_plugin"
Expand Down
2 changes: 1 addition & 1 deletion src/inline_snapshot/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@
"Snapshot",
]

__version__ = "0.17.1"
__version__ = "0.18.0"

0 comments on commit bbbe50e

Please sign in to comment.