All of lore.kernel.org
 help / color / mirror / Atom feed
From: bugzilla at busybox.net <bugzilla@busybox.net>
To: buildroot@busybox.net
Subject: [Buildroot] [Bug 13321] utils/scanpypi: fails with packages that define a package’s metadata in setup.cfg
Date: Fri, 15 Jan 2021 14:00:29 +0000	[thread overview]
Message-ID: <bug-13321-163-RnpghupycU@https.bugs.busybox.net/> (raw)
In-Reply-To: <bug-13321-163@https.bugs.busybox.net/>

https://bugs.busybox.net/show_bug.cgi?id=13321

--- Comment #2 from Oliwia Zaremba <g.oliwia@gmail.com> ---
To provide more background on this issue: this is the result of PEP-517
(https://www.python.org/dev/peps/pep-0517/) getting a wider adoption. According
to the documentation:
https://setuptools.readthedocs.io/en/latest/setuptools.html#id4 the recommended
approach for Python packages is to define the dependencies decoratively in
setup.cfg. The deprecated calls to setup.py remain backwards compatible by
emulating a dummy setup.py with a setup() method call. In that case the method
is called without any arguments, and this is ultimately the reason
utils/scanpypi script fails for many packages that use this new approach. 

It seems to me that one possible solution to this would be to detect if the
setup.cfg exists and retrieve the package's metadata from it (e.g. using the
read_configuration method from setuptools.config). But I wonder if there exists
a Python native solution to retrieve the metadata (including install_requires
dependencies) from a Python package regardless whether PEP-517 convention is
used or not, and more importantly, without installing that package. Does anyone
know of such mechanism?

Also if anyone found a working solution to this, I would very much appreciate
if it can be shared.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

  parent reply	other threads:[~2021-01-15 14:00 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-18 19:02 [Buildroot] [Bug 13321] New: utils/scanpypi: fails with packages that define a package’s metadata in setup.cfg bugzilla at busybox.net
2020-11-23  3:17 ` [Buildroot] [Bug 13321] " bugzilla at busybox.net
2021-01-15 14:00 ` bugzilla at busybox.net [this message]
2021-11-06 11:04 ` bugzilla

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=bug-13321-163-RnpghupycU@https.bugs.busybox.net/ \
    --to=bugzilla@busybox.net \
    --cc=buildroot@busybox.net \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.