Title: installing google-cloud-python libraries leads to accidentally installing release candidates of dependencies · Issue #13585 · googleapis/google-cloud-python · GitHub
Open Graph Title: installing google-cloud-python libraries leads to accidentally installing release candidates of dependencies · Issue #13585 · googleapis/google-cloud-python
X Title: installing google-cloud-python libraries leads to accidentally installing release candidates of dependencies · Issue #13585 · googleapis/google-cloud-python
Description: Determine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue Context Installing release versions of google-cloud-python libraries with current pip leads to accidenta...
Open Graph Description: Determine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue Context Installing release versions of google-cloud-python libra...
X Description: Determine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue Context Installing release versions of google-cloud-python libra...
Opengraph URL: https://github.com/googleapis/google-cloud-python/issues/13585
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"installing google-cloud-python libraries leads to accidentally installing release candidates of dependencies","articleBody":"### Determine this is the right repository\n\n- [x] I determined this is the correct repository in which to report this bug.\n\n### Summary of the issue\n\n**Context**\n\nInstalling release versions of google-cloud-python libraries with current pip leads to accidentally installing release candidates of indirect dependencies.\n\nAs an example, if I do `pip install google-cloud-kms==3.4.0` I currently end up getting grpcio version 1.71.0rc2 -- a release candidate. \n\nThis behaviour is a result of \n* pip fixing its pre-release specifier behaviour: _\"Including a pre-release version with these specifiers now implies accepting pre-releases (e.g., \u003c2.0dev can include 1.0rc1)\"_ (https://github.com/pypa/pip/blob/main/NEWS.rst#2501-2025-02-09)\n* All google-cloud-python libraries using dependency specifiers like `googleapis-common-protos\u003c2.0.0dev` -- this is incorrect and should never include \"dev\"\n\n**Expected Behavior:**\n\n* Installing google-cloud-python projects should not lead to installing release candidates of indirect dependencies\n* pre-release version specifiers (such as \"X.Y.Zdev\") should not be used when defining library dependencies\n\n\n**Actual Behavior:**\n\ngoogle-cloud-kms projects use pre-release version specifiers (specifically `\u003cX.Y.Zdev`) in their dependencies. This leads to accidentally installing release candidates of indirect dependencies.\n\n### API client name and version\n\n_No response_\n\n### Reproduction steps:\n\n```bash\n# start with empty virtualenv. Upgrade to current pip\npip install -U pip \n# Install a release version of a google-cloud-python package\npip install google-cloud-kms==3.4.0\n```\n\n### Reproduction steps: actual results\n\n```bash\n$ pip show grpcio | grep Version\nVersion: 1.71.0rc2\n```\n\n\n### Reproduction steps: expected results\n\n```bash\n$ pip show grpcio | grep Version\nVersion: 1.70.0\n```\n\n\n### OS \u0026 version + platform\n\n_No response_\n\n### Python environment\n\nPython 3.12.8\n\n### Python dependencies\n\nPackage Version\n------------------------ ---------\npip 25.0.1\n\n\n### Additional context\n\n_No response_","author":{"url":"https://github.com/jku","@type":"Person","name":"jku"},"datePublished":"2025-03-03T14:49:00.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/13585/google-cloud-python/issues/13585"}
| 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:61ef818c-a71e-2d8d-10ba-a74f5bf34857 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A812:170119:8E0E7A:C14407:6A4C889F |
| html-safe-nonce | 3299ec2d505cf9eae8e8f19804c34fdbfb816058b36261a8fb9e7bc6510e5569 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODEyOjE3MDExOTo4RTBFN0E6QzE0NDA3OjZBNEM4ODlGIiwidmlzaXRvcl9pZCI6IjQzNzM1ODk5NzI2NzE1NjM5MzUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | a23f4ce96336f5faef4db03d4984f7af4abe1929f0832f1a874e41bc32abf716 |
| hovercard-subject-tag | issue:2891467092 |
| 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/google-cloud-python/13585/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bf1bd743e57d6c4914f7496654aec7bbd9ca8b355c2f9f7e5574459e106475ed/googleapis/google-cloud-python/issues/13585 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bf1bd743e57d6c4914f7496654aec7bbd9ca8b355c2f9f7e5574459e106475ed/googleapis/google-cloud-python/issues/13585 |
| og:image:alt | Determine this is the right repository I determined this is the correct repository in which to report this bug. Summary of the issue Context Installing release versions of google-cloud-python libra... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jku |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3d11bb817438277de2a940854450e83a7d32b6aeb5014e9e6b00a6423900251c |
| turbo-cache-control | no-preview |
| go-import | github.com/googleapis/google-cloud-python git https://github.com/googleapis/google-cloud-python.git |
| octolytics-dimension-user_id | 16785467 |
| octolytics-dimension-user_login | googleapis |
| octolytics-dimension-repository_id | 16316451 |
| octolytics-dimension-repository_nwo | googleapis/google-cloud-python |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 16316451 |
| octolytics-dimension-repository_network_root_nwo | googleapis/google-cloud-python |
| 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 | 7a2dede45637df6b92ddcfe2a557e67d4b5854ae |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width