From 98a1f5eb8e6f065f5b99b0a5096a6e60fa04aa74 Mon Sep 17 00:00:00 2001 From: Paul Makepeace Date: Thu, 28 Apr 2011 15:48:42 +0000 Subject: [PATCH] Add more metadata. Use setuptools instead of distutils for install_requires and tests, the former of which I couldn't get to work anyway :-/ --- setup.py | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/setup.py b/setup.py index bd27aba..9da1abe 100644 --- a/setup.py +++ b/setup.py @@ -1,13 +1,32 @@ #!/usr/bin/env python """python setup.py install""" -from distutils.core import setup +import os +from setuptools import setup + +def read(fname): + return open(os.path.join(os.path.dirname(__file__), fname)).read() setup(name='refine-client-py', - version='0.1', - description='Google Refine Python Client', + version='0.1.0', + description=('The Google Refine Python Client Library provides an ' + 'interface to communicating with a Google Refine server.'), + long_description=read('README.rst'), author='Paul Makepeace', author_email='paulm@paulm.com', url='https://github.com/PaulMakepeace/refine-client-py', - packages=[], + packages=['google.refine'], + # XXX how do I include test/data/*.csv in setup.py sdist but not install it? + #package_data={'': ['tests/data/*.csv']}, + install_requires=[ + #'MultipartPostHandler', # for urllib2_file + ], + classifiers = [ + 'Development Status :: 3 - Alpha', + 'Intended Audience :: Developers', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Topic :: Software Development :: Libraries :: Python Modules', + ], + test_suite='tests', ) \ No newline at end of file