fix long description content type

This commit is contained in:
Thomas Kriechbaumer 2020-12-13 19:56:33 +01:00
parent ab8f685cec
commit 2f667f950e
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ here = os.path.abspath(os.path.dirname(__file__))
with open(os.path.join(here, 'README.md'), encoding='utf-8') as f: with open(os.path.join(here, 'README.md'), encoding='utf-8') as f:
long_description = f.read() long_description = f.read()
long_description_content_type = "text/markdown"
with open(os.path.join(here, "mitmproxy", "version.py")) as f: with open(os.path.join(here, "mitmproxy", "version.py")) as f:
match = re.search(r'VERSION = "(.+?)"', f.read()) match = re.search(r'VERSION = "(.+?)"', f.read())
@ -22,6 +23,7 @@ setup(
version=VERSION, version=VERSION,
description="An interactive, SSL/TLS-capable intercepting proxy for HTTP/1, HTTP/2, and WebSockets.", description="An interactive, SSL/TLS-capable intercepting proxy for HTTP/1, HTTP/2, and WebSockets.",
long_description=long_description, long_description=long_description,
long_description_content_type=long_description_content_type,
url="http://mitmproxy.org", url="http://mitmproxy.org",
author="Aldo Cortesi", author="Aldo Cortesi",
author_email="aldo@corte.si", author_email="aldo@corte.si",