Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package torrentinfo for openSUSE:Factory 
checked in at 2021-02-19 23:44:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/torrentinfo (Old)
 and      /work/SRC/openSUSE:Factory/.torrentinfo.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "torrentinfo"

Fri Feb 19 23:44:34 2021 rev:3 rq:873626 version:1.8.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/torrentinfo/torrentinfo.changes  2020-07-05 
01:20:32.537437223 +0200
+++ /work/SRC/openSUSE:Factory/.torrentinfo.new.28504/torrentinfo.changes       
2021-02-19 23:45:28.427375656 +0100
@@ -1,0 +2,5 @@
+Fri Feb 19 05:59:56 UTC 2021 - Luigi Baldoni <[email protected]>
+
+- Fix tests
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ torrentinfo.spec ++++++
--- /var/tmp/diff_new_pack.7XtC5Z/_old  2021-02-19 23:45:29.027376243 +0100
+++ /var/tmp/diff_new_pack.7XtC5Z/_new  2021-02-19 23:45:29.031376248 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package torrentinfo
 #
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
 # Copyright (c) 2009 Pascal Bleser <[email protected]>
 #
 # All modifications and additions to the file contributed by third parties
@@ -30,7 +30,6 @@
 Patch0:         torrentinfo-fix_man.patch
 # PATCH-FIX-UPSTREAM torrentinfo-fix_tests_py3.patch
 Patch1:         torrentinfo-fix_tests_py3.patch
-BuildRequires:  python3
 BuildRequires:  python3-Sphinx
 BuildRequires:  python3-devel
 BuildRequires:  python3-pytest
@@ -43,11 +42,7 @@
 full hierarchical dump of the torrent file's contents.
 
 %prep
-%setup -q
-%patch0 -p1
-%patch1 -p1
-FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{SOURCE1} '+%%Y-%%m-%%d')
-sed -e "s/__DATE__/$FAKE_BUILDDATE/" -i doc/conf.py
+%autosetup -p1
 
 %build
 python3 setup.py build
@@ -60,8 +55,8 @@
 %check
 # https://github.com/Fuuzetsu/torrentinfo/issues/17
 sed -i '/import nose/d' test/tests.py
-export PYTHONPATH=src
-%pytest test/tests.py
+PYTHONPATH=src:%{buildroot}%{python3_sitelib} PYTHONDONTWRITEBYTECODE=1 \
+ pytest -v test/tests.py
 
 %files
 %doc README.md

Reply via email to