From 48a738ba007bb46921906c4d7da5e23c86d8a152 Mon Sep 17 00:00:00 2001 From: Paul Makepeace Date: Sun, 1 May 2011 17:21:37 +0000 Subject: [PATCH] Remove distutils in favor of setuptools. Rename project to refine-client. Add urllib2_file to install_requires after I got author to upload it, w00t. Add GPL license. Add Text Processing classifier --- setup.py | 84 +++++++++++++++++++++++++++++++------------------------- 1 file changed, 47 insertions(+), 37 deletions(-) diff --git a/setup.py b/setup.py index 375915b..2343d7e 100644 --- a/setup.py +++ b/setup.py @@ -1,37 +1,47 @@ -#!/usr/bin/env python -"""python setup.py install""" - -import os -try: - from setuptools.core import setup -except ImportError: - from distutils.core import setup - -def read(fname): - return open(os.path.join(os.path.dirname(__file__), fname)).read() - -setup(name='refine-client-py', - 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=['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 - ], - platforms=['Any'], - classifiers = [ - 'Development Status :: 3 - Alpha', - 'Environment :: Library', - '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 +#!/usr/bin/env python +"""python setup.py install""" + +# Copyright (c) 2011 Paul Makepeace, Real Programmers. All rights reserved. + +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. + +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. + +# You should have received a copy of the GNU General Public License +# along with this program. If not, see + +import os +from setuptools import setup + +def read(fname): + return open(os.path.join(os.path.dirname(__file__), fname)).read() + +setup(name='refine-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=['google.refine'], + install_requires=['urllib2_file'], + platforms=['Any'], + classifiers = [ + 'Development Status :: 3 - Alpha', + 'Environment :: Library', + 'Intended Audience :: Developers', + 'License :: OSI Approved :: GNU General Public License (GPL)', + 'Operating System :: OS Independent', + 'Programming Language :: Python', + 'Topic :: Software Development :: Libraries :: Python Modules', + 'Topic :: Text Processing', + ], + test_suite='tests', +)