Skip to content

Rethink how we package typeshed #5307

Closed
@emmatyping

Description

@emmatyping

Currently, we have a rather complicated method of finding data files. The current method we use to distribute typeshed is ripe for issues with finding the files.

I think we should stop playing whack-a-mole with issues and ship typeshed differently. Here are two ideas:

  1. Ship typeshed as a subpackage of mypy, while still keeping it a module. I originally proposed this in Move to using package_data to install typeshed and xml files. #4143 but was hung up on the symlinks in typeshed (which no longer exist). This would involve:
    • moving the submodule into the mypy package.
    • updating setup.py to use package_data
    • adding these files to MANIFEST.in to be picked up in sdists
  2. Release typeshed as its own package and pin to a particular version. This was attempted in Add setup.py typeshed#2025 but it was abandoned.

I have no particular preference for one over the other, but I think both are better than the current method.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions