commit fc0f87574ca44addbdf07f6188bfb37896f1c6bb32e20d0214a36749002b27b8 Author: Markéta Machová Date: Tue Jan 21 14:16:29 2025 +0000 New package, required by python-sigstore OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rfc8785?expand=0&rev=1 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-rfc8785.changes b/python-rfc8785.changes new file mode 100644 index 0000000..478e938 --- /dev/null +++ b/python-rfc8785.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Oct 31 07:04:18 UTC 2024 - Daniel Garcia + +- Initial version (0.1.4) diff --git a/python-rfc8785.spec b/python-rfc8785.spec new file mode 100644 index 0000000..94532f3 --- /dev/null +++ b/python-rfc8785.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-rfc8785 +# +# 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-rfc8785 +Version: 0.1.4 +Release: 0 +Summary: A pure-Python implementation of RFC 8785 +License: Apache-2.0 +URL: https://github.com/trailofbits/rfc8785.py +Source: https://github.com/trailofbits/rfc8785.py/archive/v%{version}.tar.gz#/rfc8785-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module flit-core >= 3.5} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module wheel} +# SECTION test requirements +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module pytest-cov} +# /SECTION +BuildRequires: fdupes +BuildArch: noarch +%python_subpackages + +%description +A pure-Python, no-dependency implementation of RFC 8785, a.k.a. JSON +Canonicalization Scheme or JCS. + +This implementation should be behaviorally comparable to Andrew +Rundgren's reference implementation, with the following added +constraints: + +1. This implementation does not transparently convert non-`str` + dictionary keys into strings. Users must explicitly perform this + conversion. +2. No support for indentation, pretty-printing, etc. is provided. The + output is always minimally encoded. +3. All APIs produce UTF-8-encoded `bytes` objects or `bytes` I/O. + +%prep +%autosetup -p1 -n rfc8785.py-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc README.md +%license LICENSE +%{python_sitelib}/rfc8785 +%{python_sitelib}/rfc8785-%{version}.dist-info + +%changelog diff --git a/rfc8785-0.1.4.tar.gz b/rfc8785-0.1.4.tar.gz new file mode 100644 index 0000000..d8f44c8 --- /dev/null +++ b/rfc8785-0.1.4.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f92c0e6d911a57ee39b019d55ecbe6a26bb762930f25dc5a91dcac9455b8dc99 +size 14762