1 |
commit: 47b5bede4b6005f107019c50f7fd31ed6b2193fd |
2 |
Author: Zac Medico <zmedico <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Mar 2 09:14:50 2021 +0000 |
4 |
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Mar 2 09:25:36 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/proj/portage.git/commit/?id=47b5bede |
7 |
|
8 |
setup.py: add long_description = file: README |
9 |
|
10 |
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org> |
11 |
|
12 |
setup.py | 4 ++++ |
13 |
1 file changed, 4 insertions(+) |
14 |
|
15 |
diff --git a/setup.py b/setup.py |
16 |
index 26f45e07d..d13ca223f 100755 |
17 |
--- a/setup.py |
18 |
+++ b/setup.py |
19 |
@@ -34,6 +34,8 @@ autodetect_pip = os.path.basename(os.environ.get("_", "")) == "pip" or os.path.b |
20 |
venv_prefix = "" if sys.prefix == sys.base_prefix else sys.prefix |
21 |
create_entry_points = bool(autodetect_pip or venv_prefix) |
22 |
eprefix = sysconfig.get_python_lib() if venv_prefix else "" |
23 |
+with open(os.path.join(os.path.dirname(__file__), 'README'), 'rt') as f: |
24 |
+ long_description = f.read() |
25 |
|
26 |
# TODO: |
27 |
# - smarter rebuilds of docs w/ 'install_docbook' and 'install_apidoc'. |
28 |
@@ -673,6 +675,8 @@ setup( |
29 |
author = 'Gentoo Portage Development Team', |
30 |
author_email = 'dev-portage@g.o', |
31 |
description = 'Portage is the package management and distribution system for Gentoo', |
32 |
+ long_description = long_description, |
33 |
+ long_description_content_type = 'text/plain', |
34 |
|
35 |
package_dir = {'': 'lib'}, |
36 |
packages = list(find_packages()), |