Skip to content

Tech debt: Use packaging.version instead of deprecated Version classes from distutils #2747

Closed
@allanlewis

Description

@allanlewis

Why is this needed?

This library, as of v2.19.0, causes Python to emit a warning:

DeprecationWarning: distutils Version classes are deprecated. Use packaging.version instead.

The sole use of distutils appears to be in utilities.streaming.compat: https://github.com/aws-powertools/powertools-lambda-python/blob/v2.19.0/aws_lambda_powertools/utilities/streaming/compat.py#L27

Which area does this relate to?

Streaming

Suggestion

The new approach is to depend on packaging and use packaging.version instead of distutils.

Acknowledgment

Metadata

Metadata

Labels

tech-debtTechnical Debt tasks

Type

No type

Projects

Status

Shipped

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions