From defd4c601758140eb260cdb99a8ae1908bc6fe51a38923f208e0a4ef153a7b48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= Date: Thu, 1 Aug 2019 07:53:49 +0000 Subject: [PATCH] Accepting request 720137 from home:jayvdb:py-new fixed 15.1 OBS-URL: https://build.opensuse.org/request/show/720137 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pprintpp?expand=0&rev=1 --- .gitattributes | 23 +++++++++++++++ .gitignore | 1 + 3a35e815.patch | 33 +++++++++++++++++++++ pprintpp-0.4.0.tar.gz | 3 ++ python-pprintpp.changes | 4 +++ python-pprintpp.spec | 63 +++++++++++++++++++++++++++++++++++++++++ 6 files changed, 127 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 3a35e815.patch create mode 100644 pprintpp-0.4.0.tar.gz create mode 100644 python-pprintpp.changes create mode 100644 python-pprintpp.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/3a35e815.patch b/3a35e815.patch new file mode 100644 index 0000000..060520f --- /dev/null +++ b/3a35e815.patch @@ -0,0 +1,33 @@ +From 873217674cc824b4c1cfdad4867c560c60e8d806 Mon Sep 17 00:00:00 2001 +From: Jake Waksbaum +Date: Fri, 18 Jan 2019 16:56:04 +0000 +Subject: [PATCH] Replace nose-parameterized with parameterized + +According to https://pypi.org/project/nose-parameterized +nose-parametrized is deprecated in favor of parameterized. +--- + test-requires.txt | 2 +- + test.py | 2 +- + 2 files changed, 2 insertions(+), 2 deletions(-) + +diff --git a/test-requires.txt b/test-requires.txt +index ed8195f..3621aa6 100644 +--- a/test-requires.txt ++++ b/test-requires.txt +@@ -1,2 +1,2 @@ + nose==1.3.0 +-nose_parameterized==0.3.3 ++parameterized==0.6.1 +diff --git a/test.py b/test.py +index 966c9de..45a0075 100644 +--- a/test.py ++++ b/test.py +@@ -5,7 +5,7 @@ + import textwrap + + from nose.tools import assert_equal +-from nose_parameterized import parameterized, param ++from parameterized import parameterized, param + + sys.path.append("pp/") + import pp diff --git a/pprintpp-0.4.0.tar.gz b/pprintpp-0.4.0.tar.gz new file mode 100644 index 0000000..97ff3ce --- /dev/null +++ b/pprintpp-0.4.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ea826108e2c7f49dc6d66c752973c3fc9749142a798d6b254e1e301cfdbc6403 +size 17995 diff --git a/python-pprintpp.changes b/python-pprintpp.changes new file mode 100644 index 0000000..505be27 --- /dev/null +++ b/python-pprintpp.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Aug 1 03:14:08 AM UTC 2019 - John Vandenberg + +- Initial spec for v0.4.0 diff --git a/python-pprintpp.spec b/python-pprintpp.spec new file mode 100644 index 0000000..e61d5ed --- /dev/null +++ b/python-pprintpp.spec @@ -0,0 +1,63 @@ +# +# spec file for package python-pprintpp +# +# Copyright (c) 2019 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-pprintpp +Version: 0.4.0 +Release: 0 +License: BSD-2-Clause +Summary: A pprint that is actually pretty +Url: https://github.com/wolever/pprintpp +Group: Development/Languages/Python +Source: https://files.pythonhosted.org/packages/source/p/pprintpp/pprintpp-%{version}.tar.gz +Patch0: https://github.com/wolever/pprintpp/commit/3a35e815.patch +BuildRequires: python-rpm-macros +BuildRequires: %{python_module parameterized} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module setuptools} +BuildRequires: fdupes +BuildArch: noarch + +%python_subpackages + +%description +A drop-in replacement for pprint that's actually pretty. + +%prep +%setup -q -n pprintpp-%{version} +%patch0 -p1 + +%build +export LANG=en_US.utf-8 +%python_build + +%install +export LANG=en_US.utf-8 +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +export LANG=en_US.utf-8 +%python_exec setup.py test --test-suite=test + +%files %{python_files} +%doc CHANGELOG.txt README.rst +%license LICENSE.txt +%python3_only %{_bindir}/pypprint +%{python_sitelib}/* + +%changelog