diff options
author | Kim Kibum <kb0929.kim@samsung.com> | 2012-05-21 17:48:53 +0900 |
---|---|---|
committer | Kim Kibum <kb0929.kim@samsung.com> | 2012-05-21 17:48:53 +0900 |
commit | a58ee624924dac6c5a210c03896d8d2f760faccc (patch) | |
tree | c3ecceb0d3d462020db56a0e8c9543fdf370ec86 /setup.py | |
parent | a58bcf5d22fde9921cc2c6efa65b88d6f4e67f16 (diff) | |
download | python-urlgrabber-a58ee624924dac6c5a210c03896d8d2f760faccc.tar.gz python-urlgrabber-a58ee624924dac6c5a210c03896d8d2f760faccc.tar.bz2 python-urlgrabber-a58ee624924dac6c5a210c03896d8d2f760faccc.zip |
Upload Tizen:Base source
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..d0b87b8 --- /dev/null +++ b/setup.py @@ -0,0 +1,45 @@ +# urlgrabber distutils setup +import re as _re +import urlgrabber as _urlgrabber + +name = "urlgrabber" +description = "A high-level cross-protocol url-grabber" +long_description = _urlgrabber.__doc__ +license = "LGPL" +version = _urlgrabber.__version__ +_authors = _re.split(r',\s+', _urlgrabber.__author__) +author = ', '.join([_re.sub(r'\s+<.*', r'', _) for _ in _authors]) +author_email = ', '.join([_re.sub(r'(^.*<)|(>.*$)', r'', _) for _ in _authors]) +url = _urlgrabber.__url__ + +packages = ['urlgrabber'] +package_dir = {'urlgrabber':'urlgrabber'} +scripts = ['scripts/urlgrabber'] +data_files = [('share/doc/' + name + '-' + version, + ['README','LICENSE', 'TODO', 'ChangeLog'])] +options = { 'clean' : { 'all' : 1 } } +classifiers = [ + 'Development Status :: 4 - Beta', + 'Environment :: Console', + 'Environment :: Web Environment', + 'Intended Audience :: Developers', + 'Intended Audience :: System Administrators', + 'License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL)', + 'Operating System :: POSIX', + 'Operating System :: POSIX :: Linux', + 'Programming Language :: Python', + 'Topic :: Internet :: File Transfer Protocol (FTP)', + 'Topic :: Internet :: WWW/HTTP', + 'Topic :: Software Development :: Libraries :: Python Modules' + ] + +# load up distutils +if __name__ == '__main__': + config = globals().copy() + keys = config.keys() + for k in keys: + #print '%-20s -> %s' % (k, config[k]) + if k.startswith('_'): del config[k] + + from distutils.core import setup + setup(**config) |