Cosimo Lupo
6a7493adbb
designspaceLib: port to using lxml via fontTools.misc.etree
...
indentation is now two spaces like lxml (unchangeable) default
https://github.com/fonttools/fonttools/pull/1335#issuecomment-431112494
2018-10-18 20:03:54 +01:00
Cosimo Lupo
9e85f3bcc3
svgLib: use fontTools.misc.etree
2018-10-18 19:50:26 +01:00
Cosimo Lupo
8081bf57fa
etree/plistlib/glifLib: using (default) single quotes in XML_DECLARATION
...
https://github.com/fonttools/fonttools/pull/1335#issuecomment-431118568
2018-10-18 19:49:52 +01:00
Cosimo Lupo
6db88d7cb7
remove deprecated fontTools.varLib.designspace
2018-10-18 18:40:54 +01:00
Cosimo Lupo
9557c6a229
fix deprecation warnings when using ABC from collections module
2018-10-18 18:12:43 +01:00
Cosimo Lupo
4be92cc6da
README: minor [skip ci]
...
In b1093c8a I removed py36 from the default tox envlist.
I kept only py27 and py37.
This doesn't mean one can't run tests against py36 as well.
Just that running tox without args, or without setting TOXENV variable
will run py27 and py37 by default
2018-10-18 16:39:06 +01:00
Cosimo Lupo
e871b2f41d
pointPen: add missing classes to __all__
2018-10-18 16:12:58 +01:00
Cosimo Lupo
6b1bf4247b
move pointPen to fontTools.pens subpackage; keep ufoLib.pointPen alias
2018-10-18 16:03:09 +01:00
Cosimo Lupo
a869f56a5f
.travis/run.sh: re-run the xml-related tests also without lxml
2018-10-18 15:47:42 +01:00
Cosimo Lupo
88b6688fbd
tox: remove unnecessary 'nocov' factor
...
tox now allows to use exclamation mark to negate an environment factor.
2018-10-18 15:40:32 +01:00
Cosimo Lupo
b1093c8ac1
tox: add extras; allow to test with/without lxml
...
calling 'tox -e py37-cov-nolxml' will run tests without lxml,
using built-in ElementTree library
2018-10-18 15:40:32 +01:00
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
Jens Kutilek
76e7b7a786
Add PointPen support to TT Glyph objects ( #1334 )
...
* Add drawPoints method to _g_l_y_f.Glyph
* Add drawPoints method to ttFont._TTGlyph
2018-10-18 11:52:38 +02: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