forked from pool/python-sigstore
New package python-sigstore
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-sigstore?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal 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
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
.osc
|
4
python-sigstore.changes
Normal file
4
python-sigstore.changes
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jan 21 08:19:18 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Initial version (3.6.1)
|
121
python-sigstore.spec
Normal file
121
python-sigstore.spec
Normal file
@@ -0,0 +1,121 @@
|
|||||||
|
#
|
||||||
|
# spec file for package python-sigstore
|
||||||
|
#
|
||||||
|
# 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/
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?suse_version} > 1500
|
||||||
|
%bcond_without libalternatives
|
||||||
|
%else
|
||||||
|
%bcond_with libalternatives
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%{?sle15_python_module_pythons}
|
||||||
|
Name: python-sigstore
|
||||||
|
Version: 3.6.1
|
||||||
|
Release: 0
|
||||||
|
Summary: A tool for signing Python package distributions
|
||||||
|
License: Apache-2.0
|
||||||
|
URL: https://github.com/sigstore/sigstore-python
|
||||||
|
Source: https://github.com/sigstore/sigstore-python/archive/v%{version}.tar.gz#/sigstore-%{version}.tar.gz
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: %{python_module flit-core >= 3.2}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
|
BuildRequires: %{python_module rfc3161-client}
|
||||||
|
BuildRequires: %{python_module cryptography >= 42}
|
||||||
|
BuildRequires: %{python_module id >= 1.1.0}
|
||||||
|
BuildRequires: %{python_module platformdirs >= 4.2}
|
||||||
|
BuildRequires: %{python_module pyasn1 >= 0.6}
|
||||||
|
BuildRequires: %{python_module pydantic >= 2}
|
||||||
|
BuildRequires: %{python_module PyJWT >= 2.1}
|
||||||
|
BuildRequires: %{python_module pyOpenSSL >= 23.0.0}
|
||||||
|
BuildRequires: %{python_module requests}
|
||||||
|
BuildRequires: %{python_module rfc8785 >= 0.1.2}
|
||||||
|
BuildRequires: %{python_module rich >= 13.0}
|
||||||
|
BuildRequires: %{python_module sigstore-protobuf-specs == 0.3.2}
|
||||||
|
BuildRequires: %{python_module sigstore-rekor-types == 0.0.18}
|
||||||
|
BuildRequires: %{python_module tuf >= 5.0}
|
||||||
|
|
||||||
|
# SECTION test requirements
|
||||||
|
BuildRequires: %{python_module coverage}
|
||||||
|
BuildRequires: %{python_module pretend}
|
||||||
|
BuildRequires: %{python_module pytest}
|
||||||
|
BuildRequires: %{python_module pytest-cov}
|
||||||
|
BuildRequires: %{python_module importlib_resources if %python-base < 3.11}
|
||||||
|
# /SECTION
|
||||||
|
BuildRequires: fdupes
|
||||||
|
Requires: python-cryptography >= 42
|
||||||
|
Requires: python-id >= 1.1.0
|
||||||
|
Requires: python-platformdirs >= 4.2
|
||||||
|
Requires: python-pyasn1 >= 0.6
|
||||||
|
Requires: python-pydantic >= 2
|
||||||
|
Requires: python-PyJWT >= 2.1
|
||||||
|
Requires: python-pyOpenSSL >= 23.0.0
|
||||||
|
Requires: python-requests
|
||||||
|
Requires: python-rfc8785 >= 0.1.2
|
||||||
|
Requires: python-rich >= 13.0
|
||||||
|
Requires: python-sigstore-protobuf-specs == 0.3.2
|
||||||
|
Requires: python-sigstore-rekor-types == 0.0.18
|
||||||
|
Requires: python-tuf >= 5.0
|
||||||
|
Requires: (python-importlib_resources if python-base < 3.11)
|
||||||
|
Requires: python-rfc3161-client
|
||||||
|
%if %{with libalternatives}
|
||||||
|
BuildRequires: alts
|
||||||
|
Requires: alts
|
||||||
|
%else
|
||||||
|
Requires(post): update-alternatives
|
||||||
|
Requires(postun): update-alternatives
|
||||||
|
%endif
|
||||||
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
|
%description
|
||||||
|
sigstore is a Python tool for generating and verifying Sigstore
|
||||||
|
signatures. You can use it to sign and verify Python package
|
||||||
|
distributions, or anything else!
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -p1 -n sigstore-python-%{version}
|
||||||
|
|
||||||
|
%build
|
||||||
|
%pyproject_wheel
|
||||||
|
|
||||||
|
%install
|
||||||
|
%pyproject_install
|
||||||
|
%python_clone -a %{buildroot}%{_bindir}/sigstore
|
||||||
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
|
%check
|
||||||
|
%pytest --skip-online test/unit
|
||||||
|
|
||||||
|
%pre
|
||||||
|
# If libalternatives is used: Removing old update-alternatives entries.
|
||||||
|
%python_libalternatives_reset_alternative sigstore
|
||||||
|
|
||||||
|
%post
|
||||||
|
%python_install_alternative sigstore
|
||||||
|
|
||||||
|
%postun
|
||||||
|
%python_uninstall_alternative sigstore
|
||||||
|
|
||||||
|
%files %{python_files}
|
||||||
|
%doc README.md
|
||||||
|
%license LICENSE
|
||||||
|
%python_alternative %{_bindir}/sigstore
|
||||||
|
%{python_sitelib}/sigstore
|
||||||
|
%{python_sitelib}/sigstore-%{version}.dist-info
|
||||||
|
|
||||||
|
%changelog
|
3
sigstore-3.6.1.tar.gz
Normal file
3
sigstore-3.6.1.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:55ff874dc714a5b50b10f24934581d842a6ec33625ab17e89e94c693d62fa13b
|
||||||
|
size 278434
|
Reference in New Issue
Block a user