Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

google-cloud-secret-manager depends on setuptools but doesn't declare it #374

@awoimbee

Description

@awoimbee

Environment details

  • poetry 1.2 -> stopped adding setuptools to it's venvs
  • python 3.10
  • linux
  • google-cloud-secret-manager version: 2.12.6

Steps to reproduce

Install this package in a venv that doesn't have setuptools (which is every project using poetry >=1.2).

Result:

ImportError while importing test module '/[...]/world-domination.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
/usr/lib/python3.10/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
grand-plans/world-domination.py:10: in <module>
    from google.cloud.secretmanager_v1.services.secret_manager_service import (
../../../.cache/pypoetry/virtualenvs/grand-plans--FsOQqwe-py3.10/lib/python3.10/site-packages/google/cloud/secretmanager_v1/__init__.py:17: in <module>
    from .services.secret_manager_service import (
../../../.cache/pypoetry/virtualenvs/grand-plans--FsOQqwe-py3.10/lib/python3.10/site-packages/google/cloud/secretmanager_v1/services/secret_manager_service/__init__.py:16: in <module>
    from .async_client import SecretManagerServiceAsyncClient
../../../.cache/pypoetry/virtualenvs/grand-plans--FsOQqwe-py3.10/lib/python3.10/site-packages/google/cloud/secretmanager_v1/services/secret_manager_service/async_client.py:27: in <module>
    import pkg_resources
E   ModuleNotFoundError: No module named 'pkg_resources'

Metadata

Metadata

Assignees

No one assigned

    Labels

    api: secretmanagerIssues related to the googleapis/python-secret-manager API.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions