Package Details: python-defcon 0.10.0-1

Git Clone URL: https://aur.archlinux.org/python-defcon.git (read-only, click to copy)
Package Base: python-defcon
Description: A set of UFO based objects for use in font editing applications
Upstream URL: https://github.com/robotools/defcon
Licenses: MIT
Submitter: wiill
Maintainer: thrasibule (alerque)
Last Packager: alerque
Votes: 3
Popularity: 0.000093
First Submitted: 2017-01-05 01:27
Last Updated: 2021-12-28 18:09

Pinned Comments

alerque commented on 2021-08-03 20:16

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

« First ‹ Previous 1 2 3 4 Next › Last »

alerque commented on 2020-05-31 13:12

@andykluger I can't replicate your results needing fontmath or anything else not currently listed. I built the current iteration in a clean chroot starting with just base-devel plus the specified dependencies and it built fine. I'm wondering if those tests you are seeing failing are actually for building something else in the dependency chain.

andykluger commented on 2020-05-31 06:08

Ah, but if I remove both ufolib packages, and install python-fontmath, then this installs just fine.

It seems to me python-fontmath is necessary, at least at build time, as long as the check remains.

andykluger commented on 2020-05-31 06:01

This still fails for me in two places:

test_validation.py::UFOReadWriteValidateTest::test_ufoLibReadValidate_defaults
test_validation.py::UFOReadWriteValidateTest::test_customClasses

If I install python-ufolib, then it only fails in one place:

test_validation.py::UFOReadWriteValidateTest::test_customClasses

If I then additionally install python-ufolib2, it fails once:

test_validation.py::UFOReadWriteValidateTest::test_ufoLibReadValidate_defaults

If I then remove python-ufolib but keep python-ufolib2 installed, it fails once:

test_validation.py::UFOReadWriteValidateTest::test_customClasses

yochananmarqos commented on 2020-05-31 03:04

@thrasibuke: Apologies for the mix-up then. Thanks for updating it.

thrasibule commented on 2020-05-31 02:27

@yochananmarqos It is your imagination, I've never added you as a co-maintainer. There is zero functional change from 0.7.0 to 0.7.2. Taking 2 days to bump a package for a minor rev that fixes nothing is not the end of the world. @caleb I've added you as a co-maintainer. Thanks for the dependencies, I've updated that. I still think there is value in testing the package, and making sure it doesn't download extra dependencies in doing that, so I've kept the check.

yochananmarqos commented on 2020-05-31 02:06

@thrasibule: Was it my imagination or did you add @caleb and I as Co-Maintainers and then just as quickly remove us? Are you planning on maintaining the package or not?

Plexcon commented on 2020-05-29 01:19

FAILED Lib/defcon/test/objects/test_validation.py::UFOReadWriteValidateTest::test_ufoLibReadValidate_defaults - Error making: python-defcon

alerque commented on 2020-05-28 22:07

@thrasibule I think I have the dependencies for 0.7.0 right on the python-defcon-git package now. Note the docs and the actually source of setup.py don't quite match up. I still think that the check() probably just needs to be dropped altogether because it isn't really testing the build on Arch Linux, it is testing itself in an environment that is or can be different.

I'd still be willing to help maintain this and other font tooling related packages if you add me as a co-maintainer.

alerque commented on 2020-05-27 20:48

@yochananmarqos It's actually a bit more complicated than that because the listed dependencies make some assumptions about what those dependencies provide. Arch packages on the other hand don't always like up to that. The fonttools package in particular does not provide all the features out of the box unless you supply some of the extra dependencies.

Tests in Python are a different issue. Given that the test system seems to be bootstrapping it's own version of dependencies, it really is only checking the upstream code not the packaging. Testing that doesn't test against the system packages is pointless in a check() function. If that's the case we should just eschew it entirely.

yochananmarqos commented on 2020-05-27 15:18

python-fontpens and python-lxml are optional dependencies.

The tests also require python-unicodedata2, python-fs & python-pytz. If they're not installed, they're downloaded from PyPI.

The tests passed with v0.7.0 without python-ufolib or python-ufolib2. The dependencies require:

FontTools >= 3.31.0, installed with the fonttools[ufo] extra, required to import fonttools.ufoLib module.

It's referring to the module built in to fonttools, so nothing else should be required.