commit python-bobo for openSUSE:Factory

2024-04-21 Thread Source-Sync
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-21 20:26:10

Comparing /work/SRC/openSUSE:Factory/python-bobo (Old)
 and  /work/SRC/openSUSE:Factory/.python-bobo.new.26366 (New)


Package is "python-bobo"

Sun Apr 21 20:26:10 2024 rev:7 rq:1167827 version:2.4.0

Changes:

--- /work/SRC/openSUSE:Factory/python-bobo/python-bobo.changes  2024-04-14 
12:24:49.742019428 +0200
+++ /work/SRC/openSUSE:Factory/.python-bobo.new.26366/python-bobo.changes   
2024-04-21 20:27:23.610168874 +0200
@@ -1,0 +2,5 @@
+Mon Apr 15 14:08:03 UTC 2024 - Matej Cepl 
+
+- Clean up SPEC file.
+
+---



Other differences:
--
++ python-bobo.spec ++
--- /var/tmp/diff_new_pack.y7xklN/_old  2024-04-21 20:27:24.190190157 +0200
+++ /var/tmp/diff_new_pack.y7xklN/_new  2024-04-21 20:27:24.190190157 +0200
@@ -21,11 +21,13 @@
 Release:0
 Summary:Web application framework for the impatient
 License:ZPL-2.1
-URL:http://bobo.readthedocs.io/
+URL:https://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
+Patch0: drop-py27.patch
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:   python-WebOb
@@ -49,13 +51,16 @@
 %autosetup -p1 -n bobo-%{version}
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 %python_clone -a %{buildroot}%{_bindir}/bobo
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
+%check
+# Upstream doesn't have any tests published
+
 %post
 %python_install_alternative bobo
 


commit python-bobo for openSUSE:Factory

2024-04-14 Thread Source-Sync
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):
 

commit python-bobo for openSUSE:Factory

2021-11-11 Thread Source-Sync
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 2021-11-11 21:38:09

Comparing /work/SRC/openSUSE:Factory/python-bobo (Old)
 and  /work/SRC/openSUSE:Factory/.python-bobo.new.1890 (New)


Package is "python-bobo"

Thu Nov 11 21:38:09 2021 rev:5 rq:930814 version:2.4.0

Changes:

--- /work/SRC/openSUSE:Factory/python-bobo/python-bobo.changes  2020-06-10 
00:42:13.85876 +0200
+++ /work/SRC/openSUSE:Factory/.python-bobo.new.1890/python-bobo.changes
2021-11-11 21:39:17.605014303 +0100
@@ -1,0 +2,5 @@
+Thu Nov 11 08:38:20 UTC 2021 - Steve Kowalik 
+
+- Remove test BuildRequires, a different package runs the tests. 
+
+---



Other differences:
--
++ python-bobo.spec ++
--- /var/tmp/diff_new_pack.aya7oR/_old  2021-11-11 21:39:17.977014574 +0100
+++ /var/tmp/diff_new_pack.aya7oR/_new  2021-11-11 21:39:17.981014578 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-bobo
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -17,13 +17,11 @@
 
 
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%bcond_without test
 Name:   python-bobo
 Version:2.4.0
 Release:0
 Summary:Web application framework for the impatient
 License:ZPL-2.1
-Group:  Development/Languages/Python
 URL:http://bobo.readthedocs.io/
 Source: 
https://files.pythonhosted.org/packages/source/b/bobo/bobo-%{version}.tar.gz
 BuildRequires:  %{python_module setuptools}
@@ -32,15 +30,8 @@
 Requires:   python-WebOb
 Requires:   python-six
 Requires(post): update-alternatives
-Requires(postun): update-alternatives
+Requires(postun):update-alternatives
 BuildArch:  noarch
-# SECTION test requirements
-%if %{with test}
-BuildRequires:  %{python_module WebOb}
-BuildRequires:  %{python_module bobodoctestumentation >= 2.4.0}
-BuildRequires:  %{python_module six}
-%endif
-# /SECTION
 %python_subpackages
 
 %description