114 Commits

Author SHA1 Message Date
Cosimo Lupo
0b15b7d61e
ufoLib: use new plistlib load/dump instead of readPlist/writePlist 2018-07-11 12:28:26 +01:00
Cosimo Lupo
b3b495153b
Bump version: 2.2.4 → 2.2.5.dev0 2018-07-10 16:24:02 +01:00
Cosimo Lupo
46d11299b0
Release 2.2.4 2018-07-10 16:18:13 +01:00
Cosimo Lupo
489c6baa02
Bump version: 2.2.3 → 2.2.4.dev0 2018-07-10 12:51:14 +01:00
Cosimo Lupo
754b89fbaf
Release 2.2.3 2018-07-10 12:50:45 +01:00
Ben Kiel
530c723e91 Bump version: 2.2.2 → 2.2.3.dev0 2018-07-04 17:07:19 -05:00
Ben Kiel
ac5cf7f6ed Release 2.2.2 2018-07-04 17:04:09 -05:00
Ben Kiel
c6712ad2f7 Bump version: 2.2.1 → 2.2.2.dev0 2018-07-04 17:02:46 -05:00
Ben Kiel
a93a441acb
Merge pull request #154 from unified-font-object/small_validation_fixes
Small validation fixes
2018-07-04 16:02:47 -05:00
Ben Kiel
926bbdd57e
Update __init__.py 2018-07-04 13:48:37 -05:00
Frederik Berlaen
7763e01ef8 append the image fileName when no validation is required 2018-07-04 14:44:35 +02:00
Frederik Berlaen
46fefd82c7 set the _validate attribute before reading or writing anything 2018-07-04 14:44:05 +02:00
Cosimo Lupo
d01c383fe9
Release 2.2.1 2018-07-03 19:15:36 +01:00
Ben Kiel
00595aa4f8 Bump version: 2.2.0 → 2.2.1.dev0 2018-07-03 10:42:56 -05:00
Ben Kiel
4811c3ddc6 Release 2.2.0 2018-07-03 10:39:32 -05:00
Ben Kiel
acf8e83d33 Bump version: 2.1.2.dev0 → 2.2.0.dev0 2018-07-03 10:35:27 -05:00
Tal Leming
34681b8a38 Remove some validation escaping when it comes to file existence tests. Those should always fail. 2018-06-12 17:40:25 -04:00
Ben Kiel
83303d56a7 Add in more valiator switches 2018-06-11 23:13:00 -05:00
Ben Kiel
a7aa115fd8 Update glyphLib.
Update tests.
Fix errors.
Add documenation.
2018-06-11 15:03:54 -05:00
Ben Kiel
5f8b600221 Catch additonal calls to GlyphSet that need validation. Inital start of adding validation on/off to GlyphSet 2018-06-11 12:05:36 -05:00
Ben Kiel
42b94f53fa UFOWriter validation turned on by default. 2018-06-11 11:59:16 -05:00
Ben Kiel
b8d4b5562b UFOReader validation turned off by default. Starting on UFOWriter 2018-06-11 11:07:29 -05:00
Miguel Sousa
3e8ca172ab Small fixes 2018-04-03 17:36:41 -07:00
Cosimo Lupo
3d891631d9 Bump version: 2.1.1 → 2.1.2.dev0 2017-10-25 12:01:13 +01:00
Cosimo Lupo
55c2be52bd Release 2.1.1 2017-10-25 12:00:47 +01:00
Frederik Berlaen
627f997ddb remove raise errors when the formatVersion < 3
see https://github.com/unified-font-object/ufoLib/issues/91

