Skip to content

Replace setuptools runtime dependency with packaging #337

Closed

Description

@flying-sheep

You import pkg_resources, which is deprecated. For object oriented handling of versions, you should use packaging.version instead.

grafik

Activity

  1. anisse commented on Aug 29, 2023

    @anisse

    In addition to the warning in the docs, it generates a warning in requirements.txt when using generating it with pip-compile :

    # The following packages are considered to be unsafe in a requirements file:
    setuptools==68.1.2 \
        --hash=sha256:3d4dfa6d95f1b101d695a6160a7626e15583af71a5f52176efa5d39a054d475d \
        --hash=sha256:3d8083eed2d13afc9426f227b24fd1659489ec107c0e86cec2ffdde5c92e790b
        # via nodeenv
    
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