[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#69997: Should ‘guix import pypi’ get dependencies from pyproject fil
From: |
Lars-Dominik Braun |
Subject: |
bug#69997: Should ‘guix import pypi’ get dependencies from pyproject files? |
Date: |
Wed, 27 Mar 2024 07:49:27 +0100 |
Hey Ludo,
> Should ‘guix import pypi’ attempt to get dependency information from
> ‘pyproject.toml’, in addition to ‘requirements.txt’ and wheel ‘METADATA’
> as it already does?
yes it should. It’s the next logical step after having a
pyproject-build-system. The python-team branch (not sure whether Ricardo
had time to merge it yet) adds a TOML parser to Guix as a first step.
> 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:
The file is always a trampoline to other build systems, like setuptools
or poetry. That’s (unfortunately) by design, see the [build-system]
section.
> [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"
That’s unfortunate, because the
specification includes a common field for dependencies:
https://packaging.python.org/en/latest/specifications/pyproject-toml/#dependencies-optional-dependencies
I guess we’ll have to deal with these idiosyncracies as well :(
Lars
- bug#69997: Should ‘guix import pypi’ get dependencies from pyproject files?, Ludovic Courtès, 2024/03/25
- bug#69997: Should ‘guix import pypi’ get dependencies from pyproject files?, Sharlatan Hellseher, 2024/03/25
- bug#69997: Should ‘guix import pypi’ get dependencies from pyproject files?, Tanguy LE CARROUR, 2024/03/26
- bug#69997: Should ‘guix import pypi’ get dependencies from pyproject files?, Ludovic Courtès, 2024/03/26
- bug#69997: Should ‘guix import pypi’ get dependencies from pyproject files?, Tanguy LE CARROUR, 2024/03/26
- bug#69997: Should ‘guix import pypi’ get dependencies from pyproject files?, Tanguy LE CARROUR, 2024/03/26
- bug#69997: Should ‘guix import pypi’ get dependencies from pyproject files?, Ludovic Courtès, 2024/03/28
- bug#69997: Should ‘guix import pypi’ get dependencies from pyproject files?, Tanguy LE CARROUR, 2024/03/29
- bug#69997: Should ‘guix import pypi’ get dependencies from pyproject files?, Ludovic Courtès, 2024/03/29
- bug#69997: Should ‘guix import pypi’ get dependencies from pyproject files?, Tanguy LE CARROUR, 2024/03/29
bug#69997: Should ‘guix import pypi’ get dependencies from pyproject files?,
Lars-Dominik Braun <=