Im going to ahead on this as no one replied...
2017-09-26 21:58:26 +02:00
Cosimo Lupo
fb1eef601f minor 2017-08-07 18:40:36 +01:00
Chris Simpkins
659299a318 detect incorrect metainfo.plist formatVersion type before version testing (#83) 2017-07-27 22:18:42 -04:00
Cosimo Lupo
ab9985ee3a
Bump version: 2.1.0 → 2.1.1.dev0 2017-05-24 18:39:50 +01:00
Cosimo Lupo
1c5f70c873
Release 2.1.0 2017-05-24 18:38:10 +01:00
Cosimo Lupo
16abd8130c
Add bump_version and release commands to setup.py 2017-05-24 18:37:52 +01:00
Cosimo Lupo
f320554077 ufoLib.__init__: use os.path instead of slash to fix doctest failing on Windows 2016-09-11 17:44:12 +01:00
Denis Moyogo Jacquerye
bb21cb7c3a userNameToFileName expects userName to be unicode strings, let it raise
if not
2016-07-11 13:49:59 +01:00
Tal Leming
185c04220d The UFO spec has changed with regard to kerning conflicts. Reflect this in ufoLib. 2016-04-22 13:30:28 -04:00
Adrien Tétar
fab99c30e5 plistlib: reimplement as shim 2016-03-01 12:43:04 +01:00
Denis Jacquerye
d05df7eb7e Python 2/3: replace str by basestring 2015-11-18 13:22:14 +00:00
Adrien Tétar
e345fec96f meta: remove robofab files 2015-11-08 11:11:11 +01:00
Denis Jacquerye
929ed4454c ufoLib: drop READ_MODE and WRITE_MODE 2015-11-06 15:06:52 +00:00
Denis Jacquerye
7deef57dd0 ufoLib.__init__: add basestring in Python3 and undo 2to3 2015-11-06 15:06:51 +00:00
Denis Jacquerye
66e5ae0242 ufoLib __init__.py: use io.StringIO, io.BytesIO, and standard plistlib load and dump 2015-11-06 15:06:49 +00:00
Denis Jacquerye
607cdf9a39 ufoLib __init__: typo 'maetainfo' -> 'metainfo' 2015-11-06 14:10:42 +00:00
Adrien Tétar
3fd0c69d65 ufoLib meta: post-2to3 fixes 2015-11-06 14:10:42 +00:00
Adrien Tétar
337ef3202b ufoLib meta: automated 2to3 conversion 2015-11-05 09:30:43 +00:00
Adrien Tétar
ff8bd252d4 ufoLib: previousFormatVersion None-check 2015-09-27 16:39:30 +02:00
Lasse Fister
e875cfe3ec Add default layerOrder to writeLayerContents 2014-12-08 23:11:55 +01:00
Lasse Fister
24676b3ebb Repair and refactor UFOWriter._writePlist to be more DRY
`UFOWriter._writePlist` constructs the full path to the file to be written;
but the calling code did so, too.

This reliefs the calling code of `UFOWriter._writePlist` from knowing
how to construct the full path and thus makes the code more DRY.
Also, this fixes the faulty behavior that was caused by the double
path construction.
A further new helper `UFOWriter._deleteFile` was added to fully enable the
removal of path construction in the callers.
2014-12-08 23:10:46 +01:00
Lasse Fister
b498155890 use shared _getPlist implementation in UFOWriter 2014-12-08 21:33:39 +01:00
Lasse Fister
d8788cc8d5 prepare sharing of UFOReader._getPlist implementation 2014-12-08 21:33:33 +01:00
Lasse Fister
39af9f6495 Refactor and fix wrong usage of UFOReader._readPlist
All cases where UFOReader._readPlist was used suffered
from calling it with the fully constructed path where
it expected just the relative path/fileName of the plist.

Also, all cases had the similiar pattern of checking if
the file exists before trying to read it.

This replaces that pattern by `_getPlist`. The method has
a `default` argument that acts similar to the `default`
argument of the builtin function `getattr` i.e. when
`default is None` the requested plist is mandatory.
2014-12-08 21:31:46 +01:00
Lasse Fister
418b6859c8 Define UFOReader._checkForFile as an alias of os.path.exists
Maybe we should rather replace it with os.path.exists, as this
would make the code easier to read. Also os.path.exists is already
used very often in ufoLib.__init__
2014-12-08 21:27:24 +01:00