Package Details: python-fontmake 2.3.0-2

Git Clone URL: https://aur.archlinux.org/python-fontmake.git (read-only, click to copy)
Package Base: python-fontmake
Description: Compile fonts from sources (UFO, Glyphs) to binary (OpenType, TrueType)
Upstream URL: https://github.com/googlefonts/fontmake
Licenses: Apache
Submitter: thrasibule
Maintainer: thrasibule
Last Packager: thrasibule
Votes: 1
Popularity: 0.000937
First Submitted: 2019-08-19 18:40
Last Updated: 2020-12-19 03:12

Latest Comments

thrasibule commented on 2021-01-11 19:24

@txtsd you need to reinstall python-fontmake.

txtsd commented on 2021-01-10 11:07

==> Starting check()...
===================================================================================== test session starts =====================================================================================
platform linux -- Python 3.9.1, pytest-6.2.1, py-1.10.0, pluggy-0.13.1
rootdir: /home/txtsd/.cache/yay/python-fontmake/src/fontmake-2.3.0, configfile: setup.cfg
plugins: requests-mock-1.8.0, cython-0.1.0
collected 0 items / 2 errors                                                                                                                                                                  

=========================================================================================== ERRORS ============================================================================================
_________________________________________________________________________ ERROR collecting tests/test_instantiator.py _________________________________________________________________________
ImportError while importing test module '/home/txtsd/.cache/yay/python-fontmake/src/fontmake-2.3.0/tests/test_instantiator.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_instantiator.py:9: in <module>
    import fontmake.instantiator
Lib/fontmake/instantiator.py:40: in <module>
    import fontMath
E   ModuleNotFoundError: No module named 'fontMath'
_____________________________________________________________________________ ERROR collecting tests/test_main.py _____________________________________________________________________________
ImportError while importing test module '/home/txtsd/.cache/yay/python-fontmake/src/fontmake-2.3.0/tests/test_main.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.9/importlib/__init__.py:127: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_main.py:8: in <module>
    import fontmake.__main__
Lib/fontmake/__main__.py:25: in <module>
    from fontmake.font_project import INTERPOLATABLE_OUTPUTS, FontProject
Lib/fontmake/font_project.py:40: in <module>
    from fontmake import instantiator
Lib/fontmake/instantiator.py:40: in <module>
    import fontMath
E   ModuleNotFoundError: No module named 'fontMath'
====================================================================================== warnings summary =======================================================================================
../../../../../../../usr/lib/python3.9/site-packages/fontTools/misc/py23.py:11
  /usr/lib/python3.9/site-packages/fontTools/misc/py23.py:11: DeprecationWarning: The py23 module has been deprecated and will be removed in the next release. Please update your code.
    warnings.warn(

../../../../../../../usr/lib/python3.9/site-packages/packaging/version.py:127: 2546 warnings
  /usr/lib/python3.9/site-packages/packaging/version.py:127: DeprecationWarning: Creating a LegacyVersion has been deprecated and will be removed in the next major release
    warnings.warn(

-- Docs: https://docs.pytest.org/en/stable/warnings.html
=================================================================================== short test summary info ===================================================================================
ERROR tests/test_instantiator.py
ERROR tests/test_main.py
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! Interrupted: 2 errors during collection !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
============================================================================== 2547 warnings, 2 errors in 0.98s ===============================================================================
==> ERROR: A failure occurred in check().
    Aborting...
error making: python-fontmake
λ yay -Ss python-fontmath
aur/python-fontmath 0.6.0-1 (+2 0.16) (Installed)
    A set of objects for performing math operations on font data.

caleb commented on 2020-12-18 15:46

This version of fontmake should explicitly require python-ufo2ft>=2.19.1. For roughly 2/3 of the font projects I've tried it works okay with the lower version currently in AUR, but for some projects (specifically ones with CFF outlines with some specific feature?) it makes API‌ calls that are new. Because the current AUR package is held back due to needing newer python-fonttools (that Arch is being really slow to update in [community], I've added a python-ufo2ft-git package that can satisfy the dependency until the stable package is updated.

caleb commented on 2020-12-10 15:18

I realize this is kind of blocked because the Arch [community] package for ptyhon-fonttools is out of date (flagged for over a month). I've been blocked by this so I've actually posted a python-fonttools-git package to the AUR which provides python-fonttools and can substitute for it. I would suggest updating this package with the dependency minimum version set explicitly. That way people won't accidentally update before the system package updates, but they can get this (and a lot of other things) freshened up if they want to install that AUR package.

reMiND commented on 2019-11-03 10:41

Build fontmake without https://aur.archlinux.org/packages/python-ufo2ft/ (got build error, see comment)