Skip to content
This repository was archived by the owner on Nov 9, 2026. It is now read-only.
This repository was archived by the owner on Nov 9, 2026. It is now read-only.

Feat: Support restricting package installation by datetime upper bound #135

Open

Description

@notatallshaw

Since PEP 700 simple index index API 1.1 and above has supported the field upload-time. It would be useful for many use cases to support restricting what packages are installed by specifying an upper limit on this upload-time.

Particularly because:

  1. Libraries are strongly discouraged from providing upper bounds
  2. Metadata can not be changed once uploaded to PyPI
  3. Leading to the problem: If library A depends on library B and B releases a version that is incompatible with A, then a new version of A can get released that excludes the incompatible version of B, but this can mean that package installer might just backtrack on A and install functionality incompatible versions of A and B even though their metadata doesn't describe it

Therefore installing older requirements can sometimes be significantly helped by adding an upper limit on upload-time.

Activity

  1. wolfv commented on Jan 5, 2024

    @wolfv
    Member

    Is this also how the pypi timemachine works? Would definitely be a cool feature! (https://pypi.org/project/pypi-timemachine/)

  2. notatallshaw commented on Jan 5, 2024

    @notatallshaw
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions