14
0

New package, required by python-sigstore

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-rfc8785?expand=0&rev=1
This commit is contained in:
2025-01-21 14:16:29 +00:00
committed by Git OBS Bridge
commit fc0f87574c
5 changed files with 103 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

4
python-rfc8785.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Thu Oct 31 07:04:18 UTC 2024 - Daniel Garcia <daniel.garcia@suse.com>
- Initial version (0.1.4)

72
python-rfc8785.spec Normal file
View File

@@ -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

3
rfc8785-0.1.4.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f92c0e6d911a57ee39b019d55ecbe6a26bb762930f25dc5a91dcac9455b8dc99
size 14762