Date: Wed, 10 Nov 2021 20:02:46 GMT From: Dmitry Marakasov <amdmi3@FreeBSD.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org Subject: git: f667fd98f21f - main - devel/py-pyinstaller: fix build with python 3.10 Message-ID: <202111102002.1AAK2kBl081945@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=f667fd98f21f1d274dbeab2c886952fb33aa530a commit f667fd98f21f1d274dbeab2c886952fb33aa530a Author: Dmitry Marakasov <amdmi3@FreeBSD.org> AuthorDate: 2021-11-10 20:01:42 +0000 Commit: Dmitry Marakasov <amdmi3@FreeBSD.org> CommitDate: 2021-11-10 20:01:53 +0000 devel/py-pyinstaller: fix build with python 3.10 Update internal help2rst.py script to support output of from python 3.10 argparse Approved by: portmgr blanket --- devel/py-pyinstaller/files/patch-doc_help2rst.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/devel/py-pyinstaller/files/patch-doc_help2rst.py b/devel/py-pyinstaller/files/patch-doc_help2rst.py new file mode 100644 index 000000000000..a3be2b618b1a --- /dev/null +++ b/devel/py-pyinstaller/files/patch-doc_help2rst.py @@ -0,0 +1,12 @@ +--- doc/help2rst.py.orig 2019-07-09 19:14:04 UTC ++++ doc/help2rst.py +@@ -63,6 +63,9 @@ def process(program, generate_headings, headings_chara + elif '\noptional arguments:' in help: + # argparse style + help = help.split('\noptional arguments:', 1)[1] ++ elif '\noptions:' in help: ++ # argparse style, since python 3.10 ++ help = help.split('\noptions:', 1)[1] + else: + raise SystemError('unexpected format of output for --help') + # Remove any obsolete options
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202111102002.1AAK2kBl081945>