summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 02:23:17 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 02:23:17 +0000
commitc628ebe15b5ef25d1c6b8626ee3396dc935446b5 (patch)
tree44e0ac030053a10ca867cd05a7cdf00367b416a6
parent469f607294c678d1f3b3cadffb750710f66536c5 (diff)
automatic import of python-plucky
-rw-r--r--.gitignore1
-rw-r--r--python-plucky.spec108
-rw-r--r--sources1
3 files changed, 110 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..b74f953 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/plucky-0.4.3.tar.gz
diff --git a/python-plucky.spec b/python-plucky.spec
new file mode 100644
index 0000000..49b702a
--- /dev/null
+++ b/python-plucky.spec
@@ -0,0 +1,108 @@
+%global _empty_manifest_terminate_build 0
+Name: python-plucky
+Version: 0.4.3
+Release: 1
+Summary: Plucking (deep) keys/paths safely from python collections has never been easier.
+License: MIT
+URL: https://github.com/randomir/plucky
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/4f/4e/a2d3157ec7031ea3ccc313400db27b92a65a9c002396a709e7457626f7ad/plucky-0.4.3.tar.gz
+BuildArch: noarch
+
+
+%description
+``plucky.pluckable`` happily wraps any Python object and allows
+for chained soft plucking with attribute- and item- getters (e.g. ``.attr``,
+``["key"]``, ``[idx]``, ``[::2]``, or a combination: ``["key1", "key2"]``,
+and ``[0, 3:7, ::-1]``; even: ``["length", 0:5, 7]``).
+``plucky.pluck`` will allow you to pluck *same as with* ``pluckable``
+(regarding the plucking operations), but accepting a string selector
+instead of a Python expression.
+``plucky.plucks`` enables you to safely extract several-levels deep values by
+using a concise string selector comprised of dictionary-like keys and list-like
+indices/slices. Stands for *pluck simplified*, since it supports only a subset of
+``pluck`` syntax. It's simpler and a more efficient.
+``plucky.merge`` facilitates recursive merging of two data structures, reducing
+leaf values with the provided binary operator.
+
+%package -n python3-plucky
+Summary: Plucking (deep) keys/paths safely from python collections has never been easier.
+Provides: python-plucky
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-plucky
+``plucky.pluckable`` happily wraps any Python object and allows
+for chained soft plucking with attribute- and item- getters (e.g. ``.attr``,
+``["key"]``, ``[idx]``, ``[::2]``, or a combination: ``["key1", "key2"]``,
+and ``[0, 3:7, ::-1]``; even: ``["length", 0:5, 7]``).
+``plucky.pluck`` will allow you to pluck *same as with* ``pluckable``
+(regarding the plucking operations), but accepting a string selector
+instead of a Python expression.
+``plucky.plucks`` enables you to safely extract several-levels deep values by
+using a concise string selector comprised of dictionary-like keys and list-like
+indices/slices. Stands for *pluck simplified*, since it supports only a subset of
+``pluck`` syntax. It's simpler and a more efficient.
+``plucky.merge`` facilitates recursive merging of two data structures, reducing
+leaf values with the provided binary operator.
+
+%package help
+Summary: Development documents and examples for plucky
+Provides: python3-plucky-doc
+%description help
+``plucky.pluckable`` happily wraps any Python object and allows
+for chained soft plucking with attribute- and item- getters (e.g. ``.attr``,
+``["key"]``, ``[idx]``, ``[::2]``, or a combination: ``["key1", "key2"]``,
+and ``[0, 3:7, ::-1]``; even: ``["length", 0:5, 7]``).
+``plucky.pluck`` will allow you to pluck *same as with* ``pluckable``
+(regarding the plucking operations), but accepting a string selector
+instead of a Python expression.
+``plucky.plucks`` enables you to safely extract several-levels deep values by
+using a concise string selector comprised of dictionary-like keys and list-like
+indices/slices. Stands for *pluck simplified*, since it supports only a subset of
+``pluck`` syntax. It's simpler and a more efficient.
+``plucky.merge`` facilitates recursive merging of two data structures, reducing
+leaf values with the provided binary operator.
+
+%prep
+%autosetup -n plucky-0.4.3
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-plucky -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 0.4.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..7cf79d6
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+b91764b23264d7ae5d8109f9db0628f6 plucky-0.4.3.tar.gz