From 8901f29f10759efeef1c62ce11ae14f4be9b8bc8 Mon Sep 17 00:00:00 2001 From: "Andrew J. Hesford" Date: Sat, 23 Sep 2023 21:01:06 -0400 Subject: [PATCH] python3-constantly: rebuild for Python 3.12 --- srcpkgs/python3-constantly/patches/py312.patch | 14 ++++++++++++++ srcpkgs/python3-constantly/template | 2 +- 2 files changed, 15 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/python3-constantly/patches/py312.patch diff --git a/srcpkgs/python3-constantly/patches/py312.patch b/srcpkgs/python3-constantly/patches/py312.patch new file mode 100644 index 00000000000..ba7d462ee78 --- /dev/null +++ b/srcpkgs/python3-constantly/patches/py312.patch @@ -0,0 +1,14 @@ +--- a/versioneer.py ++++ b/versioneer.py +@@ -396,9 +396,9 @@ + # 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): diff --git a/srcpkgs/python3-constantly/template b/srcpkgs/python3-constantly/template index c1cca160e7f..743c63b3dd6 100644 --- a/srcpkgs/python3-constantly/template +++ b/srcpkgs/python3-constantly/template @@ -1,7 +1,7 @@ # Template file for 'python3-constantly' pkgname=python3-constantly version=15.1.0 -revision=7 +revision=8 build_style=python3-module hostmakedepends="python3-setuptools" depends="python3"