From 063c8ee916a7a35ac2ec29beb2f9c49727361e077dd16b2715fdf93198581eae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 21 Oct 2025 11:41:44 +0000 Subject: [PATCH] - Update to 0.7.8 * [JSON Schema] Add title for Literal. * JSON Schema missing title in subschemas. * [JSON Schema] Type "null" should be string. * Ruff format. * Include py.typed module when building package. - Adjust filename pattern matches in %files section OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-schema?expand=0&rev=18 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + python-schema.changes | 87 +++++++++++++++++++++++++++++++++++++++++++ python-schema.spec | 63 +++++++++++++++++++++++++++++++ schema-0.7.7.tar.gz | 3 ++ schema-0.7.8.tar.gz | 3 ++ 6 files changed, 180 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-schema.changes create mode 100644 python-schema.spec create mode 100644 schema-0.7.7.tar.gz create mode 100644 schema-0.7.8.tar.gz diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/python-schema.changes b/python-schema.changes new file mode 100644 index 0000000..7aaeeee --- /dev/null +++ b/python-schema.changes @@ -0,0 +1,87 @@ +------------------------------------------------------------------- +Tue Oct 21 08:51:16 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 0.7.8 + * [JSON Schema] Add title for Literal. + * JSON Schema missing title in subschemas. + * [JSON Schema] Type "null" should be string. + * Ruff format. + * Include py.typed module when building package. +- Adjust filename pattern matches in %files section + +------------------------------------------------------------------- +Mon Oct 28 22:48:53 UTC 2024 - Dirk Müller + +- update to 0.7.7: + * type hints + * fix: Fix setuptools not finding the schema package +- drop remove-old-python-support.patch (upstream) + +------------------------------------------------------------------- +Thu Aug 11 05:40:14 UTC 2022 - Steve Kowalik + +- Drop patch python-schema-no-mock.patch: + * Replaced by the below path. +- Add patch remove-old-python-support.patch: + * Remove support for old Python versions as well mock and contextlib2. +- Clean up {Build,}Requires as a result. + +------------------------------------------------------------------- +Wed May 4 09:07:11 UTC 2022 - pgajdos@suse.com + +- version update to 0.7.5 + * Full subclass support for nested schemas. + * Don't double-format errors. fixes #240 (#247) [Leif Ryge] + * Fix "Unknown format code" in Python 3.8 (#245) [Denis Blanchette] + * JSON Schema: Allow using $ref when schema is not a dict (#244) [Denis Blanchette] + * JSON Schema: Set additionalProperties true when dict contains str as key (#243) [Denis Blanchette] +- do not require python-mock for build +- added patches + fix https://github.com/keleshev/schema/pull/273 + + python-schema-no-mock.patch + +------------------------------------------------------------------- +Thu Sep 10 12:17:04 UTC 2020 - Antonio Larrosa + +- Update to 0.7.3 + * JSON Schema: Support schemas where the root is not a dict. + * Do not drop previous errors within an Or criterion. + +- Update to 0.7.2 + * Set the contextlib dependency as a minimum, rather than fixed. + +------------------------------------------------------------------- +Thu Mar 26 12:29:02 UTC 2020 - Marketa Calabkova + +- update to 0.7.1 + * JSON Schema: Fix allOf and oneOf with only one condition + * JSON Schema: Fix using falsy values as default + * Add 3.7 to "schema is tested with..." list + * JSON schema now rendering using references + +------------------------------------------------------------------- +Tue Mar 26 16:29:04 UTC 2019 - pgajdos@suse.com + +- version update to 0.7.0 + * Add an is_valid method to the schema + * Fix typo in schema.py: vaidated->validated + * Fix callable check under PyPy2 + +------------------------------------------------------------------- +Tue Dec 4 12:54:17 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Tue May 15 18:39:20 UTC 2018 - toddrme2178@gmail.com + +- Update to 0.6.7 + * Implement Const validator to keep data unchanged + * Implement Forbidden. + * added __hash__ and __eq__ based on sub-schema to Optional +- Use license tag + +------------------------------------------------------------------- +Fri Oct 20 16:18:26 UTC 2017 - toddrme2178@gmail.com + +- initial version diff --git a/python-schema.spec b/python-schema.spec new file mode 100644 index 0000000..ad46a27 --- /dev/null +++ b/python-schema.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-schema +# +# Copyright (c) 2025 SUSE LLC and contributors +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-schema +Version: 0.7.8 +Release: 0 +Summary: Data validation library +License: MIT +URL: https://github.com/keleshev/schema +Source: https://files.pythonhosted.org/packages/source/s/schema/schema-%{version}.tar.gz +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module pytest} +# /SECTION +BuildArch: noarch + +%python_subpackages + +%description +Schema is a library for validating Python data structures, such as those +obtained from config-files, forms, external services or command-line +parsing, converted from JSON/YAML (or something else) to Python data-types. + +%prep +%autosetup -p1 -n schema-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest test_schema.py + +%files %{python_files} +%doc README.rst +%license LICENSE-MIT +%{python_sitelib}/schema +%{python_sitelib}/schema-%{version}.dist-info + +%changelog diff --git a/schema-0.7.7.tar.gz b/schema-0.7.7.tar.gz new file mode 100644 index 0000000..1ca957c --- /dev/null +++ b/schema-0.7.7.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7da553abd2958a19dc2547c388cde53398b39196175a9be59ea1caf5ab0a1807 +size 44245 diff --git a/schema-0.7.8.tar.gz b/schema-0.7.8.tar.gz new file mode 100644 index 0000000..9cd2597 --- /dev/null +++ b/schema-0.7.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e86cc08edd6fe6e2522648f4e47e3a31920a76e82cce8937535422e310862ab5 +size 45540