Include mimeparse, which is used by subunit/testtools.
[Samba.git] / lib / mimeparse / setup.py
blobde3e81b4121c575fe33c978cec7b65a99dc44bde
1 # -*- coding: utf-8 -*-
3 #old way
4 from distutils.core import setup
6 #new way
7 #from setuptools import setup, find_packages
9 setup(name='mimeparse',
10 version='0.1.4',
11 description='A module provides basic functions for parsing mime-type names and matching them against a list of media-ranges.',
12 long_description="""
13 This module provides basic functions for handling mime-types. It can handle
14 matching mime-types against a list of media-ranges. See section 14.1 of
15 the HTTP specification [RFC 2616] for a complete explanation.
17 http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1
19 Contents:
20 - parse_mime_type(): Parses a mime-type into its component parts.
21 - parse_media_range(): Media-ranges are mime-types with wild-cards and a 'q' quality parameter.
22 - quality(): Determines the quality ('q') of a mime-type when compared against a list of media-ranges.
23 - quality_parsed(): Just like quality() except the second parameter must be pre-parsed.
24 - best_match(): Choose the mime-type with the highest quality ('q') from a list of candidates.
25 """,
26 classifiers=[
27 # Get strings from http://pypi.python.org/pypi?%3Aaction=list_classifiers
28 'Intended Audience :: Developers',
29 'License :: OSI Approved :: MIT License',
30 'Programming Language :: Python',
31 'Topic :: Internet :: WWW/HTTP',
32 'Topic :: Software Development :: Libraries :: Python Modules',
33 'Programming Language :: Python :: 2',
34 'Programming Language :: Python :: 2.5',
35 'Programming Language :: Python :: 2.6',
36 'Programming Language :: Python :: 2.7',
37 'Programming Language :: Python :: 3',
38 'Programming Language :: Python :: 3.1',
39 'Programming Language :: Python :: 3.2',
40 'Programming Language :: Python :: 3.3',
42 keywords='mime-type',
43 author='Joe Gregorio',
44 author_email='joe@bitworking.org',
45 maintainer='Joe Gregorio',
46 maintainer_email='joe@bitworking.org',
47 url='http://code.google.com/p/mimeparse/',
48 license='MIT',
49 py_modules=['mimeparse']