{{{
self.builder.get_object('label_plugin_details').set_text(
plugin_info['Description']
)
}}}
Into instead:
{{{
self.builder.get_object('label_plugin_details').set_text(
plugin_info['Summary']
)
}}}
Which works for old and new PKG-INFO generated files.
Here's two examples of generated AutoAdd.egg-info/PKG-INFO files from
unmodified deluge git clone and built with 'python setup.py bdist_egg',
first with latest python-setuptools 1.57, and next with previous python-
setuptools 1.56.2(both python3, as on arch, python means python3, and btw
using latest python 3.9.5 also):
{{{
Metadata-Version: 2.1
Name: AutoAdd
Version: 1.8
Summary: Monitors folders for .torrent files.
Home-page: http://dev.deluge-torrent.org/wiki/Plugins/AutoAdd
Author: Chase Sterling, Pedro Algarvio
Author-email: chase.s...@gmail.com, pe...@algarvio.me
License: GPLv3
Platform: UNKNOWN
Monitors folders for .torrent files.
}}}
{{{
Metadata-Version: 2.1
Name: AutoAdd
Version: 1.8
Summary: Monitors folders for .torrent files.
Home-page: http://dev.deluge-torrent.org/wiki/Plugins/AutoAdd
Author: Chase Sterling, Pedro Algarvio
Author-email: chase.s...@gmail.com, pe...@algarvio.me
License: GPLv3
Description: Monitors folders for .torrent files.
Platform: UNKNOWN
}}}
Thanks in advance.
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3476>
Deluge <https://deluge-torrent.org/>
Deluge Project
* component: Unknown => GTK UI
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3476#comment:1>
* milestone: needs verified => 2.0.6
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3476#comment:2>
Comment (by Cas):
Some links to get further details on the issue:
https://packaging.python.org/en/latest/specifications/core-
metadata/#description
> Changed in version 2.1: This field may be specified in the message body
instead.
>
> Alternatively, the distribution’s description may instead be provided in
the message body (i.e., after a completely blank line following the
headers, with no indentation or other special formatting necessary).
A related warehouse issue: https://github.com/pypa/warehouse/issues/8174
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3476#comment:3>
Comment (by Cas):
Thanks for reporting!
This needing fixing when parsing the metadata in the Pluginmanagerbase so
that all UIs would not encounter this error.
Fixed in [2351d658449] and [c3cd7f5e5cd1]
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3476#comment:4>
* status: new => closed
* resolution: => Fixed
--
Ticket URL: <https://dev.deluge-torrent.org/ticket/3476#comment:5>