856 Commits

Author SHA1 Message Date
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
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
Cosimo Lupo
3bb859fe90
tests: add *.ufoz test file
Compressed using `zip` utility

$ cd tests/testdata
$ zip -9 -r "TestFont1 (UFO3).ufoz" "TestFont1 (UFO3).ufo"
2018-10-09 15:47:46 +01:00
Cosimo Lupo
7321c2d91f
tests: add UFO3 test font 2018-10-09 15:42:58 +01:00
Cosimo Lupo
032aa7b6ac
minor: diff noise, docstrings, etc. [skip ci] 2018-10-09 15:18:33 +01:00
Cosimo Lupo
7ef045c88f
minor [skip ci] 2018-10-09 14:20:52 +01:00
Cosimo Lupo
6ec8b72b6a
remove _common module, put shared methods in ufoLib.__init__
and moved the import ufoLib.glifLib outside from global module scope to
avoid circular import issues
2018-10-09 14:13:28 +01:00
Cosimo Lupo
20c3c1b227
move datetimeAsTimestamp func to utils.py module 2018-10-09 14:03:49 +01:00
Cosimo Lupo
3de05dde2f
remove runTests helper, just use pytest as runner from now on 2018-10-09 13:44:34 +01:00
Cosimo Lupo
c40bfd3a0d
setup.cfg: ignore deprecation warnings that we ourselves raise in tests 2018-10-09 13:31:56 +01:00
Cosimo Lupo
fa68a5dc94
MANIFEST.in: add tests modules and data files to sdist 2018-10-09 13:18:43 +01:00
Cosimo Lupo
66ce3d50b5
move test suite outside of Lib/ufoLib
Fixes https://github.com/unified-font-object/ufoLib/issues/165
2018-10-09 13:15:54 +01:00
Cosimo Lupo
5131c1a0e6
Bump version: 2.3.2 → 2.4.0.dev0 2018-10-09 12:40:08 +01:00
Cosimo Lupo
56b4505913
various cleanups: use pyfilesystem2 API directly, remove ufoLib.filesystem
Among other things, this allows clients to inject an already
instantiated FS object in both the UFOReader/UFOWriter 'path'
argument.
2018-10-08 18:06:07 +01:00
Cosimo Lupo
52ec18be96
Merge remote-tracking branch 'origin/master' into ufoz-rebased 2018-10-03 15:52:45 +01:00
Cosimo Lupo
7426785166
tox.ini: update fs to 2.1.1 2018-10-03 13:04:49 +01:00
Cosimo Lupo
1692d237e7 Release 2.3.2 2018-10-02 13:53:16 +01:00
Cosimo Lupo
bfc95edf43 travis: update encrypted PyPI credentials; use twine directly to upload 2018-10-02 13:50:56 +01:00
Cosimo Lupo
b19e868cd6 test note with non-ASCII characters 2018-10-02 13:31:11 +01:00
Cosimo Lupo
e658d674e0 glifLib: Element.text must be unicode, not UTF-8 bytes
Fixes https://github.com/googlei18n/fontmake/issues/467
2018-10-02 13:24:12 +01:00
Ben Kiel
b1ec81ab56
Merge pull request #171 from unified-font-object/pyup-scheduled-update-2018-09-24
Scheduled weekly dependency update for week 38
2018-10-01 11:26:48 -05:00
pyup-bot
eae6de9c7e Update fonttools from 3.29.1 to 3.30.0 2018-09-24 19:44:09 +01:00
Ben Kiel
e71e0e6dcf
Merge pull request #170 from unified-font-object/pyup-scheduled-update-2018-09-10
Scheduled weekly dependency update for week 36
2018-09-11 16:05:03 -05:00
pyup-bot
2ef57de76b Update fonttools from 3.29.0 to 3.29.1 2018-09-10 20:32:08 +02:00
Cosimo Lupo
f39e5f1cce
Merge pull request #169 from unified-font-object/features_could_be_utf-8
read fea files with encoding utf-8
2018-09-04 20:14:02 +01:00
Frederik Berlaen
cffbfeeca1 read fea files with encoding utf-8
see https://github.com/adobe-type-tools/afdko/issues/165
2018-09-04 21:07:16 +02:00
Ben Kiel
08c006071b
Merge pull request #167 from unified-font-object/pyup-scheduled-update-2018-08-06
Scheduled weekly dependency update for week 31
2018-08-06 15:36:07 -05:00
pyup-bot
c856f3c085 Update lxml from 4.2.3 to 4.2.4 2018-08-06 19:21:06 +01:00
Ben Kiel
c5b897168d
Merge pull request #166 from unified-font-object/pyup-scheduled-update-2018-07-30
Scheduled weekly dependency update for week 30
2018-07-30 14:30:26 -05:00
pyup-bot
0532f997ed Update fonttools from 3.28.0 to 3.29.0 2018-07-30 20:20:07 +02:00
Cosimo Lupo
6a8ef18eca
MANIFEST.in: add extra_requirements.txt and .coveragerc 2018-07-21 19:20:43 +01:00
Cosimo Lupo
94c8bcc333
Bump version: 2.3.1 → 2.3.2.dev0 2018-07-21 19:18:11 +01:00
Cosimo Lupo
902fbc29d6
Release 2.3.1 2018-07-21 18:43:21 +01:00
Cosimo Lupo
e51f81dce4
Bump version: 2.3.0 → 2.3.1.dev0 2018-07-21 18:36:31 +01:00
Cosimo Lupo
6072fe1802
plistlib: rename some private functions
to better match the plist element names they are meant to construct
2018-07-21 18:34:27 +01:00
Cosimo Lupo
0da87b4ccc
Merge pull request #163 from anthrotype/use-bultin-types
add use_bultin_types option
2018-07-20 19:36:38 +01:00
Cosimo Lupo
ab3e069a25
test_plistlib: parametrize tests with use_builtin_types option 2018-07-20 19:25:19 +01:00
Cosimo Lupo
5dcf204729
plistlib: add use_builtin_types option
Fixes https://github.com/unified-font-object/ufoLib/issues/162
2018-07-20 19:20:33 +01:00
Ben Kiel
46db1b06b1
Don't run codecov on tests. 2018-07-16 15:13:18 -05:00
Ben Kiel
2486c6d31d
Add codecov badge 2018-07-16 15:10:58 -05:00
Cosimo Lupo
0602e1fe7b
Release 2.3.0 2018-07-16 15:08:35 +02:00
Cosimo Lupo
bced5b62b9
Bump version: 2.2.5.dev0 → 2.3.0.dev0 2018-07-16 15:01:32 +02:00
Cosimo Lupo
25c1060059
Merge pull request #161 from anthrotype/optional-lxml
WIP: make lxml (and singledispatch) optional
2018-07-16 14:59:24 +02:00
Cosimo Lupo
eb03bfeef5
README.md: mention alternative installation method with [lxml] extras notation
[ci skip]
2018-07-16 14:41:50 +02:00
Cosimo Lupo
42a3428d0f
writeLayerContents: make sure bytes strings in layerOrder are decoded
looks like defcon LayerSet.newLayer does not ensure the 'name' argument is a unicode
string, so serializing the layercontents.plist with the new ufoLib.plistlib may
lead to the layer name being encoded as a <data> element instead of a <string>.

Thanks Miguel for noticing this.
2018-07-15 21:32:13 +01:00
Cosimo Lupo
e15d56a2d3
test_etree: add test for pretty_print=True with ordered dict 2018-07-15 13:55:01 +01:00
Cosimo Lupo
bc7494b7f0
test_etree: start adding some unit tests to etree module 2018-07-15 12:32:17 +01:00
Cosimo Lupo
0c0d46e53b
etree: pretty_print is False by default (like in lxml) 2018-07-15 12:31:11 +01:00
Cosimo Lupo
6c6b94a580
etree: restrict py2 bytes to ASCII only 2018-07-14 20:06:22 +01:00