14
0
forked from pool/python-oras

new package python-oras, required by python-flux-local: OCI Registry as Storage enables libraries to push OCI Artifacts to OCI Conformant registries

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-oras?expand=0&rev=1
This commit is contained in:
2025-06-19 08:00:43 +00:00
committed by Git OBS Bridge
commit 8388fdd443
5 changed files with 108 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

3
oras-0.2.37.tar.gz Normal file
View File

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

6
python-oras.changes Normal file
View File

@@ -0,0 +1,6 @@
-------------------------------------------------------------------
Wed Jun 18 05:06:41 UTC 2025 - Johannes Kastl <opensuse_buildservice@ojkastl.de>
- new package python-oras, required by python-flux-local: OCI
Registry as Storage enables libraries to push OCI Artifacts to
OCI Conformant registries

75
python-oras.spec Normal file
View File

@@ -0,0 +1,75 @@
#
# spec file for package python-oras
#
# Copyright (c) 2025 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/
#
%{?sle15_python_module_pythons}
Name: python-oras
Version: 0.2.37
Release: 0
Summary: OCI Registry as Storage Python SDK
License: Apache-2.0
URL: https://github.com/oras-project/oras-py
Source: https://files.pythonhosted.org/packages/source/o/oras/oras-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
#
# SECTION runtime requirements
BuildRequires: %{python_module boto3}
BuildRequires: %{python_module jsonschema}
BuildRequires: %{python_module requests}
# /SECTION
# SECTION test requirements
BuildRequires: %{python_module pytest}
# /SECTION
BuildRequires: fdupes
Requires: python-jsonschema
Requires: python-requests
Requires: python-boto3 >= 1.33.0
Suggests: python-docker == 5.0.1
BuildArch: noarch
%python_subpackages
%description
OCI Registry as Storage Python SDK
%prep
%autosetup -p1 -n oras-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
# ignore checks that need network connectivity
IGNORED_CHECKS="test_get_many_tags"
IGNORED_CHECKS="${IGNORED_CHECKS} or test_ssl_no_verify"
IGNORED_CHECKS="${IGNORED_CHECKS} or test_ssl_verify_fails_if_bad_ca"
IGNORED_CHECKS="${IGNORED_CHECKS} or test_ssl_verify_fails_fast_if_bad_ca"
%pytest -k "not (${IGNORED_CHECKS})"
%files %{python_files}
%doc README.md
%license LICENSE
%{python_sitelib}/oras
%{python_sitelib}/oras-%{version}.dist-info
%changelog