From 0b2446d68b9eebce16173421e732b5e12b86429772a2ca8f060165435c9df400 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 31 May 2022 15:23:29 +0000 Subject: [PATCH] Accepting request 979340 from home:pgajdos:python new dependency of python-cfn-lint OBS-URL: https://build.opensuse.org/request/show/979340 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:aws/python-jschema-to-python?expand=0&rev=1 --- .gitattributes | 24 ++++++++++++ .gitignore | 4 ++ jschema_to_python-1.2.3.tar.gz | 3 ++ python-jschema-to-python.changes | 5 +++ python-jschema-to-python.spec | 63 ++++++++++++++++++++++++++++++++ 5 files changed, 99 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 jschema_to_python-1.2.3.tar.gz create mode 100644 python-jschema-to-python.changes create mode 100644 python-jschema-to-python.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..37a8eaa --- /dev/null +++ b/.gitattributes @@ -0,0 +1,24 @@ +*.changes merge=merge-changes +*.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 +*.tar 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..8b731c3 --- /dev/null +++ b/.gitignore @@ -0,0 +1,4 @@ +*.obscpio +*.osc +_build.* +.pbuild diff --git a/jschema_to_python-1.2.3.tar.gz b/jschema_to_python-1.2.3.tar.gz new file mode 100644 index 0000000..b1a910e --- /dev/null +++ b/jschema_to_python-1.2.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:76ff14fe5d304708ccad1284e4b11f96a658949a31ee7faed9e0995279549b91 +size 10061 diff --git a/python-jschema-to-python.changes b/python-jschema-to-python.changes new file mode 100644 index 0000000..9144a20 --- /dev/null +++ b/python-jschema-to-python.changes @@ -0,0 +1,5 @@ +------------------------------------------------------------------- +Thu May 26 11:22:21 UTC 2022 - pgajdos@suse.com + +- initial version 1.2.3, required by python-cfn-lint + diff --git a/python-jschema-to-python.spec b/python-jschema-to-python.spec new file mode 100644 index 0000000..3ae6f85 --- /dev/null +++ b/python-jschema-to-python.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-jschema_to_python +# +# 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/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +Name: python-jschema-to-python +Version: 1.2.3 +Release: 0 +Summary: Generate source code for Python classes from a JSON schema +License: MIT +URL: https://github.com/microsoft/jschema-to-python +Source: https://files.pythonhosted.org/packages/source/j/jschema-to-python/jschema_to_python-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module pbr} +# SECTION test requirements +BuildRequires: %{python_module attrs} +BuildRequires: %{python_module jsonpickle} +BuildRequires: %{python_module pbr} +BuildRequires: %{python_module pytest} +# /SECTION +BuildRequires: fdupes +Requires: python-attrs +Requires: python-jsonpickle +Requires: python-pbr +BuildArch: noarch +%python_subpackages + +%description +Generate source code for Python classes from a JSON schema. + +%prep +%setup -q -n jschema_to_python-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest tests/ + +%files %{python_files} +%{python_sitelib}/* + +%changelog