Skip to content

Support Python >= 3.12 and drop support for Python 2.x #1232

@hlongmore

Description

@hlongmore

Feature Request

Trying to install arrow with Python 3.12.3 installed does not work, because (at a minimum) distutils has been removed, but is required by the package six. As Python 2.x is far beyond EOL now, perhaps it is time to support Python >= 3.12 by dropping the six package and thus dropping support for 2.x?

This is the traceback I get trying to install via poetry:

> poetry add arrow
Using version ^1.3.0 for arrow

Updating dependencies
Resolving dependencies... (0.1s)

Package operations: 4 installs, 0 updates, 0 removals

  • Installing six (1.17.0): Failed

  EnvCommandError

  Command ['/home/hlongmore/.cache/pypoetry/virtualenvs/tagflow-c_c9oK7O-py3.12/bin/python', '-W', 'ignore', '-'] errored with the following return code 1, and output: 
  Traceback (most recent call last):
    File "<stdin>", line 7, in <module>
  ModuleNotFoundError: No module named 'distutils'

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions