8000 Remove deprecated use of pkg_resources API · Issue #1881 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content
Remove deprecated use of pkg_resources API #1881
Closed
@Peque

Description

@Peque

The setuptools page states that the use of pkg_resources is deprecated.

This can lead to warnings like:

image

It seems the package is only imported for using parse_version. In the same setuptools page, they suggest:

[...] Some useful APIs are also provided by packaging (e.g. requirements and version parsing). [...]

So in order to avoid this warnings (and possibly future failures), parse_version should be replaced by its packaging alternative.

The packaging package is already installed with test dependencies so it will not add any new extra "weight", but it should be added explicitly to the setup.py file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0