Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-textfsm for openSUSE:Factory 
checked in at 2023-09-08 21:15:46
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-textfsm (Old)
 and      /work/SRC/openSUSE:Factory/.python-textfsm.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-textfsm"

Fri Sep  8 21:15:46 2023 rev:10 rq:1109646 version:1.1.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-textfsm/python-textfsm.changes    
2023-07-10 16:40:58.566927428 +0200
+++ /work/SRC/openSUSE:Factory/.python-textfsm.new.1766/python-textfsm.changes  
2023-09-08 21:16:42.568976178 +0200
@@ -1,0 +2,10 @@
+Tue Sep  5 01:14:13 UTC 2023 - Steve Kowalik <steven.kowa...@suse.com>
+
+- Add patch correct-version.patch, version in the tarball does not match.
+- Add patch remove-future-requirement.patch, drop requirement of future
+- Switch to pyproject and autosetup macros
+- Clean up python 2 leftovers
+- Do not install testdata
+- Stop using greedy globs in %files
+
+-------------------------------------------------------------------

New:
----
  correct-version.patch
  remove-future-requirement.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-textfsm.spec ++++++
--- /var/tmp/diff_new_pack.kfw5u0/_old  2023-09-08 21:16:43.637014349 +0200
+++ /var/tmp/diff_new_pack.kfw5u0/_new  2023-09-08 21:16:43.637014349 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-textfsm
 #
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,28 +16,26 @@
 #
 
 
-%define oldpython python
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %{?sle15_python_module_pythons}
 Name:           python-textfsm
 Version:        1.1.3
 Release:        0
 Summary:        Python module for parsing semi-structured text into python 
tables
 License:        Apache-2.0
-Group:          Development/Languages/Python
 URL:            https://github.com/google/textfsm
 Source:         
https://github.com/google/textfsm/archive/v%{version}.tar.gz#/textfsm-%{version}.tar.gz
-BuildRequires:  %{python_module future}
+# PATCH-FIX-OPENSUSE https://github.com/google/textfsm/issues/118
+Patch0:         correct-version.patch
+# PATCH-FIX-UPSTREAM gh#google/textfsm#116
+Patch1:         remove-future-requirement.patch
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module six}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-Requires:       python-future
 Requires:       python-six
-%ifpython2
-Requires:       python-future
-%endif
 BuildArch:      noarch
 %python_subpackages
 
@@ -48,17 +46,19 @@
 devices.
 
 %prep
-%setup -q -n textfsm-%{version}
+%autosetup -p1 -n textfsm-%{version}
 # drop shebang
 sed -i -e '/^#!\//, 1d' textfsm/*.py
 
 %build
-%python_build
+%pyproject_wheel
 
 %install
-%python_install
+%pyproject_install
 # don't install broken textfsm wrapper binary
 %python_expand rm -f %{buildroot}%{_bindir}/textfsm
+# or the testdata
+%python_expand rm -r %{buildroot}%{$python_sitelib}/testdata
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
@@ -67,5 +67,6 @@
 %files %{python_files}
 %license COPYING
 %doc README.md
-%{python_sitelib}/*
+%{python_sitelib}/textfsm
+%{python_sitelib}/textfsm-%{version}.dist-info
 

++++++ correct-version.patch ++++++
Index: textfsm-1.1.3/textfsm/__init__.py
===================================================================
--- textfsm-1.1.3.orig/textfsm/__init__.py
+++ textfsm-1.1.3/textfsm/__init__.py
@@ -10,4 +10,4 @@ for each input entity.
 """
 from textfsm.parser import *
 
-__version__ = '1.1.2'
+__version__ = '1.1.3'

++++++ remove-future-requirement.patch ++++++
>From b47bcfd36a753d330be0a9f4202b68dd3a549fc9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Lum=C3=ADr=20=27Frenzy=27=20Balhar?=
 <frenzy.madn...@gmail.com>
Date: Mon, 14 Aug 2023 11:43:50 +0200
Subject: [PATCH] Remove future from dependencies

---
 setup.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/setup.py b/setup.py
index e9ff894..8fccbbb 100755
--- a/setup.py
+++ b/setup.py
@@ -53,5 +53,5 @@
       },      
       include_package_data=True,
       package_data={'textfsm': ['../testdata/*']},
-      install_requires=['six', 'future'],
+      install_requires=['six'],
      )

Reply via email to