forked from pool/python-syrupy
Accepting request 1124101 from devel:languages:python:pytest
- update to 4.6.0:
* **serializer:** add support for FunctionType serialization
* support setting defaults
* **filter:** add paths_include filter
* add include option to snapshots, similar to exclude
* remove colored dependency
* support python 3.12
* **serializer:** add snapshot regex value matcher and bypass
custom repr helper
* preserve Falsy values in assertion diff function
* **amber:** expose serialize_custom_iterable method of
AmberDataSerializer
- drop no-colored.patch: obsolete
OBS-URL: https://build.opensuse.org/request/show/1124101
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-syrupy?expand=0&rev=3
This commit is contained in:
@@ -1,18 +0,0 @@
|
||||
Index: syrupy-4.0.4/src/syrupy/terminal.py
|
||||
===================================================================
|
||||
--- syrupy-4.0.4.orig/src/syrupy/terminal.py
|
||||
+++ syrupy-4.0.4/src/syrupy/terminal.py
|
||||
@@ -2,8 +2,12 @@ from typing import (
|
||||
Any,
|
||||
Union,
|
||||
)
|
||||
+import os
|
||||
|
||||
-import colored
|
||||
+try:
|
||||
+ import colored
|
||||
+except ImportError:
|
||||
+ os.environ["DISABLE_COLOR_ENV_VARS"] = "1"
|
||||
|
||||
from .constants import DISABLE_COLOR_ENV_VARS
|
||||
from .utils import get_env_value
|
||||
@@ -1,3 +1,20 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 7 20:20:53 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 4.6.0:
|
||||
* **serializer:** add support for FunctionType serialization
|
||||
* support setting defaults
|
||||
* **filter:** add paths_include filter
|
||||
* add include option to snapshots, similar to exclude
|
||||
* remove colored dependency
|
||||
* support python 3.12
|
||||
* **serializer:** add snapshot regex value matcher and bypass
|
||||
custom repr helper
|
||||
* preserve Falsy values in assertion diff function
|
||||
* **amber:** expose serialize_custom_iterable method of
|
||||
AmberDataSerializer
|
||||
- drop no-colored.patch: obsolete
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jul 24 19:59:52 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
||||
@@ -17,14 +17,12 @@
|
||||
|
||||
|
||||
Name: python-syrupy
|
||||
Version: 4.0.8
|
||||
Version: 4.6.0
|
||||
Release: 0
|
||||
Summary: Pytest Snapshot Test Utility
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/tophat/syrupy
|
||||
Source: https://github.com/tophat/syrupy/archive/refs/tags/v%{version}.tar.gz#/syrupy-%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE mmachova@suse.com syrupy has a dependency colored (yet another terminal colors), which we don't have in the distribution and I couldn't manage to package it.
|
||||
Patch: no-colored.patch
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module poetry-core >= 1.4.0}
|
||||
BuildRequires: %{python_module pytest >= 7.0.0}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:c5afbddd13d7c440f707ec24ab771aa923a5653fda8574b45ee5c445ecc5e0e3
|
||||
size 2303842
|
||||
3
syrupy-4.6.0.tar.gz
Normal file
3
syrupy-4.6.0.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:10834db795370041292b3942787e31cf3a719619866ec03f4bd3a04302ca5333
|
||||
size 2308119
|
||||
Reference in New Issue
Block a user