Title: Don't use `pkg_resources.get_distribution(..).version` · Issue #27 · googleapis/python-api-core · GitHub
Open Graph Title: Don't use `pkg_resources.get_distribution(..).version` · Issue #27 · googleapis/python-api-core
X Title: Don't use `pkg_resources.get_distribution(..).version` · Issue #27 · googleapis/python-api-core
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 fo...
Open Graph 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 w...
X 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 tes...
Opengraph URL: https://github.com/googleapis/python-api-core/issues/27
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Don't use `pkg_resources.get_distribution(..).version`","articleBody":"#### Environment details\r\n\r\n - OS type and version: Alpine Linux edge\r\n - Python version: 3.8\r\n - pip version: Irrelevant, pure system packages used\r\n - `google-api-core` version: 1.16.0\r\n\r\n#### Issue\r\n\r\nI'm trying to run the tests with the end goal being packaging this for Alpine Linux.\r\nAll 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.\r\n\r\nI'm probably just doing something wrong, but every test file fails with the following:\r\n\r\n```\r\n_____________________________________________ ERROR collecting tests/unit/test_bidi.py ______________________________________________\r\ntests/unit/test_bidi.py:24: in \u003cmodule\u003e\r\n from google.api_core import bidi\r\nbuild/lib/google/api_core/__init__.py:23: in \u003cmodule\u003e\r\n __version__ = get_distribution(\"google-api-core\").version\r\n/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:482: in get_distribution\r\n dist = get_provider(dist)\r\n/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:358: in get_provider\r\n return working_set.find(moduleOrReq) or require(str(moduleOrReq))[0]\r\n/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:901: in require\r\n needed = self.resolve(parse_requirements(requirements))\r\n/usr/lib/python3.8/site-packages/pkg_resources/__init__.py:787: in resolve\r\n raise DistributionNotFound(req, requirers)\r\nE pkg_resources.DistributionNotFound: The 'google-api-core' distribution was not found and is required by the application\r\n```","author":{"url":"https://github.com/PureTryOut","@type":"Person","name":"PureTryOut"},"datePublished":"2020-05-06T10:47:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":22},"url":"https://github.com/27/python-api-core/issues/27"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:e5faf288-9f93-6318-61bc-69ff5754d70a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A25E:3C204:E501BB:14EDE4C:6A4E2C9E |
| html-safe-nonce | aef3efbc948773ff5e1beb6b391bd62d8b90e59b7dcb36f5f4c54a2ccd953b01 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBMjVFOjNDMjA0OkU1MDFCQjoxNEVERTRDOjZBNEUyQzlFIiwidmlzaXRvcl9pZCI6IjQwNjczODYxNzYyOTM0NDg4NjIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | ae42e495ef2c83c4a8505f51190c417d2a02f2b3973e8e3133d0f78ae4acfcae |
| hovercard-subject-tag | issue:613224502 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/googleapis/python-api-core/27/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3d4cb396ec375e92d8ebbf52110ced68c4bcf364eccc029e60319fdf76e9e581/googleapis/python-api-core/issues/27 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3d4cb396ec375e92d8ebbf52110ced68c4bcf364eccc029e60319fdf76e9e581/googleapis/python-api-core/issues/27 |
| og:image:alt | 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 w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | PureTryOut |
| hostname | github.com |
| expected-hostname | github.com |
| None | 030096ee0db095447bfe77409d33bfac127ca7128299c58deef27c52eaa1b1f0 |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/python-api-core git https://github.com/googleapis/python-api-core.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 226992456 |
| octolytics-dimension-repository_nwo | googleapis/python-api-core |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 226992456 |
| octolytics-dimension-repository_network_root_nwo | googleapis/python-api-core |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | d9dd20d38f8ae3c4cb6b597807431db300d0bd2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width