Subject: bug#69997: closed (Should âguiximport pypiâ get dependencies from pyproject files?)

From: [email-masked] (GNU bug Tracking System)
Date: Mon, 16 Dec 2024 19:31:02 +0000

Your bug report

#69997: Should ‘guix import pypi’ get dependencies from pyproject files?

which was filed against the guix package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
69997: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=69997
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Should âguix import pypiâ get dependencies from pyproject files?
From: Sharlatan Hellseher <[email-masked]>
To: [email-masked]
Date: Mon, 16 Dec 2024 19:29:51 +0000
List-Id: <debbugs-submit.debbugs.gnu.org>

Hi,

Pushed as

a3ffb920f1 * master import: pypi: Move deduplication to final processing step.
c904350a81 * import: pypi: Default to setuptools as build system input.
d7890af335 * import: pypi: Add python-wheel to native inputs if setuptools is used.
8bb3bb19c2 * import: pypi: Support extracting dependencies from pyproject.toml.

to master.

--
Thanks,
Oleg

Subject: Should ‘guix import pypi’get dependencies from pyproject files?
From: Ludovic Courtès <[email-masked]>
To: [email-masked]
Date: Mon, 25 Mar 2024 12:06:51 +0100
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello Python team!

Should ‘guix import pypi’ attempt to get dependency information from
‘pyproject.toml’, in addition to ‘requirements.txt’ and wheel ‘METADATA’
as it already does?

It might be more complicated than we’d like: in some cases, that file
seems to be used as a “trampoline” to Poetry.  For instance, in
python-pypugjs, the ‘requires’ bit delegates everything to Poetry:

--8<---------------cut here---------------start------------->8---
[tool.poetry]
name = "pypugjs"
version = "5.9.4"
description = ""
authors = ["Andy Grabow <[email-masked]>"]
license = "MIT"

[tool.poetry.dependencies]
python = "^3.8"
Jinja2 = "^3.1.1"
Mako = "^1.1.3"
tornado = "^6.0.4"
six = "^1.15.0"
coverage = "^6.3.2"
nose = "^1.3.7"
Flask = "^2.1.1"
charset-normalizer = "^2.1.0"
flake8 = "^4.0.1"

[tool.poetry.dev-dependencies]

[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
--8<---------------cut here---------------end--------------->8---

Thoughts?

Ludo’.