diff options
author | Joe Gregorio <joe.gregorio@gmail.com> | 2010-09-15 13:20:52 -0700 |
---|---|---|
committer | David Tsai <dbtsai@dbtsai.com> | 2012-08-22 15:15:43 -0700 |
commit | b43ce3ed17930e0f0c1374b5e427538f952583dc (patch) | |
tree | 9a5da3c0e5259df380463b88b8cd33a899a18a13 | |
parent | d647b744769c528bd322bd2597721e07d6ddf9c7 (diff) | |
download | python-mimeparse-b43ce3ed17930e0f0c1374b5e427538f952583dc.tar.gz |
Added setup.py
-rw-r--r-- | MANIFEST | 5 | ||||
-rw-r--r-- | PKG-INFO | 15 | ||||
-rw-r--r-- | setup.py | 44 |
3 files changed, 64 insertions, 0 deletions
diff --git a/MANIFEST b/MANIFEST new file mode 100644 index 0000000..d187ea5 --- /dev/null +++ b/MANIFEST @@ -0,0 +1,5 @@ +README +mimeparse.py +mimeparse_test.py +testdata.json +setup.py diff --git a/PKG-INFO b/PKG-INFO new file mode 100644 index 0000000..a26fd33 --- /dev/null +++ b/PKG-INFO @@ -0,0 +1,15 @@ +Metadata-Version: 1.1 +Name: mimeparse +Version: 0.1.3 +Author: Joe Gregorio +Author-email: joe@bitworking.org +Maintainer: Joe Gregorio +Maintainer-email: joe@bitworking.org +Home-page: http://code.google.com/p/mimeparse/ +Download-url: http://code.google.com/p/mimeparse/downloads/list +Summary: mimeparse +License: MIT License +Description: A module provides basic functions for parsing mime-type names and matching them against a list of media-ranges. +Keywords: python mime-type +Platform: any + diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..a3c03a9 --- /dev/null +++ b/setup.py @@ -0,0 +1,44 @@ +# -*- coding: utf-8 -*- + +#old way +from distutils.core import setup + +#new way +#from setuptools import setup, find_packages + +setup(name='mimeparse', + version='0.1.3', + description='A module provides basic functions for parsing mime-type names and matching them against a list of media-ranges.', + long_description=""" +This module provides basic functions for handling mime-types. It can handle +matching mime-types against a list of media-ranges. See section 14.1 of +the HTTP specification [RFC 2616] for a complete explanation. + + http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1 + +Contents: + - parse_mime_type(): Parses a mime-type into its component parts. + - parse_media_range(): Media-ranges are mime-types with wild-cards and a 'q' quality parameter. + - quality(): Determines the quality ('q') of a mime-type when compared against a list of media-ranges. + - quality_parsed(): Just like quality() except the second parameter must be pre-parsed. + - best_match(): Choose the mime-type with the highest quality ('q') from a list of candidates. + """, + classifiers=[ + # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers + 'Intended Audience :: Developers', + 'License :: OSI Approved :: MIT License', + 'Programming Language :: Python', + 'Topic :: Internet :: WWW/HTTP', + 'Topic :: Software Development :: Libraries :: Python Modules', + ], + keywords='mime-type', + author='Joe Gregorio', + author_email='joe@bitworking.org', + maintainer='Joe Gregorio', + maintainer_email='joe@bitworking.org', + url='http://code.google.com/p/mimeparse/', + license='MIT', + py_modules=['mimeparse'], + zip_safe=True, + ) + |