From 83b666256502f9db2e8a471b4fb8969641354c8d01d3ca36c44e0dad55453a22 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Wed, 11 Sep 2024 04:55:05 +0000 Subject: [PATCH] - Switch to pyproject and pytest macros. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-binary-memcached?expand=0&rev=10 --- .gitattributes | 23 +++++++++ .gitignore | 1 + python-binary-memcached-0.31.2.tar.gz | 3 ++ python-python-binary-memcached.changes | 27 ++++++++++ python-python-binary-memcached.spec | 70 ++++++++++++++++++++++++++ 5 files changed, 124 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-binary-memcached-0.31.2.tar.gz create mode 100644 python-python-binary-memcached.changes create mode 100644 python-python-binary-memcached.spec 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/python-binary-memcached-0.31.2.tar.gz b/python-binary-memcached-0.31.2.tar.gz new file mode 100644 index 0000000..96a5ac3 --- /dev/null +++ b/python-binary-memcached-0.31.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:290f70451e277df6a39aa0eea3cb6ca2eefcf5d601f957cf2ec1d353d7676c03 +size 96474 diff --git a/python-python-binary-memcached.changes b/python-python-binary-memcached.changes new file mode 100644 index 0000000..a967400 --- /dev/null +++ b/python-python-binary-memcached.changes @@ -0,0 +1,27 @@ +------------------------------------------------------------------- +Wed Sep 11 04:54:20 UTC 2024 - Steve Kowalik + +- Switch to pyproject and pytest macros. +- No more greedy globs in %files. + +------------------------------------------------------------------- +Wed May 3 09:07:48 UTC 2023 - Dirk Müller + +- update to 0.31.2: + * Remove setup's.py dependency on m2r +- drop drop-m2r-dependency.patch (upstream) + +------------------------------------------------------------------- +Fri Sep 30 12:19:52 UTC 2022 - Dirk Müller + +- update to 0.31.1: + * Use bytearrays for building up bytes for I/O. (#245) + * Expose incr/decr ``default`` and ``time`` protocol arguments in client class (#243) + * Add ability to return default value on get but breaking get's API + * Support an arbitrary collection of keys, not just a list +- add drop-m2r-dependency.patch + +------------------------------------------------------------------- +Fri Jun 12 11:21:10 PM UTC 2020 - John Vandenberg + +- Initial spec for v0.29.0 diff --git a/python-python-binary-memcached.spec b/python-python-binary-memcached.spec new file mode 100644 index 0000000..176bc2a --- /dev/null +++ b/python-python-binary-memcached.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-python-binary-memcached +# +# 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-python-binary-memcached +Version: 0.31.2 +Release: 0 +Summary: Access memcached via its binary protocol with SASL auth support +License: MIT +URL: https://github.com/jaysonsantos/python-binary-memcached +Source: https://files.pythonhosted.org/packages/source/p/python-binary-memcached/python-binary-memcached-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module six} +BuildRequires: %{python_module trustme} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: memcached +BuildRequires: python-rpm-macros +Requires: python-six +Requires: python-uhashring +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module uhashring} +# /SECTION +%python_subpackages + +%description +A pure python module to access memcached via its binary protocol with SASL auth support + +%prep +%setup -q -n python-binary-memcached-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export MEMCACHED_HOST=localhost +memcached & +pid=$! +%pytest -k 'not (SocketMemcachedTests or BinaryMemcachedTests or MemcachedTests)' +kill $pid + +%files %{python_files} +%license LICENSE +%doc README.rst +%{python_sitelib}/bmemcached +%{python_sitelib}/python_binary_memcached-%{version}.dist-info + +%changelog