From 3e82112a981feaeb2e1dc9674680cf01a9a7ceea94b8aa1b9377db66c7ef0898 Mon Sep 17 00:00:00 2001 From: Todd R Date: Fri, 1 Jun 2018 12:38:10 +0000 Subject: [PATCH] Accepting request 613464 from devel:languages:python:misc Convenient utilities not included with the standard Python install OBS-URL: https://build.opensuse.org/request/show/613464 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-python-utils?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + python-python-utils.changes | 12 +++++++ python-python-utils.spec | 72 +++++++++++++++++++++++++++++++++++++ python-utils-2.3.0.tar.gz | 3 ++ 5 files changed, 111 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 python-python-utils.changes create mode 100644 python-python-utils.spec create mode 100644 python-utils-2.3.0.tar.gz 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-python-utils.changes b/python-python-utils.changes new file mode 100644 index 0000000..2abaf55 --- /dev/null +++ b/python-python-utils.changes @@ -0,0 +1,12 @@ +------------------------------------------------------------------- +Thu May 24 17:40:45 UTC 2018 - toddrme2178@gmail.com + +- Update to 2.3.0 + * Added several time methods and terminal size detection +- Fix tests +- spec file cleanups + +------------------------------------------------------------------- +Tue Nov 7 18:25:29 UTC 2017 - toddrme2178@gmail.com + +- initial version diff --git a/python-python-utils.spec b/python-python-utils.spec new file mode 100644 index 0000000..d8bd51f --- /dev/null +++ b/python-python-utils.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-python-utils +# +# 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-%{**}} +Name: python-python-utils +Version: 2.3.0 +Release: 0 +License: BSD-3-Clause +Summary: Convenient utilities not included with the standard Python install +Url: https://github.com/WoLpH/python-utils +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/p/python-utils/python-utils-%{version}.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# SECTION test requirements +BuildRequires: %{python_module pytest} +BuildRequires: %{python_module six} +# /SECTION +Requires: python-six +BuildArch: noarch + +%python_subpackages + +%description +Python Utils is a collection of small Python functions and +classes which make common patterns shorter and easier. It is by no means a +complete collection but it has served me quite a bit in the past and I will +keep extending it. + +%prep +%setup -q -n python-utils-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +# default test settings enable some pytest backends we don't care about +mv pytest.ini old_pytest.ini_old +%{python_expand rm -rf _build.* build tests/__pycache__ tests/*.pyc tests/*.pyo +export PYTHONDONTWRITEBYTECODE=1 +export PYTHONPATH=%{buildroot}%{$python_sitelib} +py.test-%{$python_bin_suffix} tests/*.py +} +mv old_pytest.ini_old pytest.ini + +%files %{python_files} +%doc README.rst +%license LICENSE +%{python_sitelib}/* + +%changelog diff --git a/python-utils-2.3.0.tar.gz b/python-utils-2.3.0.tar.gz new file mode 100644 index 0000000..2c431f2 --- /dev/null +++ b/python-utils-2.3.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:34aaf26b39b0b86628008f2ae0ac001b30e7986a8d303b61e1357dfcdad4f6d3 +size 19384