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

This commit is contained in:
Paul Makepeace 2011-05-01 17:21:37 +00:00
parent de96dca762
commit 48a738ba00
1 changed files with 47 additions and 37 deletions

View File

@ -1,16 +1,28 @@
#!/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 <http://www.gnu.org/licenses/>
import os
try:
from setuptools.core import setup
except ImportError:
from distutils.core import setup
from setuptools import setup
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read()
setup(name='refine-client-py',
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.'),
@ -19,19 +31,17 @@ setup(name='refine-client-py',
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
],
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',
)