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,37 +1,47 @@
#!/usr/bin/env python #!/usr/bin/env python
"""python setup.py install""" """python setup.py install"""
import os # Copyright (c) 2011 Paul Makepeace, Real Programmers. All rights reserved.
try:
from setuptools.core import setup # This program is free software: you can redistribute it and/or modify
except ImportError: # it under the terms of the GNU General Public License as published by
from distutils.core import setup # the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
def read(fname):
return open(os.path.join(os.path.dirname(__file__), fname)).read() # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
setup(name='refine-client-py', # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
version='0.1.0', # GNU General Public License for more details.
description=('The Google Refine Python Client Library provides an '
'interface to communicating with a Google Refine server.'), # You should have received a copy of the GNU General Public License
long_description=read('README.rst'), # along with this program. If not, see <http://www.gnu.org/licenses/>
author='Paul Makepeace',
author_email='paulm@paulm.com', import os
url='https://github.com/PaulMakepeace/refine-client-py', from setuptools import setup
packages=['google.refine'],
# XXX how do I include test/data/*.csv in setup.py sdist but not install it? def read(fname):
#package_data={'': ['tests/data/*.csv']}, return open(os.path.join(os.path.dirname(__file__), fname)).read()
install_requires=[
#'MultipartPostHandler', # for urllib2_file setup(name='refine-client',
], version='0.1.0',
platforms=['Any'], description=('The Google Refine Python Client Library provides an '
classifiers = [ 'interface to communicating with a Google Refine server.'),
'Development Status :: 3 - Alpha', long_description=read('README.rst'),
'Environment :: Library', author='Paul Makepeace',
'Intended Audience :: Developers', author_email='paulm@paulm.com',
'Operating System :: OS Independent', url='https://github.com/PaulMakepeace/refine-client-py',
'Programming Language :: Python', packages=['google.refine'],
'Topic :: Software Development :: Libraries :: Python Modules', install_requires=['urllib2_file'],
], platforms=['Any'],
test_suite='tests', 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',
)