From ea0376e0c41ffd1d2a87a048a8d5bd272705857a Mon Sep 17 00:00:00 2001 From: Gene Wood Date: Sat, 5 Jul 2025 12:45:33 -0700 Subject: [PATCH 1/2] Add a long_description to setup.py Currently the `systemd-python` package on PyPI renders with a "Project description" of "The author of this package has not provided a project description" because the setup.py has no `long_description` argument. As a result, the rendering of the project on PyPi appears either immature or not legitimate. Ths adds in a `long_description` argument which displays the `README.md` as the "Project description" on PyPI. --- setup.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/setup.py b/setup.py index fe9c03a..4cc9fb8 100644 --- a/setup.py +++ b/setup.py @@ -79,6 +79,8 @@ def lib(*names, **kw): setup (name = 'systemd-python', version = version, description = 'Python interface for libsystemd', + long_description=open("README.md").read(), + long_description_content_type="text/markdown", author_email = 'david@davidstrauss.net', maintainer = 'systemd developers', maintainer_email = 'systemd-devel@lists.freedesktop.org', From fca90d192f0b5cc8ad90e3e0becec8c600757157 Mon Sep 17 00:00:00 2001 From: Gene Wood Date: Sat, 5 Jul 2025 13:00:10 -0700 Subject: [PATCH 2/2] Ensure README.md is closed after reading --- setup.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 4cc9fb8..96b79bb 100644 --- a/setup.py +++ b/setup.py @@ -76,10 +76,12 @@ def lib(*names, **kw): 'systemd/strv.c'], extra_compile_args=['-std=c99', '-Werror=implicit-function-declaration'], **lib('libsystemd', 'libsystemd-login', **defines)) +with open("README.md") as f: + long_description = f.read() setup (name = 'systemd-python', version = version, description = 'Python interface for libsystemd', - long_description=open("README.md").read(), + long_description=long_description, long_description_content_type="text/markdown", author_email = 'david@davidstrauss.net', maintainer = 'systemd developers', pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy