diff options
| author | Adam Hupp <adam@hupp.org> | 2018-06-17 12:11:14 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-17 12:11:14 -0700 |
| commit | 793eae408828ff5cfc5bf6830cdaa991b5a9a7cc (patch) | |
| tree | cf7fd6db3df87fb750bad9dfe16125c221e2eb0f | |
| parent | 3ca954869ee5f3e55a3d413bea2a90e88387cfe4 (diff) | |
| parent | c32273d3989b50bb65b76ff0be8e8450719d9d38 (diff) | |
| download | python-magic-793eae408828ff5cfc5bf6830cdaa991b5a9a7cc.tar.gz | |
Merge pull request #171 from MartinThoma/pypi-doc
Improve project page on PyPI
| -rw-r--r-- | setup.py | 15 |
1 files changed, 11 insertions, 4 deletions
@@ -2,6 +2,15 @@ # -*- coding: utf-8 -*- from setuptools import setup +import io +import os + + +def read(file_name): + """Read a text file and return the content as a string.""" + with io.open(os.path.join(os.path.dirname(__file__), file_name), + encoding='utf-8') as f: + return f.read() setup(name='python-magic', description='File type identification using libmagic', @@ -10,10 +19,8 @@ setup(name='python-magic', url="http://github.com/ahupp/python-magic", version='0.4.15', 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. -""", + long_description=read('README.md'), + long_description_content_type='text/markdown', keywords="mime magic file", license="MIT", test_suite='test', |
