Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 25 Jul 2021 16:17:14 GMT
From:      Jan Beich <jbeich@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: fee82e7eb0fb - main - www/py-formencode: unbreak with python310
Message-ID:  <202107251617.16PGHETJ081621@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by jbeich:

URL: https://cgit.FreeBSD.org/ports/commit/?id=fee82e7eb0fb5404dc545bd4372efaa9c608412d

commit fee82e7eb0fb5404dc545bd4372efaa9c608412d
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2021-07-25 14:44:57 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2021-07-25 16:17:04 +0000

    www/py-formencode: unbreak with python310
    
    ===>  Configuring for py310-formencode-1.3.0
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "setup.py", line 15, in <module>
        raise ImportError('Python version not supported')
    ImportError: Python version not supported
    *** Error code 1
---
 www/py-formencode/files/patch-setup.py | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)

diff --git a/www/py-formencode/files/patch-setup.py b/www/py-formencode/files/patch-setup.py
new file mode 100644
index 000000000000..278c2355cf2c
--- /dev/null
+++ b/www/py-formencode/files/patch-setup.py
@@ -0,0 +1,18 @@
+https://github.com/formencode/formencode/commit/74bbd2ea74aa
+
+--- setup.py.orig	2015-02-07 10:32:40 UTC
++++ setup.py
+@@ -11,11 +11,11 @@ from setuptools import setup, find_packages
+ 
+ version = '1.3.0'
+ 
+-if not '2.6' <= sys.version < '3.0' and not '3.2' <= sys.version:
++if not (2,6) <= sys.version_info[:2] < (3,0) and not (3,2) <= sys.version_info[:2]:
+     raise ImportError('Python version not supported')
+ 
+ tests_require = ['nose', 'pycountry',
+-    'dnspython' if sys.version < '3.0' else 'dnspython3']
++    'dnspython' if sys.version_info < (3,0) else 'dnspython3']
+ 
+ doctests = ['docs/htmlfill.txt', 'docs/Validator.txt',
+     'formencode/tests/non_empty.txt']



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202107251617.16PGHETJ081621>