Package Details: python-fontparts 0.10.6-1

Git Clone URL: https://aur.archlinux.org/python-fontparts.git (read-only, click to copy)
Package Base: python-fontparts
Description: The replacement for RoboFab
Upstream URL: https://github.com/robotools/fontParts
Licenses: MIT
Submitter: thrasibule
Maintainer: alerque (thrasibule)
Last Packager: alerque
Votes: 3
Popularity: 0.39
First Submitted: 2019-08-18 01:35 (UTC)
Last Updated: 2022-06-21 16:57 (UTC)

Pinned Comments

alerque commented on 2021-08-03 15:17 (UTC)

PSA: Like most of the PKGBUILDs that I (co-)maintain, I host prebuilt packages for this in my user repository and all its dependencies for those who wish to install it using pacman without messing around with building from the AUR. Issues or contributions are welcome either in comments below or via this GitHub repository.

Latest Comments

alerque commented on 2021-08-20 13:29 (UTC)

@Haagentis Can you be more specific with what problem you are having? I just confirmed that this package builds cleanly in a chroot using just the dependencies shown. I suspect you probably have an old version of one of the dependencies, but I can't really tell without knowing how you are trying to build the package and what error you're getting.

Haagentis commented on 2021-08-20 11:51 (UTC)

Can't update it, the package is broken or something. It's been more than a week now.

alerque commented on 2021-08-03 15:17 (UTC)

PSA: Like most of the PKGBUILDs that I (co-)maintain, I host prebuilt packages for this in my user repository and all its dependencies for those who wish to install it using pacman without messing around with building from the AUR. Issues or contributions are welcome either in comments below or via this GitHub repository.

alerque commented on 2021-07-19 22:12 (UTC)

This requires python-setuptools-scm to build cleanly.

The circular dependency issue is also still not resolved.

alerque commented on 2021-06-02 16:37 (UTC)

@randomguy343 You can build by using --nocheck somewhere in the dependency loop to get one package started.

@thrasibule This is an ongoing problem for people trying to break into the loop. I realize this is bad dev practice in the upstream projects that depends on consumer libraries for testing, but that's what we have to work with. Disabling the check() functions by default using options=(!check) would be appropriate. The testing isn't really even testing that the package works right, only that the upstream regression suite passes in the build environment.

randomguy343 commented on 2021-06-02 09:42 (UTC)

The packages python-fontpens, python-booleanoperations and python-fontparts create circular dependencies and can therefore neither be installed individually, nor together for me.

thrasibule commented on 2021-03-09 14:26 (UTC)

@Alkaris that's different. 0.9.9 has the fix. If you read the error message you can see you're missing python-booleanoperations. Just install that and you should be good. It's a dependency of the package, so it should have picked it up.

Alkaris commented on 2021-03-09 12:06 (UTC)

I guess this package is broken until they fix it.

Traceback (most recent call last):
  File "/var/tmp/pamac-build-alkaris/python-fontparts/src/fontParts-0.9.9/Lib/fontParts/fontshell/test.py", line 2, in <module>
    from fontParts.fontshell.font import RFont
  File "/var/tmp/pamac-build-alkaris/python-fontparts/src/fontParts-0.9.9/Lib/fontParts/fontshell/__init__.py", line 2, in <module>
    from fontParts.fontshell.font import RFont
  File "/var/tmp/pamac-build-alkaris/python-fontparts/src/fontParts-0.9.9/Lib/fontParts/fontshell/font.py", line 10, in <module>
    from fontParts.fontshell.layer import RLayer
  File "/var/tmp/pamac-build-alkaris/python-fontparts/src/fontParts-0.9.9/Lib/fontParts/fontshell/layer.py", line 5, in <module>
    from fontParts.fontshell.glyph import RGlyph
  File "/var/tmp/pamac-build-alkaris/python-fontparts/src/fontParts-0.9.9/Lib/fontParts/fontshell/glyph.py", line 2, in <module>
    import booleanOperations
ModuleNotFoundError: No module named 'booleanOperations'
==> ERROR: A failure occurred in check().
    Aborting...

gyscos commented on 2021-02-13 05:13 (UTC)

