Skip to content

Commit

Permalink
Merge pull request #6 from fonttools/use-fontools-ufoLib
Browse files Browse the repository at this point in the history
Use fontTools.ufoLib
  • Loading branch information
anthrotype authored Oct 25, 2018
2 parents bc7ab3a + fba0ccc commit 1705bf8
Show file tree
Hide file tree
Showing 26 changed files with 568 additions and 2,251 deletions.
7 changes: 2 additions & 5 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
fonttools==3.26.0
attrs==18.1.0
lxml==4.2.1
typing==3.6.4 ; python_version<'3.5'
singledispatch ; python_version<'3.4'
fonttools==3.31.0
attrs==18.2.0
6 changes: 2 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,9 @@
include_package_data=True,
python_requires=">=2.7",
install_requires=[
"fonttools>=3.24.0",
"attrs>=17.3.0",
"lxml",
"fonttools[ufo,lxml] >= 3.31.0",
"attrs>=18.2.0",
"typing ; python_version<'3.5'",
"singledispatch ; python_version<'3.4'",
],
setup_requires=["setuptools_scm"],
classifiers=[
Expand Down
7 changes: 1 addition & 6 deletions src/ufoLib2/__init__.py
Original file line number Diff line number Diff line change
@@ -1,16 +1,11 @@
"""ufoLib2 -- a package for dealing with UFO fonts."""

# The structure of UFO font files is defined here:
# http://unifiedfontobject.org/

from ufoLib2.objects import Font
from ufoLib2.reader import UFOReader
from ufoLib2.writer import UFOWriter

try:
from ._version import version as __version__
except ImportError:
__version__ = "0.0.0+unknown"


__all__ = ["Font", "UFOReader", "UFOWriter"]
__all__ = ["Font"]
326 changes: 0 additions & 326 deletions src/ufoLib2/glyphSet.py

This file was deleted.

2 changes: 1 addition & 1 deletion src/ufoLib2/objects/component.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import attr
from typing import Optional
from ufoLib2.objects.misc import Transformation
from ufoLib2.pointPens.converterPens import PointToSegmentPen
from fontTools.pens.pointPen import PointToSegmentPen
import warnings


Expand Down
2 changes: 1 addition & 1 deletion src/ufoLib2/objects/contour.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import attr
from typing import Optional
from ufoLib2.pointPens.converterPens import PointToSegmentPen
from fontTools.pens.pointPen import PointToSegmentPen
import warnings


Expand Down
7 changes: 4 additions & 3 deletions src/ufoLib2/objects/dataSet.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
from ufoLib2.objects.misc import DataStore
from ufoLib2.reader import UFOReader
from ufoLib2.writer import UFOWriter
from fontTools.ufoLib import UFOReader
from fontTools.ufoLib import UFOWriter


class DataSet(DataStore):
listdir = UFOReader.getDataDirectoryListing
readf = UFOReader.readData
writef = UFOWriter.writeData
deletef = UFOWriter.deleteData
deletef = UFOWriter.removeData
Loading

0 comments on commit 1705bf8

Please sign in to comment.