Compare commits
1 Commits
Author | SHA256 | Date | |
---|---|---|---|
b4fb6bb091 |
BIN
fastjsonschema-2.16.3.tar.gz
(Stored with Git LFS)
Normal file
BIN
fastjsonschema-2.16.3.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
fastjsonschema-2.19.1.tar.gz
(Stored with Git LFS)
BIN
fastjsonschema-2.19.1.tar.gz
(Stored with Git LFS)
Binary file not shown.
@@ -1,36 +1,3 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue May 7 07:15:45 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Add patch support-pytest-8.patch:
|
||||
* Support pytest >= 8.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 29 16:18:55 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.19.1:
|
||||
* Fixed date format to accept only two digit months and days
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Nov 27 18:48:55 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.19.0:
|
||||
* Added `use_formats` parameter to allow disable automatic assertions
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 26 19:04:36 UTC 2023 - Torsten Gruner <simmphonie@opensuse.org>
|
||||
|
||||
- update to 2.18.0
|
||||
* Improved error message for required props - only missing are reported
|
||||
* Fixed support of boolean schema in if-then-else application
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 29 14:28:04 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.17.1:
|
||||
* Fixed tests in sdist
|
||||
* Added support for Decimals
|
||||
* Added tests in sdist
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri May 12 10:18:43 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
@@ -40,7 +7,7 @@ Fri May 12 10:18:43 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
Mon Mar 6 21:23:34 UTC 2023 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
- update to 2.16.3:
|
||||
* Fix variable name resolving with references
|
||||
* Fix variable name resolving with references
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Oct 6 14:32:39 UTC 2022 - Dirk Müller <dmueller@suse.com>
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-fastjsonschema
|
||||
#
|
||||
# Copyright (c) 2024 SUSE LLC
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@@ -18,23 +18,24 @@
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
Name: python-fastjsonschema
|
||||
Version: 2.19.1
|
||||
Version: 2.16.3
|
||||
Release: 0
|
||||
Summary: Fastest Python implementation of JSON schema
|
||||
License: BSD-3-Clause
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/horejsek/python-fastjsonschema
|
||||
Source: https://files.pythonhosted.org/packages/source/f/fastjsonschema/fastjsonschema-%{version}.tar.gz
|
||||
# PATCH-FIX-UPSTREAM gh#horejsek/python-fastjsonschema#180
|
||||
Patch0: support-pytest-8.patch
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module pytest-benchmark}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
Suggests: python-colorama
|
||||
Suggests: python-json-spec
|
||||
Suggests: python-jsonschema
|
||||
Suggests: python-pylint
|
||||
Suggests: python-pytest
|
||||
Suggests: python-pytest-benchmark
|
||||
Suggests: python-pytest-cache
|
||||
Suggests: python-validictory
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
@@ -45,20 +46,19 @@ Fastest Python implementation of JSON schema
|
||||
%prep
|
||||
%autosetup -p1 -n fastjsonschema-%{version}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
chmod -x fastjsonschema.egg-info/*
|
||||
|
||||
%check
|
||||
%pytest
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
%license LICENSE
|
||||
%{python_sitelib}/fastjsonschema
|
||||
%{python_sitelib}/fastjsonschema-%{version}.dist-info
|
||||
%{python_sitelib}/fastjsonschema-%{version}*-info
|
||||
|
||||
%changelog
|
||||
|
@@ -1,64 +0,0 @@
|
||||
From 427a34e9ef409fefd8f1f7ae7e1c2a2bb7eb4496 Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Edgar=20Ram=C3=ADrez=20Mondrag=C3=B3n?=
|
||||
<edgarrm358@gmail.com>
|
||||
Date: Tue, 14 Nov 2023 18:05:17 -0600
|
||||
Subject: [PATCH] Use `warnings.catch_warnings` instead of `pytest.warns(None)`
|
||||
in tests
|
||||
|
||||
---
|
||||
tests/test_pattern_properties.py | 7 ++++---
|
||||
tests/test_string.py | 7 ++++---
|
||||
2 files changed, 8 insertions(+), 6 deletions(-)
|
||||
|
||||
diff --git a/tests/test_pattern_properties.py b/tests/test_pattern_properties.py
|
||||
index ae86946..945315b 100644
|
||||
--- a/tests/test_pattern_properties.py
|
||||
+++ b/tests/test_pattern_properties.py
|
||||
@@ -1,3 +1,5 @@
|
||||
+import warnings
|
||||
+
|
||||
import pytest
|
||||
|
||||
|
||||
@@ -59,12 +61,11 @@ def test_pattern_with_escape_no_warnings(asserter):
|
||||
'bar': {}
|
||||
}
|
||||
|
||||
- with pytest.warns(None) as record:
|
||||
+ with warnings.catch_warnings():
|
||||
+ warnings.simplefilter("error")
|
||||
asserter({
|
||||
'type': 'object',
|
||||
'patternProperties': {
|
||||
'\\w+': {'type': 'object'}
|
||||
}
|
||||
}, value, value)
|
||||
-
|
||||
- assert len(record) == 0
|
||||
diff --git a/tests/test_string.py b/tests/test_string.py
|
||||
index a8e8318..12fc3c9 100644
|
||||
--- a/tests/test_string.py
|
||||
+++ b/tests/test_string.py
|
||||
@@ -1,3 +1,5 @@
|
||||
+import warnings
|
||||
+
|
||||
import pytest
|
||||
|
||||
from fastjsonschema import JsonSchemaValueException
|
||||
@@ -74,14 +76,13 @@ def test_pattern_with_space(asserter, pattern):
|
||||
|
||||
|
||||
def test_pattern_with_escape_no_warnings(asserter):
|
||||
- with pytest.warns(None) as record:
|
||||
+ with warnings.catch_warnings():
|
||||
+ warnings.simplefilter("error")
|
||||
asserter({
|
||||
'type': 'string',
|
||||
'pattern': '\\s'
|
||||
}, ' ', ' ')
|
||||
|
||||
- assert len(record) == 0
|
||||
-
|
||||
|
||||
exc = JsonSchemaValueException('data must be a valid regex', value='{data}', name='data', definition='{definition}', rule='format')
|
||||
@pytest.mark.parametrize('value, expected', [
|
Reference in New Issue
Block a user