git: cbc49d7bdec2 - main - devel/py-constantly: fix build with python 3.11
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 13 Dec 2021 11:47:37 UTC
The branch main has been updated by amdmi3: URL: https://cgit.FreeBSD.org/ports/commit/?id=cbc49d7bdec28e27d702267c8b7f5a22437acc2b commit cbc49d7bdec28e27d702267c8b7f5a22437acc2b Author: Dmitry Marakasov <amdmi3@FreeBSD.org> AuthorDate: 2021-12-10 12:35:46 +0000 Commit: Dmitry Marakasov <amdmi3@FreeBSD.org> CommitDate: 2021-12-13 11:45:54 +0000 devel/py-constantly: fix build with python 3.11 Approved by: portmgr blanket --- devel/py-constantly/files/patch-versioneer.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/devel/py-constantly/files/patch-versioneer.py b/devel/py-constantly/files/patch-versioneer.py new file mode 100644 index 000000000000..70be6be98477 --- /dev/null +++ b/devel/py-constantly/files/patch-versioneer.py @@ -0,0 +1,14 @@ +--- versioneer.py.orig 2015-08-11 08:30:05 UTC ++++ versioneer.py +@@ -396,9 +396,9 @@ def get_config_from_root(root): + # configparser.NoOptionError (if it lacks "VCS="). See the docstring at + # the top of versioneer.py for instructions on writing your setup.cfg . + setup_cfg = os.path.join(root, "setup.cfg") +- parser = configparser.SafeConfigParser() ++ parser = configparser.ConfigParser() + with open(setup_cfg, "r") as f: +- parser.readfp(f) ++ parser.read_file(f) + VCS = parser.get("versioneer", "VCS") # mandatory + + def get(parser, name):