Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-bobo for openSUSE:Factory
checked in at 2024-04-14 11:55:02
Comparing /work/SRC/openSUSE:Factory/python-bobo (Old)
and /work/SRC/openSUSE:Factory/.python-bobo.new.26366 (New)
Package is "python-bobo"
Sun Apr 14 11:55:02 2024 rev:6 rq:1167540 version:2.4.0
Changes:
--- /work/SRC/openSUSE:Factory/python-bobo/python-bobo.changes 2021-11-11
21:39:17.605014303 +0100
+++ /work/SRC/openSUSE:Factory/.python-bobo.new.26366/python-bobo.changes
2024-04-14 12:24:49.742019428 +0200
@@ -1,0 +2,5 @@
+Tue Apr 9 14:23:21 UTC 2024 - Markéta Machová
+
+- Add patch drop-py27.patch to get rid of six
+
+---
New:
drop-py27.patch
BETA DEBUG BEGIN:
New:
- Add patch drop-py27.patch to get rid of six
BETA DEBUG END:
Other differences:
--
++ python-bobo.spec ++
--- /var/tmp/diff_new_pack.wSDKkw/_old 2024-04-14 12:24:50.146034140 +0200
+++ /var/tmp/diff_new_pack.wSDKkw/_new 2024-04-14 12:24:50.146034140 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-bobo
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-bobo
Version:2.4.0
Release:0
@@ -24,13 +23,14 @@
License:ZPL-2.1
URL:http://bobo.readthedocs.io/
Source:
https://files.pythonhosted.org/packages/source/b/bobo/bobo-%{version}.tar.gz
+#PATCH-FIX-UPSTREAM part of https://github.com/zopefoundation/bobo/pull/23
Drop support for Python 2.7 up to 3.6.
+Patch: drop-py27.patch
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-WebOb
-Requires: python-six
Requires(post): update-alternatives
-Requires(postun):update-alternatives
+Requires(postun): update-alternatives
BuildArch: noarch
%python_subpackages
@@ -46,7 +46,7 @@
Bobo builds on other frameworks, most notably WSGI and WebOb.
%prep
-%setup -q -n bobo-%{version}
+%autosetup -p1 -n bobo-%{version}
%build
%python_build
@@ -65,5 +65,7 @@
%files %{python_files}
%doc CHANGES.rst README.rst
%python_alternative %{_bindir}/bobo
-%{python_sitelib}/*
+%{python_sitelib}/bobo*.py
+%{python_sitelib}/bobo-%{version}*info
+%pycache_only %{python_sitelib}/__pycache__/bobo*.pyc
++ drop-py27.patch ++
>From 5a2f2e858b663ba7b283a250fb357d5e2afb Mon Sep 17 00:00:00 2001
From: Michael Howitz
Date: Fri, 10 Feb 2023 10:10:12 +0100
Subject: [PATCH] Config with zope product template 2c7189fc (#23)
* Drop support for Python 2.7 up to 3.6.
* Remove not needed files.
* Bumped version for breaking release.
* Remove no necessary version pins.
---
buildout.cfg | 8 --
setup.cfg | 22 -
setup.py | 18 ++---
src/bobo.py | 69
src/boboserver.py | 42 +-
tox.ini | 80 ---
15 files changed, 239 insertions(+), 160 deletions(-)
Index: bobo-2.4.0/src/bobo.py
===
--- bobo-2.4.0.orig/src/bobo.py
+++ bobo-2.4.0/src/bobo.py
@@ -32,15 +32,15 @@ __all__ = (
'subroute',
)
-__metaclass__ = type
import inspect
import logging
import re
import sys
+import urllib
+
import webob
-import six
-from six.moves import filter, urllib
+
log = logging.getLogger(__name__)
@@ -50,7 +50,6 @@ _default_content_type = 'text/html; char
_json_content_type = re.compile('application/json;?').match
-getargspec = inspect.getargspec if six.PY2 else inspect.getfullargspec
class Application:
"""Create a WSGI application.
@@ -175,7 +174,7 @@ class Application:
self.config = config
bobo_configure = config.get('bobo_configure', '')
-if isinstance(bobo_configure, six.string_types):
+if isinstance(bobo_configure, str):
bobo_configure = (
_get_global(name)
for name in filter(None, _uncomment(bobo_configure).split())
@@ -185,7 +184,7 @@ class Application:
bobo_errors = config.get('bobo_errors')
if bobo_errors is not None:
-if isinstance(bobo_errors, six.string_types):
+if isinstance(bobo_errors, str):