commit:     47b5bede4b6005f107019c50f7fd31ed6b2193fd
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Tue Mar  2 09:14:50 2021 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Tue Mar  2 09:25:36 2021 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=47b5bede

setup.py: add long_description = file: README

Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 setup.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/setup.py b/setup.py
index 26f45e07d..d13ca223f 100755
--- a/setup.py
+++ b/setup.py
@@ -34,6 +34,8 @@ autodetect_pip = os.path.basename(os.environ.get("_", "")) == 
"pip" or os.path.b
 venv_prefix = "" if sys.prefix == sys.base_prefix else sys.prefix
 create_entry_points = bool(autodetect_pip or venv_prefix)
 eprefix = sysconfig.get_python_lib() if venv_prefix else ""
+with open(os.path.join(os.path.dirname(__file__), 'README'), 'rt') as f:
+       long_description = f.read()
 
 # TODO:
 # - smarter rebuilds of docs w/ 'install_docbook' and 'install_apidoc'.
@@ -673,6 +675,8 @@ setup(
        author = 'Gentoo Portage Development Team',
        author_email = '[email protected]',
        description = 'Portage is the package management and distribution 
system for Gentoo',
+       long_description = long_description,
+       long_description_content_type = 'text/plain',
 
        package_dir = {'': 'lib'},
        packages = list(find_packages()),

Reply via email to