commit 8388fdd4431f3298a764372630bae803da79529d0dd25c30af2e88c2517a3c05 Author: Markéta Machová Date: Thu Jun 19 08:00:43 2025 +0000 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 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/oras-0.2.37.tar.gz b/oras-0.2.37.tar.gz new file mode 100644 index 0000000..00f382c --- /dev/null +++ b/oras-0.2.37.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7e48f6b8cda08c11f612c16e2bdafc346b884be3a83b924495b5e43d34af0e1f +size 44409 diff --git a/python-oras.changes b/python-oras.changes new file mode 100644 index 0000000..8eb94a1 --- /dev/null +++ b/python-oras.changes @@ -0,0 +1,6 @@ +------------------------------------------------------------------- +Wed Jun 18 05:06:41 UTC 2025 - Johannes Kastl + +- new package python-oras, required by python-flux-local: OCI + Registry as Storage enables libraries to push OCI Artifacts to + OCI Conformant registries diff --git a/python-oras.spec b/python-oras.spec new file mode 100644 index 0000000..2e6959e --- /dev/null +++ b/python-oras.spec @@ -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