git: 41bbddb79090 - main - finance/py-vatnumber: Fix build with setuptools 58.0.0+
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 07 Mar 2022 18:27:18 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=41bbddb790901c04008b59d34a7d802c82dfa727 commit 41bbddb790901c04008b59d34a7d802c82dfa727 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-03-07 18:07:27 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-03-07 18:13:19 +0000 finance/py-vatnumber: Fix build with setuptools 58.0.0+ With hat: python --- finance/py-vatnumber/files/patch-2to3 | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/finance/py-vatnumber/files/patch-2to3 b/finance/py-vatnumber/files/patch-2to3 new file mode 100644 index 000000000000..1f643e1122b0 --- /dev/null +++ b/finance/py-vatnumber/files/patch-2to3 @@ -0,0 +1,30 @@ +--- setup.py.orig 2014-01-09 15:58:31 UTC ++++ setup.py +@@ -43,5 +43,4 @@ setup(name='vatnumber', + 'suds': ['suds'], + }, + test_suite="vatnumber.tests", +- use_2to3=True, + ) +--- vatnumber/__init__.py.orig 2014-01-09 15:58:31 UTC ++++ 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: +--- vatnumber/tests.py.orig 2014-01-09 15:58:31 UTC ++++ 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): + '''