Skip to content

requirements-txt-fixer doesn't handle new pkg_resources==0.0.0 #1030

Closed

Description

@ericfrederich

Perhaps something changed on PyPI but instead of Ubuntu 20.04 generating pkg-resources==0.0.0 it now generates npkg_resources==0.0.0 which should also be ignored.

Activity

  1. added a commit that references this issue on Mar 26, 2024
    eadcce2
  2. ericfrederich commented on Mar 26, 2024

    @ericfrederich
    ContributorAuthor

    It's easy to demonstrate this using Docker to run the old OS.

    What you'll see at the end when you run the below command is pkg_resources==0.0.0 not pkg-resources==0.0.0

    docker run --rm ubuntu:20.04 \
        /bin/bash -c \
        'apt update && apt upgrade -y && apt install -y python3 python3-venv &&
        python3 -m venv /tmp/delete-me-venv &&
        source /tmp/delete-me-venv/bin/activate &&
        pip install --upgrade pip wheel &&
        echo requirements... &&
        pip freeze'
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

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions