forked from pool/python-pprintpp
Accepting request 1069144 from devel:languages:python
Automatic submission by obs-autosubmit OBS-URL: https://build.opensuse.org/request/show/1069144 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pprintpp?expand=0&rev=6
This commit is contained in:
13
python-311.patch
Normal file
13
python-311.patch
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
Index: pprintpp-0.4.0/setup.py
|
||||||
|
===================================================================
|
||||||
|
--- pprintpp-0.4.0.orig/setup.py
|
||||||
|
+++ pprintpp-0.4.0/setup.py
|
||||||
|
@@ -8,7 +8,7 @@ from setuptools import setup
|
||||||
|
os.chdir(os.path.dirname(sys.argv[0]) or ".")
|
||||||
|
|
||||||
|
try:
|
||||||
|
- long_description = open("README.rst", "U").read()
|
||||||
|
+ long_description = open("README.rst").read()
|
||||||
|
except IOError:
|
||||||
|
long_description = "See https://github.com/wolever/pprintpp"
|
||||||
|
|
@@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Feb 24 11:29:28 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||||
|
|
||||||
|
- Add python-311.patch to support python 3.11
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Wed Feb 9 18:02:05 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
Wed Feb 9 18:02:05 UTC 2022 - Matej Cepl <mcepl@suse.com>
|
||||||
|
|
||||||
|
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-pprintpp
|
# spec file for package python-pprintpp
|
||||||
#
|
#
|
||||||
# Copyright (c) 2022 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,7 +16,6 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
|
||||||
Name: python-pprintpp
|
Name: python-pprintpp
|
||||||
Version: 0.4.0
|
Version: 0.4.0
|
||||||
Release: 0
|
Release: 0
|
||||||
@@ -29,6 +28,8 @@ Source: https://files.pythonhosted.org/packages/source/p/pprintpp/pprint
|
|||||||
Patch0: 3a35e815.patch
|
Patch0: 3a35e815.patch
|
||||||
# gh#wolever/pprintpp#28
|
# gh#wolever/pprintpp#28
|
||||||
Patch1: python-pprintpp-remove-nose.patch
|
Patch1: python-pprintpp-remove-nose.patch
|
||||||
|
# PATCH-FIX-OPENSUSE python-311.patch small fix to support python 3.11
|
||||||
|
Patch2: python-311.patch
|
||||||
BuildRequires: %{python_module parameterized}
|
BuildRequires: %{python_module parameterized}
|
||||||
BuildRequires: %{python_module pytest}
|
BuildRequires: %{python_module pytest}
|
||||||
BuildRequires: %{python_module setuptools}
|
BuildRequires: %{python_module setuptools}
|
||||||
@@ -43,9 +44,7 @@ BuildArch: noarch
|
|||||||
A drop-in replacement for pprint that is arguably prettier.
|
A drop-in replacement for pprint that is arguably prettier.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n pprintpp-%{version}
|
%autosetup -p1 -n pprintpp-%{version}
|
||||||
%patch0 -p1
|
|
||||||
%patch1 -p1
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export LANG=en_US.utf-8
|
export LANG=en_US.utf-8
|
||||||
@@ -71,6 +70,7 @@ export LANG=en_US.utf-8
|
|||||||
%doc CHANGELOG.txt README.rst
|
%doc CHANGELOG.txt README.rst
|
||||||
%license LICENSE.txt
|
%license LICENSE.txt
|
||||||
%python_alternative %{_bindir}/pypprint
|
%python_alternative %{_bindir}/pypprint
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/pprintpp
|
||||||
|
%{python_sitelib}/pprintpp-%{version}*-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user