%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 - 0.4.3-1 - Package Spec generated