]> git.pld-linux.org Git - packages/python-fonttools.git/commitdiff
- added singledispatch patch (fix plistlib with singledispatch 3.7); release 6 auto/th/python-fonttools-3.44.0-6
authorJakub Bogusz <qboosh@pld-linux.org>
Thu, 24 Mar 2022 19:45:57 +0000 (20:45 +0100)
committerJakub Bogusz <qboosh@pld-linux.org>
Thu, 24 Mar 2022 19:45:57 +0000 (20:45 +0100)
python-fonttools-singledispatch.patch [new file with mode: 0644]
python-fonttools.spec

diff --git a/python-fonttools-singledispatch.patch b/python-fonttools-singledispatch.patch
new file mode 100644 (file)
index 0000000..84f7b1e
--- /dev/null
@@ -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.
+     """
index 791d97b00cd86dc52adf64005272202e827db6fb..7f24e3d618534aff80ca39466b8ccebc566a3b00 100644 (file)
@@ -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
This page took 0.289813 seconds and 4 git commands to generate.