Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package snallygaster for openSUSE:Factory 
checked in at 2021-04-08 21:31:57
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/snallygaster (Old)
 and      /work/SRC/openSUSE:Factory/.snallygaster.new.2401 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "snallygaster"

Thu Apr  8 21:31:57 2021 rev:3 rq:883509 version:0.0.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/snallygaster/snallygaster.changes        
2020-10-15 13:51:18.577322188 +0200
+++ /work/SRC/openSUSE:Factory/.snallygaster.new.2401/snallygaster.changes      
2021-04-08 21:31:59.387795552 +0200
@@ -1,0 +2,7 @@
+Tue Apr  6 19:51:27 UTC 2021 - Sebastian Wagner <sebix+novell....@sebix.at>
+
+- add fix-codestyle.patch from https://github.com/hannob/snallygaster/pull/58 
to replace a deprecated function.
+  the deprecated function caused pylint to fail which is part of the unittests.
+- add testdata and run full tests.
+
+-------------------------------------------------------------------

New:
----
  fix-codestyle.patch
  testdata.tar.gz

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

Other differences:
------------------
++++++ snallygaster.spec ++++++
--- /var/tmp/diff_new_pack.TObPL1/_old  2021-04-08 21:31:59.931796149 +0200
+++ /var/tmp/diff_new_pack.TObPL1/_new  2021-04-08 21:31:59.939796159 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package snallygaster
 #
-# 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
@@ -24,6 +24,9 @@
 Group:          Development/Languages/Python
 URL:            https://github.com/hannob/snallygaster
 Source:         
https://files.pythonhosted.org/packages/source/s/snallygaster/snallygaster-%{version}.tar.gz
+Source1:        
https://github.com/hannob/snallygaster-testdata/archive/refs/heads/master.tar.gz#/testdata.tar.gz
+# PATCH-FIX-UPSTREAM fix-codestyle.patch -- fixes codestyle to pass pylint 
testcase
+Patch0:         
https://github.com/hannob/snallygaster/pull/58.patch#/fix-codestyle.patch
 BuildRequires:  python-rpm-macros
 BuildRequires:  python3-setuptools
 # SECTION test requirements
@@ -52,6 +55,11 @@
 
 %prep
 %setup -q -n snallygaster-%{version}
+%setup -T -D -a 1
+# -n snallygaster-testdata-master
+mkdir snallygaster-testdata-master/.git/
+echo '[core]' > snallygaster-testdata-master/.git/config
+%patch0 -p1
 
 %build
 %python3_build
@@ -61,12 +69,7 @@
 fdupes %{buildroot}%{python_sitelib}
 
 %check
-%if 0%{?sle_version} == 150100 && 0%{?is_opensuse}
-# on Leap 15.1 the pycodestyle test fails, we don't care
-python3 setup.py test ||:
-%else
-python3 setup.py test
-%endif
+TESTDATA_REPOSITORY=$(pwd)/snallygaster-testdata-master/ RUN_ONLINETESTS=1 
python3 setup.py test
 
 %files
 %doc README.md

++++++ fix-codestyle.patch ++++++
>From 311a11d7a21eabe0686fd756009685041dce3f75 Mon Sep 17 00:00:00 2001
From: Sebastian Wagner <se...@sebix.at>
Date: Tue, 6 Apr 2021 21:36:19 +0200
Subject: [PATCH] replace deprecated ssl.wrap_socket with SSLContext

fixes hannob/snallygaster#57
---
 tests/test_scan_testdata.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/tests/test_scan_testdata.py b/tests/test_scan_testdata.py
index 195a052..e0fc217 100644
--- a/tests/test_scan_testdata.py
+++ b/tests/test_scan_testdata.py
@@ -35,7 +35,9 @@ def test_scan_testdata(self):
         olddir = os.getcwd()
         os.chdir(tmp + "/testdata")
         httpd = http.server.HTTPServer(('localhost', 4443), 
http.server.SimpleHTTPRequestHandler)
-        httpd.socket = ssl.wrap_socket(httpd.socket, certfile=tmp + 
'/testdata/testserver.pem')
+        context = ssl.create_default_context(ssl.Purpose.CLIENT_AUTH)
+        context.load_cert_chain(certfile=tmp + '/testdata/testserver.pem')
+        httpd.socket = context.wrap_socket(httpd.socket, server_side=True)
         t = threading.Thread(target=httpd.serve_forever)
         t.daemon = True
         t.start()

Reply via email to