From 6bfe462ba73a26ff5b37f597ff598d0ec638a138 Mon Sep 17 00:00:00 2001 From: Cosimo Lupo Date: Mon, 17 Oct 2016 16:18:57 +0100 Subject: [PATCH] setup.py: point package url to github repo; remove `import fontTools` check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The `url` field in setup.py must be the home page for the package. I moved the url to the UFO specĀ in the 'long_description', so it will show up in the PyPI project page. Checking for `import fontTools` is redundant since dependency resolution is now automatic. --- setup.py | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/setup.py b/setup.py index b9b094d6d..540397c59 100755 --- a/setup.py +++ b/setup.py @@ -2,16 +2,12 @@ import sys from setuptools import setup, find_packages -try: - import fontTools -except ImportError: - print("*** Warning: ufoLib needs FontTools for some operations, see:") - print(" https://github.com/behdad/fonttools") - long_description = """\ -ufoLib reads and writes Unified Font Object (UFO) files. UFO is a file format -that stores fonts source files. +ufoLib reads and writes Unified Font Object (UFO) files. +UFO is a file format that stores fonts source files. + +http://unifiedfontobject.org """ needs_pytest = {'pytest', 'test'}.intersection(sys.argv) @@ -27,7 +23,7 @@ setup_params = dict( author_email="info@robofab.com", maintainer="Just van Rossum, Tal Leming, Erik van Blokland", maintainer_email="info@robofab.com", - url="http://unifiedfontobject.org", + url="https://github.com/unified-font-object/ufoLib", license="OpenSource, BSD-style", platforms=["Any"], long_description=long_description,