Skip to content

Deprecate iso8601 module #8080

@wongcht

Description

@wongcht

Checklist

  • I have checked the issues list
    for similar or identical enhancement to an existing feature.
  • I have checked the pull requests list
    for existing proposed enhancements.
  • I have checked the commit log
    to find out if the if the same enhancement was already implemented in the
    main branch.
  • I have included all related issues and possible duplicate issues in this issue
    (If there are none, check this box anyway).

Related Issues and Possible Duplicates

Related Issues

  • None

Possible Duplicates

  • None

Brief Summary

celery.utils.iso8601 is historic module which .parse_iso8601() can be replaced by datetime.datetime.fromisoformat() as Python 3.7 or above is now supported.

Suggest deprecate this module and use datetime.datetime.fromisoformat() internally.

Design

Architectural Considerations

None

Proposed Behavior

  • iso8601 module is still usable before v6.0.0, but with addition of deprecation warning
  • remove iso8601 module in v6.0.0
  • replace all usage of parse_iso8601() in the library by datetime.datetime.fromisoformat, with compatibility of Python 3.7 to 3.11

Proposed UI/UX

N/A

Diagrams

N/A

Alternatives

None

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions