travis: test package build/install
setup: removed distutils fallback ; little pep8 clean-up
diff --git a/setup.py b/setup.py
index 8fb9f45..8a6eee7 100755
--- a/setup.py
+++ b/setup.py
@@ -1,20 +1,18 @@
-try:
- from setuptools import setup
-except ImportError:
- from distutils.core import setup
+import setuptools
import sys
pkgdir = {'': 'python%s' % sys.version_info[0]}
VERSION = '0.10.3'
-setup(name='httplib2',
- version=VERSION,
- author='Joe Gregorio',
- author_email='joe@bitworking.org',
- url='https://github.com/httplib2/httplib2',
- description='A comprehensive HTTP client library.',
- license='MIT',
- long_description="""
+setuptools.setup(
+ name='httplib2',
+ version=VERSION,
+ author='Joe Gregorio',
+ author_email='joe@bitworking.org',
+ url='https://github.com/httplib2/httplib2',
+ description='A comprehensive HTTP client library.',
+ license='MIT',
+ long_description="""
A comprehensive HTTP client library, ``httplib2`` supports many features left out of other HTTP libraries.
@@ -57,12 +55,11 @@
**Unit Tested**
A large and growing set of unit tests.
-
- """,
- package_dir=pkgdir,
- packages=['httplib2'],
- package_data={'httplib2': ['*.txt']},
- classifiers=[
+""",
+ package_dir=pkgdir,
+ packages=['httplib2'],
+ package_data={'httplib2': ['*.txt']},
+ classifiers=(
'Development Status :: 4 - Beta',
'Environment :: Web Environment',
'Intended Audience :: Developers',
@@ -73,5 +70,5 @@
'Programming Language :: Python :: 3',
'Topic :: Internet :: WWW/HTTP',
'Topic :: Software Development :: Libraries',
- ],
- )
+ ),
+)