commit 1cd331005a83e1060778488f36a5f441494c8209e4fe4ae9de491f0cf9194149 Author: Markéta Machová Date: Thu Jul 4 13:24:52 2024 +0000 Accepting request 1184828 from home:dgarcia:branches:devel:languages:python - New package, required by the python-pdm update OBS-URL: https://build.opensuse.org/request/show/1184828 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hishel?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/hishel-0.0.29.tar.gz b/hishel-0.0.29.tar.gz new file mode 100644 index 0000000..4aa62b0 --- /dev/null +++ b/hishel-0.0.29.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de6ee9aa732862aa75761f6116e0b11625a48e46bff3e9bd90cb3ab8ee98564e +size 828680 diff --git a/python-hishel.changes b/python-hishel.changes new file mode 100644 index 0000000..383be7d --- /dev/null +++ b/python-hishel.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Tue Jul 2 08:46:08 UTC 2024 - Daniel Garcia + +- Initial version (0.0.29) diff --git a/python-hishel.spec b/python-hishel.spec new file mode 100644 index 0000000..7f527f6 --- /dev/null +++ b/python-hishel.spec @@ -0,0 +1,74 @@ +# +# spec file for package python-hishel +# +# 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-hishel +Version: 0.0.29 +Release: 0 +Summary: Persistent cache implementation for httpx and httpcore +License: BSD-3-Clause +URL: https://github.com/karpetrosyan/hishel +Source: https://github.com/karpetrosyan/hishel/archive/refs/tags/%{version}.tar.gz#/hishel-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: %{python_module hatch-fancy-pypi-readme} +BuildRequires: %{python_module hatchling} +BuildRequires: %{python_module pip} +# SECTION test requirements +BuildRequires: %{python_module httpx >= 0.22.0} +BuildRequires: %{python_module typing_extensions >= 4.8.0} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module redis} +BuildRequires: %{python_module PyYAML} +BuildRequires: %{python_module trio} +BuildRequires: %{pythons} +# /SECTION +BuildRequires: fdupes +BuildRequires: python +Requires: python-httpx >= 0.22.0 +Requires: python-typing_extensions >= 4.8.0 +Suggests: python-pyyaml == 6.0.1 +Suggests: python-redis == 5.0.1 +Suggests: python-anysqlite >= 0.0.5 +Suggests: python-boto3 >= 1.15.0 +BuildArch: noarch +%python_subpackages + +%description +Hishel (հիշել, remember) is a library that implements HTTP Caching for +HTTPX and HTTP Core libraries in accordance with RFC 9111, the most +recent caching specification. + +%prep +%autosetup -p1 -n hishel-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest --ignore tests/_async/test_storages.py --ignore tests/_sync/test_storages.py + +%files %{python_files} +%doc CHANGELOG.md README.md +%license LICENSE +%{python_sitelib}/hishel +%{python_sitelib}/hishel-%{version}.dist-info + +%changelog