Skip to content

Replace deprecated pkg_resources with packaging module #744

@jlu5

Description

@jlu5

Currently Variety is using pkg_resources to compare versions for upgrading. This module is deprecated and we should switch to the packaging library instead (from packaging.version import parse)

>>> import pkg_resources
<stdin>:1: DeprecationWarning: pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html

Debian bug for reference: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1083982

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions