6140 Commits

Author SHA1 Message Date
Cosimo Lupo
b23a208805
ufoLib: fix doctests failing on py27 for unicode_literals
I hate doctests.
2018-10-18 15:40:32 +01:00
Cosimo Lupo
8ba98afb92
etree: remove 'XMLTreeBuilder' from __all__
only present in py27 elementtree:
6e57382464/Lib/xml/etree/ElementTree.py (L1676-L1677)
2018-10-18 15:40:32 +01:00
Cosimo Lupo
d7cc75bb04
requirements.txt: use scipy on cpython, munkres on pypy 2018-10-18 15:40:32 +01:00
Cosimo Lupo
f9f7363fc0
setup.cfg: mute some warnings from pytest log
https://github.com/fonttools/fonttools/issues/868
2018-10-18 15:40:32 +01:00
Cosimo Lupo
eb08cc0fbe
setup.py: remove pytest-runner; require pytest to run tests
python setup.py test no longer works. The 'tests_require' keyword in setup()
is no longer supported by setuptools.
We use tox to bootstrap the test environment, so we don't need that
2018-10-18 15:40:07 +01:00
Cosimo Lupo
06f199f8f3
requirements.txt: pin fs module version
this is to make sure the test runs are more deterministic/reproducible
We'll set up pyup.io bot to keep this up to date
2018-10-18 15:40:07 +01:00
Cosimo Lupo
783707644b
setup.py: add optional dependencies to extras_require 2018-10-18 15:40:07 +01:00
Cosimo Lupo
25c3e369c6
setup.py: remove unused 'pass' command
we now call twine tool directly to upload distributions to pypi,
so this is no longer needed. It was a hack anyway
2018-10-18 11:16:05 +01:00
Cosimo Lupo
3e19f6d985
keep fontTools.ufoLib.etree as a shim module for fontTools.misc.etree 2018-10-18 11:12:08 +01:00
Cosimo Lupo
081b0fc090
keep fontTools.ufoLib.plistlib compatibility shim
the old readPlist, writePlist are only kept in fontTools.ufoLib.plistlib,
not in fontTools.misc.plistlib
2018-10-18 11:11:34 +01:00
Cosimo Lupo
2cc1f418c7
rename Tests/ufoLib/test_*.py to Tests/ufoLib/*_test.py
for constency with the rest of fontTools tests.
Also, in setup.cfg we tell pytest to only search for modules named like these
2018-10-17 17:50:06 +01:00
Cosimo Lupo
0cef799a08
move test_{etree,plistlib}.py to misc/{etree,plistlib}_test.py 2018-10-17 17:46:37 +01:00
Cosimo Lupo
176b5f763d
change 'import ufoLib' to 'import fontTools.ufoLib' 2018-10-17 17:43:28 +01:00
Cosimo Lupo
7ee7ccd568
move ufoLib.etree to fontTools.misc.etree
we can use this ElementTree-like XML API for ttx or designspaceLib, not
just ufoLib
2018-10-17 17:30:39 +01:00
Cosimo Lupo
e42bfd65f4
move ufoLib.plistlib to fontTools.misc.plistlib
As PLIST are not only UFOs (e.g. DesignSpace documents)
2018-10-17 17:29:34 +01:00
Cosimo Lupo
1f7155c432
Merge branch 'fold-into-fontTools' into fonttools-ufolib 2018-10-17 17:21:44 +01:00
Cosimo Lupo
f03c2faf12
remove ufoLib repo configuration files that overlap with fonttools 2018-10-17 17:20:53 +01:00
Cosimo Lupo
6096fa7d4d
remove appveyor/travis CI setup files 2018-10-17 17:18:22 +01:00
Cosimo Lupo
2066785551
remove notes.txt 2018-10-17 17:17:29 +01:00
Cosimo Lupo
280d3aaf9f
remove Documentation folder
we shall re-add the sphinx setup in a separate PR
2018-10-17 17:17:02 +01:00
Cosimo Lupo
d372016d64
move Documentation/ufoLib to Doc/source/ufolib 2018-10-17 17:14:34 +01:00
Cosimo Lupo
ee94843cdd
move tests to Tests/ufoLib 2018-10-17 17:06:12 +01:00
Cosimo Lupo
7cd80a37dd
move Lib/ufoLib to Lib/fontTools/ufoLib 2018-10-17 17:05:17 +01:00
Cosimo Lupo
d221b0439e
travis: sudo fals is default
https://docs.travis-ci.com/user/reference/overview/#virtualisation-environment-vs-operating-system
2018-10-16 17:22:49 +01:00
Cosimo Lupo
935aad1a25
DefaultTable: pass extra **kwargs in toXML (for glyf table class)
when ttx fails to decompile a buggy glyf table, the DefaultTable implementation is used,
but TTFont._tableToXML passes 'splitGlyphs' keyword argument to table.toXML when
the tag is 'glyf'.
Let's simply ignore it here.
2018-10-16 17:21:50 +01:00
Cosimo Lupo
70c2f88187
Revert "travis: sudo is no longer required for python3.7 env"
This reverts commit 6c1537dafd89ba7d1b3fd5227d413fe45e322516.

Does not quite work yet without sudo. not sure why.
Let's keep it in.
https://twitter.com/cosimolupo/status/1052139428418899968
2018-10-16 11:09:49 +01:00
Cosimo Lupo
6c1537dafd
travis: sudo is no longer required for python3.7 env
https://github.com/deadsnakes/travis-ci-python3.7-example#update-2018-07-03
2018-10-16 11:01:37 +01:00
Behdad Esfahbod
c4b475852d [varLib.merger] Implement FeatureVariations instantiation
Fixes https://github.com/fonttools/fonttools/issues/1244
2018-10-14 23:25:56 -07:00
Cosimo Lupo
49c7bd1e1d
Release 3.0.0 2018-10-11 11:31:35 +01:00
Cosimo Lupo
71d3f553a4
Merge pull request #174 from unified-font-object/mit
relicense as MIT
2018-10-11 11:20:35 +01:00
Cosimo Lupo
8cb02c041e
relicense as MIT
https://github.com/fonttools/fonttools/issues/1095#issuecomment-428533389
2018-10-11 10:53:48 +01:00
Cosimo Lupo
befcb4d57e
Merge pull request #1332 from fonttools/otf2ttf-files
otf2ttf. Support multiple input files
2018-10-11 07:58:55 +01:00
Miguel Sousa
fdc4bb7354 otf2ttf. Add option to overwrite existing files 2018-10-10 18:13:02 -07:00
Miguel Sousa
75e3546b3c otf2ttf. Support multiple input files 2018-10-10 18:01:38 -07:00
Cosimo Lupo
59cb035cdf
minor: ensure self._path is a unicode string 2018-10-10 18:26:14 +01:00
Cosimo Lupo
58455d9c9b
setModificationTime should not warn if path does not exist
the self._path argument of UFOWriter is not always an existing local filesystem
path. It may be a fallback string repr like '<memfs>' when the filesystem
being used does not map to the local OS filesystem (like MemoryFS)
2018-10-10 15:30:31 +01:00
Cosimo Lupo
1c05b67e1c
warn if passed an explicit 'structure' argument with dest being an FS object
it doesn't make sense to say structure='zip' if we are saving to an already instantiated
FS object. The 'structure' keyword argument only makes sense when the destination is
a path string, where we have a choice whether to create either a UFOZ (zipfile) or a
normal UFO package.
For an already instantiated FS object, we always write it out as a flat package,
without the root contents subfolder.
2018-10-10 15:28:15 +01:00
Cosimo Lupo
b84eb25a50
glifLib: do not cache the output of getGLIF
Fixes https://github.com/unified-font-object/ufoLib/issues/80
2018-10-10 12:37:32 +01:00
Cosimo Lupo
5b85d8eaba
README: remove mention of 'ufo4' branch [skip ci]
that work has been merged. We keep the branch for historical reasons mostly.
2018-10-10 11:01:55 +01:00
Cosimo Lupo
f2018e2a26
skip (and warn) if could not set modified time
Fixes https://github.com/unified-font-object/ufoLib/issues/48
2018-10-10 10:54:57 +01:00
Cosimo Lupo
9b88135931
accept both int or long as valid integer types on py27
Fixes https://github.com/unified-font-object/ufoLib/issues/52
2018-10-10 10:54:57 +01:00
Cosimo Lupo
a09abd7feb
add UFOFileStructure enum to __all__ 2018-10-10 10:54:57 +01:00
Cosimo Lupo
14dd3347f1
make _sniffFileStructure private 2018-10-10 10:54:57 +01:00
Cosimo Lupo
dfe3cb5ea0
requirements.txt: pin enum34 version 2018-10-10 10:54:57 +01:00
Cosimo Lupo
ccec17dd4d
Merge pull request #172 from unified-font-object/ufoz-rebased
Add ZIP support to UFO (rebased)
2018-10-09 18:37:42 +01:00
Cosimo Lupo
7101e62863
Bump version: 2.4.0.dev0 → 3.0.0.dev0 2018-10-09 18:33:14 +01:00
Cosimo Lupo
81e0855cc7
must decode incoming user paths on py2, pyfilesystem2 requires unicode paths
with this the defcon test suite passes on both py2 and py3. I think i'm done for now.
2018-10-09 18:20:10 +01:00
Khaled Hosny
24226fd592 Put back __future__ import 2018-10-09 18:43:34 +02:00
Cosimo Lupo
37e3f3bcb3
Add tests/test_UFOZ.py
we'll add more tests later
2018-10-09 17:32:15 +01:00
Cosimo Lupo
57bc0264f5
don't attempt to remove empty optional files if writing new UFO from scratch
and don't strip trailing '/', keep input path as is. It should not be
used by anybody, anyway.
2018-10-09 17:17:40 +01:00