Add a long description to setup
Include the readme as the `long_description` argument to `setup` and set its content type appropriately. This allows PyPI to render the content correctly.
This commit is contained in:
parent
71a054af92
commit
b4c44a820f
15
setup.py
15
setup.py
@ -1,10 +1,23 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
from __future__ import unicode_literals
|
from __future__ import unicode_literals
|
||||||
|
import codecs
|
||||||
|
import os
|
||||||
|
import re
|
||||||
import setuptools
|
import setuptools
|
||||||
from setuptools import setup, find_packages
|
from setuptools import setup, find_packages
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
|
|
||||||
|
# Borrowed from pip at https://github.com/pypa/pip/blob/62c27dee45625e1b63d1e023b0656310f276e050/setup.py#L11-L15
|
||||||
|
here = os.path.abspath(os.path.dirname(__file__))
|
||||||
|
|
||||||
|
def read(*parts):
|
||||||
|
# intentionally *not* adding an encoding option to open, See:
|
||||||
|
# https://github.com/pypa/virtualenv/issues/201#issuecomment-3145690
|
||||||
|
with codecs.open(os.path.join(here, *parts), 'r') as fp:
|
||||||
|
return fp.read()
|
||||||
|
|
||||||
|
|
||||||
install_requires = [
|
install_requires = [
|
||||||
"Jinja2>=2.7.3",
|
"Jinja2>=2.7.3",
|
||||||
"boto>=2.36.0",
|
"boto>=2.36.0",
|
||||||
@ -43,6 +56,8 @@ setup(
|
|||||||
version='1.3.6',
|
version='1.3.6',
|
||||||
description='A library that allows your python tests to easily'
|
description='A library that allows your python tests to easily'
|
||||||
' mock out the boto library',
|
' mock out the boto library',
|
||||||
|
long_description=read('README.md'),
|
||||||
|
long_description_content_type='text/markdown',
|
||||||
author='Steve Pulec',
|
author='Steve Pulec',
|
||||||
author_email='spulec@gmail.com',
|
author_email='spulec@gmail.com',
|
||||||
url='https://github.com/spulec/moto',
|
url='https://github.com/spulec/moto',
|
||||||
|
Loading…
Reference in New Issue
Block a user