From 06c6101e2f74787abbc92d53edda23b060013f7ab93bd2bf3003fe836501ef9a Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 5 Mar 2024 12:17:48 +0000 Subject: [PATCH] Accepting request 1155105 from home:mcalabkova:branches:devel:languages:python:aws will be needed by new moto OBS-URL: https://build.opensuse.org/request/show/1155105 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-joserfc?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + joserfc-0.9.0.tar.gz | 3 ++ python-joserfc.changes | 4 +++ python-joserfc.spec | 63 ++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 94 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 joserfc-0.9.0.tar.gz create mode 100644 python-joserfc.changes create mode 100644 python-joserfc.spec 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/joserfc-0.9.0.tar.gz b/joserfc-0.9.0.tar.gz new file mode 100644 index 0000000..927c060 --- /dev/null +++ b/joserfc-0.9.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:eebca7f587b1761ce43a98ffd5327f2b600b9aa5bb0a77b947687f503ad43bc0 +size 166087 diff --git a/python-joserfc.changes b/python-joserfc.changes new file mode 100644 index 0000000..f21e798 --- /dev/null +++ b/python-joserfc.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Mar 1 14:44:30 UTC 2024 - Markéta Machová + +- Initial packaging (v0.9.0), needed by python-moto diff --git a/python-joserfc.spec b/python-joserfc.spec new file mode 100644 index 0000000..2f39ef9 --- /dev/null +++ b/python-joserfc.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-joserfc +# +# Copyright (c) 2024 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/ +# + + +Name: python-joserfc +Version: 0.9.0 +Release: 0 +Summary: The ultimate Python library for JOSE RFCs +License: BSD-3-Clause +URL: https://github.com/authlib/joserfc +Source: https://files.pythonhosted.org/packages/source/j/joserfc/joserfc-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module pip} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +# SECTION test requirements +BuildRequires: %{python_module cryptography} +BuildRequires: %{python_module pycryptodome} +BuildRequires: %{python_module pytest} +# /SECTION +BuildRequires: fdupes +Requires: python-cryptography +Suggests: python-pycryptodome +BuildArch: noarch +%python_subpackages + +%description +The ultimate Python library for JOSE RFCs, including JWS, JWE, JWK, JWA, JWT + +%prep +%autosetup -p1 -n joserfc-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/joserfc +%{python_sitelib}/joserfc-%{version}.dist-info + +%changelog