Skip to content

Remove dependency on six #15845

Closed
Closed

Description

@bw-yuhogg

Describe the solution you'd like
We added a dependency on six in googleapis/python-ndb#912 because without it, importing the module fails. But it's only needed from the days when we supported Python 2.7 (which we no longer do) and so we'd rather get rid of it.

This will require both:

a) removing it from setup.py and the testing constraints files
b) Rewriting all code that imports six

The latter can likely be accomplished in many cases by inlining the definitions and removing anything that only works/is needed on Python 2

Additional context

See also googleapis/python-ndb#911 where it was first noticed that we had an undeclared dependency

Activity

  1. added
    good first issueThis issue is a good place to started contributing to this repository.
    api: datastoreIssues related to the Datastore API.
    and removed
    api: datastoreIssues related to the Datastore API.
    on Sep 14, 2023
  2. added a commit that references this issue on Sep 15, 2023
  3. chalmerlowe commented on Mar 2, 2026

    @chalmerlowe
    Contributor

    This issue was moved from the following repo as part of the monorepo migration: googleapis/python-ndb

  4. parthea commented on Apr 28, 2026

    @parthea
    Contributor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: datastoreIssues related to the Datastore API.good first issueThis issue is a good place to started contributing to this repository.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions