Closed
Description
Environment details
- OS type and version: Alpine Linux edge
- Python version: 3.8
- pip version: Irrelevant, pure system packages used
google-api-core
version: 1.16.0
Issue
I'm trying to run the tests with the end goal being packaging this for Alpine Linux.
All the dependencies are installed and I'm running the tests with PYTHONPATH="$PWD/build/lib" pytest
so I can run the tests without having the package installed yet.
I'm probably just doing something wrong, but every test file fails with the following:
_____________________________________________ ERROR collecting tests/unit/test_bidi.py ______________________________________________
tests/unit/test_bidi.py:24: in <module>
from google.api_core import bidi
build/lib/google/api_core/__init__.py:23: in <module>
__version__ = get_distribution("google-api-core").version
/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:482: in get_distribution
dist = get_provider(dist)
/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:358: in get_provider
return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]
/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:901: in require
needed = self.resolve(parse_requirements(requirements))
/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:787: in resolve
raise DistributionNotFound(req, requirers)
E pkg_resources.DistributionNotFound: The 'google-api-core' distribution was not found and is required by the application