From 0a1cb46ba24945335c64b2303ceac8dcbddf4a47 Mon Sep 17 00:00:00 2001 From: Hugo van Kemenade Date: Sun, 5 Mar 2023 10:18:17 +0200 Subject: [PATCH] Add README to PyPI page --- setup.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/setup.py b/setup.py index 735b582..a18e3b6 100644 --- a/setup.py +++ b/setup.py @@ -1,3 +1,5 @@ +from pathlib import Path + from setuptools import setup test_deps = [ @@ -26,9 +28,14 @@ extras = { "blurhash": blurhash_deps, } +this_directory = Path(__file__).parent +long_description = (this_directory / "README.rst").read_text() + setup(name='Mastodon.py', version='1.8.0', description='Python wrapper for the Mastodon API', + long_description=long_description, + long_description_content_type='text/x-rst', packages=['mastodon'], install_requires=[ 'requests>=2.4.2',