Skip to content

micropip.freeze imports field for PyPi dependencies is insufficient #207

@juntyr

Description

@juntyr

micropip.freeze currently checks for the non-standard top_level.txt file to fill the imports field. This has a few issues:

  1. When the file is missing, no imports are included
  2. For namespace packages, the top-level imports is just the name of the namespace, but we want the imports field to name the package, e.g. namespace.package instead

A brief online search didn't reveal any good solutions:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions