From 8bb96ee2585fdcb7fbb2550fb4107cb51db0b65f717d078dcd49c994685b058e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 22 Sep 2025 08:38:01 +0000 Subject: [PATCH] - Update to 2.1.0 * Update maintainers in pyproject.toml * Drop support for Python < 3.9 * Update poetry deps * Migrate from poetry to flit * Add pep8 target * Support default values for fields. * Don't override values set in the constructor. * Allow default values in nested properties. * Fix nested properties with initalization values. * Add tests for default values. * tox: Run pep8 by default - Update BuildRequires from pyproject.toml - Use Python 3.11 on SLE-15 by default OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-warlock?expand=0&rev=40 --- .gitattributes | 23 +++++++ .gitignore | 1 + python-warlock.changes | 145 +++++++++++++++++++++++++++++++++++++++++ python-warlock.spec | 64 ++++++++++++++++++ warlock-2.1.0.tar.gz | 3 + 5 files changed, 236 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-warlock.changes create mode 100644 python-warlock.spec create mode 100644 warlock-2.1.0.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-warlock.changes b/python-warlock.changes new file mode 100644 index 0000000..10ccf7f --- /dev/null +++ b/python-warlock.changes @@ -0,0 +1,145 @@ +------------------------------------------------------------------- +Fri Sep 19 09:53:33 UTC 2025 - John Paul Adrian Glaubitz + +- Update to 2.1.0 + * Update maintainers in pyproject.toml + * Drop support for Python < 3.9 + * Update poetry deps + * Migrate from poetry to flit + * Add pep8 target + * Support default values for fields. + * Don't override values set in the constructor. + * Allow default values in nested properties. + * Fix nested properties with initalization values. + * Add tests for default values. + * tox: Run pep8 by default +- Update BuildRequires from pyproject.toml +- Use Python 3.11 on SLE-15 by default + +------------------------------------------------------------------- +Tue Sep 26 13:38:50 UTC 2023 - Ben Greiner + +- Fix dependencies and remove deprecated python packaging patterns + +------------------------------------------------------------------- +Fri Oct 14 18:58:16 UTC 2022 - pgajdos@suse.com + +- version update to 2.0.1 + Added + * Meta: Locked dependencies via poetry.lock file in version control. #44 + * Meta: Add pre-commit config to enforce code styling and file formatting. #43 + * Meta: Add tox config for test automation across Python versions. #47 + * Tests for DeprecationWarnings issued for Model.changes. #46 + * Cache the validator instance to speedup schema validation process. #55 + * Support for jsonschema 4.x. #65 + * Support for Python 3.9, 3.10. #65 + Fixed + * Fixed DeprecationWarnings for using assertEquals in tests. #45 + Changed + * Meta: Replace setuptools with poetry for packaging and dependency management. #35 + * Changed behavior of model_factory back to pre-1.3 call signature. #39 + * Meta: Switched build backend from poetry to poetry-core. #66 + Removed + * Support for Python 3.4 (EOL). #44 + * Support for Python 3.5, 3.6 (EOL). #65 + * Support for Python 2.7 (EOL by 2019-01-01). #48 + +------------------------------------------------------------------- +Wed May 25 07:51:12 UTC 2022 - Matej Cepl + +- Skipped test_recursive_models because the package is + incompatible with jsonschema < 4 (gh#bcwaldon/warlock#64). + +------------------------------------------------------------------- +Tue Sep 17 04:46:39 UTC 2019 - John Vandenberg + +- Re-activate test suite using GitHub tarball which includes + a setup.py + +------------------------------------------------------------------- +Fri May 24 13:56:28 UTC 2019 - Tomáš Chvátal + +- Update to 1.3.3: + * README failed parsing in non utf-8 environments. Enforce encoding. #37 + * Move unittests to tests/ directory + * Upstream no longer ships tests on pypi + +------------------------------------------------------------------- +Tue Dec 4 12:55:54 UTC 2018 - Matej Cepl + +- Remove superfluous devel dependency for noarch package + +------------------------------------------------------------------- +Tue Nov 14 23:25:58 UTC 2017 - dmueller@suse.com + +- update to 1.3.0: + * Allow resolver to be set in model + * flake8 compliance + +------------------------------------------------------------------- +Wed Aug 23 04:30:53 UTC 2017 - tbechtold@suse.com + +- convert to singlespec + +------------------------------------------------------------------- +Tue Nov 15 12:40:31 UTC 2016 - dmueller@suse.com + +- update to 1.2.0 + +------------------------------------------------------------------- +Tue Sep 16 13:25:54 UTC 2014 - tbechtold@suse.com + +- update to version 1.1.0: + * Bump version to 1.1.0 + * Merge pull request #12 from apevec/master + * LICENSE.txt was missing in the source tarball + * Merge pull request #11 from isethi/validation + * Add description to exception messages + * Add python3 support +- Add python-to as BuildRequires and Requires. + +------------------------------------------------------------------- +Thu Oct 24 11:16:53 UTC 2013 - speilicke@suse.com + +- Require python-setuptools instead of distribute (upstreams merged) + +------------------------------------------------------------------- +Wed Jul 3 15:53:48 UTC 2013 - dmueller@suse.com + +- update to 1.0.1: + - drop allow-jsonschema-3.diff + +------------------------------------------------------------------- +Sat Jun 22 14:16:40 UTC 2013 - dmueller@suse.com + +- add allow-jsonschema-3.diff + +------------------------------------------------------------------- +Mon Apr 29 12:59:50 UTC 2013 - dmueller@suse.com + +- update to 1.0.0: + * stable release + +------------------------------------------------------------------- +Mon Feb 25 14:28:02 UTC 2013 - saschpe@suse.de + +- Allow jsonschema==1.0 too + +------------------------------------------------------------------- +Fri Feb 22 14:05:28 UTC 2013 - saschpe@suse.de + +- Update to version 0.8.1: + + Upstream provides no changelog +- LICENSE isn't part of upstream sources anymore + +------------------------------------------------------------------- +Thu Nov 22 15:53:15 UTC 2012 - saschpe@suse.de + +- Update to version 0.6.0: + + Upstream provides no changelog + +------------------------------------------------------------------- +Thu Jul 26 13:50:39 UTC 2012 - saschpe@suse.de + +- Initial version + diff --git a/python-warlock.spec b/python-warlock.spec new file mode 100644 index 0000000..d7d9f62 --- /dev/null +++ b/python-warlock.spec @@ -0,0 +1,64 @@ +# +# spec file for package python-warlock +# +# Copyright (c) 2022 SUSE LLC +# +# 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/ +# + +%{?sle15_python_module_pythons} +Name: python-warlock +Version: 2.1.0 +Release: 0 +Summary: Python object model built on top of JSON schema +License: Apache-2.0 +Group: Development/Languages/Python +URL: https://github.com/bcwaldon/warlock +Source: https://github.com/bcwaldon/warlock/archive/%{version}.tar.gz#/warlock-%{version}.tar.gz +BuildRequires: %{python_module flit-core} +BuildRequires: %{python_module jsonpatch >= 1} +BuildRequires: %{python_module jsonschema >= 4} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module poetry-core} +BuildRequires: %{python_module pytest >= 6.0} +BuildRequires: %{python_module pytest-cov >= 3.0} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-jsonpatch >= 1 +Requires: python-jsonschema >= 4 +BuildArch: noarch +%python_subpackages + +%description +Build self-validating python objects using JSON schemas. + +%prep +%setup -q -n warlock-%{version} +rm pytest.ini + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/warlock +%{python_sitelib}/warlock-%{version}.dist-info + +%changelog diff --git a/warlock-2.1.0.tar.gz b/warlock-2.1.0.tar.gz new file mode 100644 index 0000000..0352db0 --- /dev/null +++ b/warlock-2.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:68c3a4082d0578b2558a1649b1954f92f923ee5c14a0afa1eb7a27787c61280d +size 12835