From: Jakub Bogusz Date: Thu, 24 Mar 2022 19:45:57 +0000 (+0100) Subject: - added singledispatch patch (fix plistlib with singledispatch 3.7); release 6 X-Git-Tag: auto/th/python-fonttools-3.44.0-6 X-Git-Url: http://git.pld-linux.org/gitweb.cgi?a=commitdiff_plain;h=8980ce56c3e0e80c3767bb0b5bfd7e82140f6fcd;p=packages%2Fpython-fonttools.git - added singledispatch patch (fix plistlib with singledispatch 3.7); release 6 --- diff --git a/python-fonttools-singledispatch.patch b/python-fonttools-singledispatch.patch new file mode 100644 index 0000000..84f7b1e --- /dev/null +++ b/python-fonttools-singledispatch.patch @@ -0,0 +1,11 @@ +--- fonttools-3.44.0/Lib/fontTools/misc/plistlib.py.orig 2019-08-02 12:41:08.000000000 +0200 ++++ fonttools-3.44.0/Lib/fontTools/misc/plistlib.py 2022-03-24 16:34:16.715273085 +0100 +@@ -105,7 +105,7 @@ def _encode_base64(data, maxlinelength=7 + return data + + +-class Data: ++class Data(object): + """Wrapper for binary data returned in place of the built-in bytes type + when loading property list data with use_builtin_types=False. + """ diff --git a/python-fonttools.spec b/python-fonttools.spec index 791d97b..7f24e3d 100644 --- a/python-fonttools.spec +++ b/python-fonttools.spec @@ -9,7 +9,7 @@ Summary: Python 2 tools to manipulate font files Summary(pl.UTF-8): Narzędzia do manipulacji na plikach fontów dla Pythona 2 Name: python-fonttools Version: 3.44.0 -Release: 5 +Release: 6 # basic license is BSD # FontTools includes Adobe AGL & AGLFN, which is under 3-clauses BSD license License: MIT, BSD @@ -17,6 +17,7 @@ Group: Development/Tools #Source0Download: https://github.com/fonttools/fonttools/releases Source0: https://github.com/fonttools/fonttools/archive/%{version}/fonttools-%{version}.tar.gz # Source0-md5: 3f9ff311081a0f591a09552902671d29 +Patch0: %{name}-singledispatch.patch URL: https://github.com/fonttools/fonttools %if %(locale -a | grep -q '^C\.utf8$'; echo $?) BuildRequires: glibc-localedb-all @@ -84,6 +85,7 @@ Narzędzia do manipulacji na plikach fontów dla Pythona 3. %prep %setup -q -n fonttools-%{version} +%patch0 -p1 %build export LC_ALL=C.UTF-8 @@ -91,6 +93,7 @@ export LC_ALL=C.UTF-8 %py_build %if %{with tests} +PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ PYTHONPATH=Lib \ %{__python} -m pytest Tests %endif @@ -100,6 +103,7 @@ PYTHONPATH=Lib \ %py3_build %if %{with tests} +PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \ PYTHONPATH=Lib \ %{__python} -m pytest Tests %endif