linux-bluetooth.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Barry Byford <31baz66@gmail.com>
To: Bluez mailing list <linux-bluetooth@vger.kernel.org>
Subject: Deprecated Python Libraries
Date: Fri, 17 Sep 2021 08:03:36 +0100	[thread overview]
Message-ID: <CAAu3APZAJD-uPUO1d4g=7smD34LUzkn87MkQKfdEcTC41FM5Vg@mail.gmail.com> (raw)

The Python examples in the test directory have some dependencies that
have issues:

optparse
According to the documentation this has now been deprecated

https://docs.python.org/3/library/optparse.html#:~:text=Deprecated%20since%20version%203.2

dbus-python
This has some known issues according to the documentation

https://dbus.freedesktop.org/doc/dbus-python/#:~:text=Alternative%20ways%20to%20get%20your%20Python%20code%20onto%20D-Bus

The above documentation has recommendations of switching to
import argparse
from gi.repository import Gio

Both of these should already be on systems because argparse is built
in to Python and gi.repository is used for GLib elsewhere in the
examples.
Would there be any interest in getting patches to change to these
different libraries?
Are these test scripts used in any of the automated tests?
Can I submit a PR via https://github.com/bluez/bluez/pulls?

Thanks,
Barry

             reply	other threads:[~2021-09-17  7:03 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-17  7:03 Barry Byford [this message]
2021-09-17  8:04 ` Deprecated Python Libraries Marijn Suijten
2021-09-19 13:45   ` Barry Byford
2021-09-21  3:48 ` Tedd Ho-Jeong An

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAAu3APZAJD-uPUO1d4g=7smD34LUzkn87MkQKfdEcTC41FM5Vg@mail.gmail.com' \
    --to=31baz66@gmail.com \
    --cc=linux-bluetooth@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).