summaryrefslogtreecommitdiff
path: root/setup.py
blob: 35f6355fdcfe295e64e86a9ce37ee53a854119c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env python

import os
import codecs
import mimeparse
from setuptools import setup


def read(fname):
    path = os.path.join(os.path.dirname(__file__), fname)
    return codecs.open(path, encoding='utf-8').read()

setup(
    name="python-mimeparse",
    py_modules=["mimeparse"],
    version=mimeparse.__version__,
    description=("A module provides basic functions for parsing mime-type "
                 "names and matching them against a list of media-ranges."),
    author="DB Tsai",
    author_email="dbtsai@dbtsai.com",
    url="https://github.com/dbtsai/python-mimeparse",
    download_url=("https://github.com/dbtsai/python-mimeparse/tarball/" +
                  mimeparse.__version__),
    keywords=["mime-type"],
    classifiers=[
        "Programming Language :: Python",
        "Programming Language :: Python :: 3",
        "License :: OSI Approved :: MIT License",
        "Operating System :: OS Independent",
        "Development Status :: 5 - Production/Stable",
        "Intended Audience :: Developers",
        "Topic :: Internet :: WWW/HTTP",
        "Topic :: Software Development :: Libraries :: Python Modules",
    ],
    long_description=read('README.md')
)