14
0

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
This commit is contained in:
Tomáš Chvátal
2019-08-01 07:53:49 +00:00
committed by Git OBS Bridge
commit defd4c6017
6 changed files with 127 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

33
3a35e815.patch Normal file
View File

@@ -0,0 +1,33 @@
From 873217674cc824b4c1cfdad4867c560c60e8d806 Mon Sep 17 00:00:00 2001
From: Jake Waksbaum <jake.waksbaum@gmail.com>
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

3
pprintpp-0.4.0.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ea826108e2c7f49dc6d66c752973c3fc9749142a798d6b254e1e301cfdbc6403
size 17995

4
python-pprintpp.changes Normal file
View File

@@ -0,0 +1,4 @@
-------------------------------------------------------------------
Thu Aug 1 03:14:08 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Initial spec for v0.4.0

63
python-pprintpp.spec Normal file
View File

@@ -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