Skip to content

Easy way to dump out License info for everything (including pypi dependencies) #5473

@oxinabox

Description

@oxinabox

It would be good to have a single consistent way to dump out the licence names for all dependencies.
Right now for conda dependencies it is included in the pixi.lock
but not for pypi dependencies.

Pixi.lock

It seems that for any dependencies from pypi there is never any lisence information put in the pixi.lock.
Where as it is normally there for conda

- pypi: https://files.pythonhosted.org/packages/3a/37/b5f699aa7f69891ba55fbf1315f475914d8064a92f5300a63b8a35991a1e/obscure_stats-0.4.0-py3-none-any.whl
  name: obscure-stats
  version: 0.4.0
  sha256: fa71442854be539fe3d6802a8cb7234773260d852b3e681745181d7102033914
  requires_dist:
  - numpy>=2.0.0,<3.0.0
  - scipy>=1.9.1,<2.0.0
  requires_python: '>=3.10,<3.14'

vs

- conda: https://conda.anaconda.org/conda-forge/linux-64/openjpeg-2.5.4-h55fea9a_0.conda
  sha256: 3900f9f2dbbf4129cf3ad6acf4e4b6f7101390b53843591c53b00f034343bc4d
  md5: 11b3379b191f63139e29c0d19dee24cd
  depends:
  - __glibc >=2.17,<3.0.a0
  - libgcc >=14
  - libpng >=1.6.50,<1.7.0a0
  - libstdcxx >=14
  - libtiff >=4.7.1,<4.8.0a0
  - libzlib >=1.3.1,<2.0a0
  license: BSD-2-Clause
  license_family: BSD
  purls: []
  size: 355400
  timestamp: 1758489294972

But i can see that on the PyPI website they do have liscense infromation captured.
Under "Unverified details" then "Meta" in the sidebar.
eg: https://pypi.org/project/obscure_stats/

It would be good to include those too.
It is useful information to have

Mentioned in #4715 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions