Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-vatnumber for openSUSE:Factory checked in at 2022-02-28 19:44:00
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-vatnumber (Old)
and /work/SRC/openSUSE:Factory/.python-vatnumber.new.1958 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-vatnumber"
Mon Feb 28 19:44:00 2022 rev:3 rq:958073 version:1.2
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-vatnumber/python-vatnumber.changes 2021-07-14 23:59:26.573313732 +0200
+++ /work/SRC/openSUSE:Factory/.python-vatnumber.new.1958/python-vatnumber.changes 2022-02-28 19:44:31.261962697 +0100
@@ -1,0 +2,6 @@
+Mon Feb 28 15:00:05 UTC 2022 - Matej Cepl
+
+- Add port-2to3.patch and don't use use_2to3 parameter of setup()
+ function.
+
+-------------------------------------------------------------------
New:
----
port-2to3.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-vatnumber.spec ++++++
--- /var/tmp/diff_new_pack.JJCCn2/_old 2022-02-28 19:44:31.793962887 +0100
+++ /var/tmp/diff_new_pack.JJCCn2/_new 2022-02-28 19:44:31.801962889 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-vatnumber
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -26,6 +26,9 @@
Group: Development/Languages/Python
URL: https://code.google.com/p/vatnumber/
Source: https://files.pythonhosted.org/packages/source/v/vatnumber/vatnumber-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM port-2to3.patch bsc#[0-9]+ mcepl@suse.com
+# this patch makes things totally awesome
+Patch0: port-2to3.patch
BuildRequires: %{python_module modernize}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@@ -47,6 +50,8 @@
%prep
%setup -q -n vatnumber-%{version}
+%autopatch -p1
+
python-modernize -w vatnumber/
%build
++++++ port-2to3.patch ++++++
---
setup.py | 1 -
vatnumber/__init__.py | 2 +-
vatnumber/tests.py | 2 +-
3 files changed, 2 insertions(+), 3 deletions(-)
--- a/setup.py
+++ b/setup.py
@@ -43,5 +43,4 @@ setup(name='vatnumber',
'suds': ['suds'],
},
test_suite="vatnumber.tests",
- use_2to3=True,
)
--- a/vatnumber/__init__.py
+++ b/vatnumber/__init__.py
@@ -80,7 +80,7 @@ def check_vat_ar(vat):
return False
base = [5, 4, 3, 2, 7, 6, 5, 4, 3, 2]
aux = 0
- for i in xrange(10):
+ for i in range(10):
aux += int(vat[i]) * base[i]
aux = 11 - (aux - (int(aux / 11) * 11))
if aux == 11:
--- a/vatnumber/tests.py
+++ b/vatnumber/tests.py
@@ -199,7 +199,7 @@ class VatNumberTest(unittest.TestCase):
Test vies
'''
for vat in VIES_NUMBERS:
- self.assert_(vatnumber.check_vies(vat))
+ self.assertTrue(vatnumber.check_vies(vat))
def test_countries(self):
'''