#!/usr/bin/env python

import sys
from setuptools import setup

try:
    import fontTools
except:
    print("*** Warning: extractor requires FontTools, see:")
    print("    github.com/behdad/fonttools")


setup(name="extractor",
    version="0.1",
    description="Tools for extracting data from font binaries into UFO objects.",
    author="Tal Leming",
    author_email="tal@typesupply.com",
    url="http://code.typesupply.com",
    license="MIT",
    packages=[
        "extractor",
        "extractor.formats"
    ],
    package_dir={"":"Lib"}
)

@@ -59,158 +59,376 @@
 etup
-%0A%0Atry:%0A    import fontTools%0Aexcept:%0A    print(%22*** Warning: extractor requires FontTools, see:%22)%0A    print(%22    github.com/behdad/fonttools%22)%0A
+, find_packages%0A%0A%0Aneeds_pytest = %7B'pytest', 'test'%7D.intersection(sys.argv)%0Apytest_runner = %5B'pytest_runner'%5D if needs_pytest else %5B%5D%0Aneeds_wheel = %7B'bdist_wheel'%7D.intersection(sys.argv)%0Awheel = %5B'wheel'%5D if needs_wheel else %5B%5D%0A%0A# TODO: add README.rst, so we can use on both Github and PyPI%0A# with open('README.rst', 'r') as f:%0A#     long_description = f.read()
 %0A%0Asetup(
 name
@@ -427,14 +427,23 @@
 tup(
+%0A    
 name=%22
+ufo_
 extr
@@ -469,9 +469,16 @@
 =%220.
-1
+2.0.dev0
 %22,%0A 
@@ -558,16 +558,57 @@
 ects.%22,%0A
+    # long_description=long_description,%0A
     auth
@@ -680,30 +680,43 @@
 http
+s
 ://
-code.typesupply.com
+github.com/typesupply/extractor
 %22,%0A 
@@ -748,93 +748,989 @@
 kage
-s=%5B%0A        %22extractor%22,%0A        %22extractor.formats%22%0A    %5D,%0A    package_dir=%7B%22%22:%22Lib%22%7D
+_dir=%7B%22%22: %22Lib%22%7D,%0A    packages=find_packages(%22Lib%22),%0A    setup_requires=pytest_runner + wheel,%0A    tests_require=%5B%0A        'pytest%3E=2.8',%0A    %5D,%0A    install_requires=%5B%0A        %22fonttools%3E=3.3.1%22,%0A        %22ufoLib%3E=2.0.0%22,%0A    %5D,%0A    classifiers=%5B%0A        %22Development Status :: 4 - Beta%22,%0A        %22Environment :: Console%22,%0A        %22Environment :: Other Environment%22,%0A        %22Intended Audience :: Developers%22,%0A        %22License :: OSI Approved :: MIT License%22,%0A        %22Natural Language :: English%22,%0A        %22Operating System :: OS Independent%22,%0A        %22Programming Language :: Python :: 2%22,%0A        %22Programming Language :: Python :: 3%22,%0A        %22Programming Language :: Python%22,%0A        %22Topic :: Multimedia :: Graphics :: Editors :: Vector-Based%22,%0A        %22Topic :: Multimedia :: Graphics :: Graphics Conversion%22,%0A        %22Topic :: Multimedia :: Graphics%22,%0A        %22Topic :: Software Development :: Libraries :: Python Modules%22,%0A        %22Topic :: Text Processing :: Fonts%22,%0A    %5D,
 %0A)%0A

set package name to "ufo_extractor"; bump version 0.2.0.dev0; add test/install requirements and PyPI metadata