setup.py: Include README in pypi upload
This allows for more information by embedding the README at
as a "Project Description".
#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
+from pathlib import Path
from setuptools import setup, find_packages
requires = ['itsdangerous', 'Jinja2', 'misaka>=2.0,<3.0', 'html5lib',
'werkzeug>=1.0', 'bleach', 'Flask-Caching>=1.9', 'Flask']
tests_require = ['pytest', 'pytest-cov']
+# https://packaging.python.org/en/latest/guides/making-a-pypi-friendly-readme/
+this_directory = Path(__file__).parent
+long_description = (this_directory / "README.md").read_text()
+
setup(
name='isso',
version='0.12.5',
@@ -18,6 +23,8 @@ setup(
url='https://github.com/posativ/isso/',
license='MIT',
description='lightweight Disqus alternative',
+ long_description=long_description,
+ long_description_content_type='text/markdown',
python_requires='>=3.5',
classifiers=[
"Development Status :: 4 - Beta",
