From e1d3506449e646dc7859db39ac08c842868736f923d0f450cebe16f41b3053e6 Mon Sep 17 00:00:00 2001 From: Todd R Date: Wed, 9 May 2018 03:49:32 +0000 Subject: [PATCH] Accepting request 605542 from devel:languages:python:misc Functional programming tools OBS-URL: https://build.opensuse.org/request/show/605542 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-funcy?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++++++ .gitignore | 1 + funcy-1.10.1.tar.gz | 3 +++ python-funcy.changes | 24 +++++++++++++++++ python-funcy.spec | 63 ++++++++++++++++++++++++++++++++++++++++++++ 5 files changed, 114 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 funcy-1.10.1.tar.gz create mode 100644 python-funcy.changes create mode 100644 python-funcy.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/funcy-1.10.1.tar.gz b/funcy-1.10.1.tar.gz new file mode 100644 index 0000000..ad489be --- /dev/null +++ b/funcy-1.10.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c38ef134d34c767b9d631de453e19f710ac0575b9463d55e30f4f93274e089e4 +size 29657 diff --git a/python-funcy.changes b/python-funcy.changes new file mode 100644 index 0000000..0c8191c --- /dev/null +++ b/python-funcy.changes @@ -0,0 +1,24 @@ +------------------------------------------------------------------- +Wed May 9 02:16:15 UTC 2018 - toddrme2178@gmail.com + +- Update to 1.10.1 + * use raise from in reraise() + * fix @cache with mixed positional and keywords args (thx to adrian-dankiv) +- Update to 1.10 + * added @reraise() + * added unit and threshold params to *_durations() utils + * published and documented LazyObject + * fixed iffy() default argument when action is not present (Dmytro Kabakchei) + +------------------------------------------------------------------- +Wed Oct 18 16:43:43 UTC 2017 - toddrme2178@gmail.com + +- Implement single-spec version +- Update to 1.9.1 + * See changelog at https://github.com/Suor/funcy/blob/1.9.1/CHANGELOG + +------------------------------------------------------------------- +Mon Jul 14 11:33:03 UTC 2014 - toddrme2178@gmail.com + +- - Initial version + diff --git a/python-funcy.spec b/python-funcy.spec new file mode 100644 index 0000000..14218cd --- /dev/null +++ b/python-funcy.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-funcy +# +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. +# +# 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 http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%bcond_with test +Name: python-funcy +Version: 1.10.1 +Release: 0 +Summary: Functional tools for Python +License: BSD-3-Clause +Group: Development/Languages/Python +Url: http://github.com/Suor/funcy +Source: https://files.pythonhosted.org/packages/source/f/funcy/funcy-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch + +%python_subpackages + +%description +A collection of functional tools focused on practicality. + +Inspired by clojure, underscore and my own abstractions. + +%prep +%setup -q -n funcy-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%if %{with test} +%check +%python_exec setup.py test +%endif + +%files %{python_files} +%defattr(-,root,root,-) +%doc CHANGELOG README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog