Added python-magic for smarter MIME type detection and a new document field: file_mime_encoding

This commit is contained in:
Roberto Rosario
2011-02-10 19:01:55 -04:00
parent f7b560853b
commit 07ac315ac8
14 changed files with 596 additions and 4 deletions

View File

@@ -0,0 +1,17 @@
from setuptools import setup, Extension
#from distutils.core import setup, Extension
setup(name='python-magic',
description='File type identification using libmagic',
author='Adam Hupp',
author_email='adam@hupp.org',
url="http://github.com/ahupp/python-magic",
version='0.4.0',
py_modules=['magic'],
long_description="""This module uses ctypes to access the libmagic file type
identification library. It makes use of the local magic database and
supports both textual and MIME-type output.
""",
keywords="mime magic file",
license="PSF",
)