setup.py: point package url to github repo; remove import fontTools check

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.
This commit is contained in:
Cosimo Lupo 2016-10-17 16:18:57 +01:00
parent 835872946d
commit 6bfe462ba7

View File

@ -2,16 +2,12 @@
import sys import sys
from setuptools import setup, find_packages 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 = """\ long_description = """\
ufoLib reads and writes Unified Font Object (UFO) files. UFO is a file format ufoLib reads and writes Unified Font Object (UFO) files.
that stores fonts source files. UFO is a file format that stores fonts source files.
http://unifiedfontobject.org
""" """
needs_pytest = {'pytest', 'test'}.intersection(sys.argv) needs_pytest = {'pytest', 'test'}.intersection(sys.argv)
@ -27,7 +23,7 @@ setup_params = dict(
author_email="info@robofab.com", author_email="info@robofab.com",
maintainer="Just van Rossum, Tal Leming, Erik van Blokland", maintainer="Just van Rossum, Tal Leming, Erik van Blokland",
maintainer_email="info@robofab.com", maintainer_email="info@robofab.com",
url="http://unifiedfontobject.org", url="https://github.com/unified-font-object/ufoLib",
license="OpenSource, BSD-style", license="OpenSource, BSD-style",
platforms=["Any"], platforms=["Any"],
long_description=long_description, long_description=long_description,