Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-inline-snapshot for openSUSE:Factory checked in at 2025-01-20 17:14:31 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-inline-snapshot (Old) and /work/SRC/openSUSE:Factory/.python-inline-snapshot.new.5589 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-inline-snapshot" Mon Jan 20 17:14:31 2025 rev:3 rq:1238877 version:0.19.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-inline-snapshot/python-inline-snapshot.changes 2024-10-29 14:37:26.371214621 +0100 +++ /work/SRC/openSUSE:Factory/.python-inline-snapshot.new.5589/python-inline-snapshot.changes 2025-01-20 17:15:09.891652478 +0100 @@ -1,0 +2,59 @@ +Thu Jan 16 05:40:01 UTC 2025 - Steve Kowalik <steven.kowa...@suse.com> + +- Update to 0.19.3: + * Added + + added the optional inline-snapshot[dirty-equals] dependency to depend + on the dirty-equals version which works in combination with + inline-snapshot. + + You can now specify which tool you want to use to format your code by + setting a format-command in your configuration. + + Support for a new storage-dir configuration option, to tell + inline-snapshot where to store data files such as external snapshots. + + attrs can now contain unmanaged values + + inline_snapshot.extra.warns to captures warnings and compares them + against expected warnings. + + snapshots inside snapshots are now supported. + + runtime values can now be part of snapshots. + + f-strings can now also be used within snapshots, but are currently not + fixed by inline-snapshot. + * Changed + + BREAKING-CHANGE you have to install inline-snapshot[black] now if you + want to format your code like in the previous versions. This option is + not required if you use a format-command. + + dirty-equals expressions are now treated like runtime values or + snapshots within snapshots and are not modified by inline-snapshot. + * Fixed + + raise no assertion for positional arguments inside constructor methods. + + fixed a crash when you changed the snapshot to use a custom constructoro + method for dataclass/pydantic models. + + snapshots with pydantic models can now be compared multiple times + + Load default config values even if [tool.inline-snapshot] is missing. + + use '.model_fields' on pydantic model class and not instance. + + pydantic v1 is supported again. + + Code generation for sets is now deterministic. + + solved a bug caused by a variable inside a snapshot + + inline-snapshot checks now if the given command line flags + (--inline-snapshot=...) are valid + + do not crash when handling raw f-strings (rf"",RF"",...) + + Don't crash for snapshots like snapshot(f"") + + skip formatting if black returns an error + +------------------------------------------------------------------- +Wed Nov 13 15:46:47 UTC 2024 - John Paul Adrian Glaubitz <adrian.glaub...@suse.com> + +- Update to 0.14.0 + * Removed the "Programming Language :: Python :: Implementation :: PyPy" + classifier which was incorrect, because inline-snapshot can not fix + snapshots on pypy. inline-snapshot now enforces --inline-snapshot=disable + when used with an implementation other than cpython, which allows + it to be used in packages that want to support pypy. + * Command line shortcuts can be defined to simplify your workflows. + --review and --fix are defined by default. See the documentation + for details. + * --inline-snapshot=create/fix/trim/update will no longer show reports + for other categories. You can use --inline-snapshot=create,report + if you want to use the old behaviour. +- from version to 0.13.4 + * Use tomli instead of toml + +------------------------------------------------------------------- Old: ---- inline_snapshot-0.13.3.tar.gz New: ---- inline_snapshot-0.19.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-inline-snapshot.spec ++++++ --- /var/tmp/diff_new_pack.RvjlQR/_old 2025-01-20 17:15:10.303669440 +0100 +++ /var/tmp/diff_new_pack.RvjlQR/_new 2025-01-20 17:15:10.307669604 +0100 @@ -1,7 +1,7 @@ # # spec file for package python-inline-snapshot # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %{?sle15_python_module_pythons} Name: python-inline-snapshot -Version: 0.13.3 +Version: 0.19.3 Release: 0 Summary: Create and update inline snapshots in your Python code License: MIT @@ -37,25 +37,25 @@ BuildRequires: %{python_module mypy >= 1.2.0} BuildRequires: %{python_module pydantic} BuildRequires: %{python_module pyright >= 1.1.359} +BuildRequires: %{python_module pytest-freezer >= 0.4.8} +BuildRequires: %{python_module pytest-mock >= 3.14.0} BuildRequires: %{python_module pytest-subtests >= 0.11.0} -BuildRequires: %{python_module pytest-xdist} +BuildRequires: %{python_module pytest-xdist >= 3.6.1} BuildRequires: %{python_module pytest} BuildRequires: %{python_module rich >= 13.7.1} BuildRequires: %{python_module time-machine >= 2.10.0} -BuildRequires: %{python_module toml >= 0.10.2 if %python-base < 3.11} -BuildRequires: %{python_module typing-extensions} +BuildRequires: %{python_module tomli >= 2.0.0 if %python-base < 3.11} # /SECTION BuildRequires: fdupes Requires: python-asttokens >= 2.0.5 -Requires: python-black >= 23.3.0 -Requires: python-click >= 8.1.4 Requires: python-executing >= 2.0.0 Requires: python-rich >= 13.7.1 %if 0%{?python_version_nodots} < 311 -Requires: python-toml >= 0.10.2 -Requires: python-types-toml >= 0.10.8.7 +Requires: python-tomli >= 2.0.0 %endif -Requires: python-typing-extensions +Suggests: python-black >= 23.3 +Suggests: python-click >= 8.1.4 +Suggests: python-dirty-equals >= 0.9 BuildArch: noarch %python_subpackages @@ -76,9 +76,11 @@ #NOTE: disable test_typing because the underlying pyright module uses # nodeenv, which required https connection to nodejs.org. This is not # possible in OBS. -%pytest -v -k 'not test_typing' +%pytest -v -k 'not (test_typing or test_format_command_fail)' %files %{python_files} +%doc README.md CHANGELOG.md +%license LICENSE %{python_sitelib}/inline_snapshot %{python_sitelib}/inline_snapshot-%{version}.dist-info ++++++ inline_snapshot-0.13.3.tar.gz -> inline_snapshot-0.19.3.tar.gz ++++++ ++++ 8595 lines of diff (skipped)