I think it's an issue with upstream package being incompatible with python 3.9. I posted a PR with a fix: https://github.com/robotools/fontParts/pull/573

In the meantime we might patch this in the PKGBUILD?

patlefort commented on 2021-02-13 03:52 (UTC) (edited on 2021-02-13 03:53 (UTC) by patlefort)

Fails to install:

==> Starting check()...
Traceback (most recent call last):
  File "/run/user/1000/pamac-build-cache/python-fontparts/src/fontParts-0.9.8/Lib/fontParts/__init__.py", line 2, in <module>
    from _version import __version__
ModuleNotFoundError: No module named '_version'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/run/user/1000/pamac-build-cache/python-fontparts/src/fontParts-0.9.8/Lib/fontParts/fontshell/test.py", line 1, in <module>
    from fontParts.test import testEnvironment
  File "/run/user/1000/pamac-build-cache/python-fontparts/src/fontParts-0.9.8/Lib/fontParts/__init__.py", line 6, in <module>
    __version__ = get_version()
  File "/usr/lib/python3.9/site-packages/setuptools_scm/__init__.py", line 169, in get_version
    return _get_version(config)
  File "/usr/lib/python3.9/site-packages/setuptools_scm/__init__.py", line 173, in _get_version
    parsed_version = _do_parse(config)
  File "/usr/lib/python3.9/site-packages/setuptools_scm/__init__.py", line 134, in _do_parse
    raise LookupError(
LookupError: setuptools-scm was unable to detect version for '/run/user/1000/pamac-build-cache/python-fontparts/src/fontParts-0.9.8/Lib'.

Make sure you're either building from a fully intact git repository or PyPI tarballs. Most other sources (such as GitHub's tarballs, a git checkout without the .git folder) don't contain the necessary metadata and will not work.

For example, if you're using pip, instead of https://github.com/user/proj/archive/master.zip use git+https://github.com/user/proj.git#egg=proj
==> ERROR: A failure occurred in check().
    Aborting...

thrasibule commented on 2021-01-11 19:22 (UTC)

@txtsd python-fontmath is a depends, so a fortiori it's in checkdepends. I suspect you need to reinstall it post python-3.9 upgrade.

txtsd commented on 2021-01-10 10:51 (UTC)

Why are you running the test within check() without having installed the test dependencies? The test can't even detect system installed packages like python-fontmath.

======================================================================
ERROR: test_interpolate_unitsPerEm_with_rounding (fontParts.test.test_info.TestInfo)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/home/txtsd/.cache/yay/python-fontparts/src/fontParts-0.9.7/Lib/fontParts/test/test_info.py", line 131, in test_interpolate_unitsPerEm_with_rounding
    interpolated_font.info.interpolate(0.5154, font_min.info, font_max.info, round=True)
  File "/home/txtsd/.cache/yay/python-fontparts/src/fontParts-0.9.7/Lib/fontParts/base/info.py", line 289, in interpolate
    self._interpolate(factor, minInfo, maxInfo,
  File "/home/txtsd/.cache/yay/python-fontparts/src/fontParts-0.9.7/Lib/fontParts/base/info.py", line 296, in _interpolate
    from fontMath.mathFunctions import setRoundIntegerFunction
ModuleNotFoundError: No module named 'fontMath'

alerque commented on 2019-11-15 10:08 (UTC) (edited on 2019-11-15 10:11 (UTC) by alerque)

I think this needs to depend on python-booleanoperations and python-pyclipper.

tjbp commented on 2019-10-07 09:22 (UTC)

Please remove the checkdepends on python-fontpens - fontpens depends on fontparts, but not the other way around.

thrasibule commented on 2019-08-23 14:18 (UTC)

This is a depdendency in fonttools. I have filed a bugreport here: https://bugs.archlinux.org/task/63539?project=5&string=python-fonttools

alerque commented on 2019-08-23 12:47 (UTC)

Also this needs a dependency for python-fs

alerque commented on 2019-08-23 12:44 (UTC)

Something is wrong here, python-fontparts depends on python-fontpens but python-fontpens depends on python-fontparts. That's circular and we can't have it both ways. One of these packages needs to drop the bogus dependency.