GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — installing google-cloud-python libraries leads to accidentally installing release candidates of dependencies · Issue #13585 · googleapis/google-cloud-python

installing google-cloud-python libraries leads to accidentally installing release candidates of dependencies #13585

New issue
Copy link
New issue
Copy link
Closed
googleapis/gapic-generator-python
#2347
googleapis/gapic-generator-python#2347
Closed
installing google-cloud-python libraries leads to accidentally installing release candidates of dependencies#13585
googleapis/gapic-generator-python
#2347
Copy link
Assignees
parthea
Labels
priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@jku
jku
opened on Mar 3, 2025
Issue body actions

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 accidentally installing release candidates of indirect dependencies.

As 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.

This behaviour is a result of

  • pip fixing its pre-release specifier behaviour: "Including a pre-release version with these specifiers now implies accepting pre-releases (e.g., <2.0dev can include 1.0rc1)" (https://github.com/pypa/pip/blob/main/NEWS.rst#2501-2025-02-09)
  • All google-cloud-python libraries using dependency specifiers like googleapis-common-protos<2.0.0dev -- this is incorrect and should never include "dev"

Expected Behavior:

  • Installing google-cloud-python projects should not lead to installing release candidates of indirect dependencies
  • pre-release version specifiers (such as "X.Y.Zdev") should not be used when defining library dependencies

Actual Behavior:

google-cloud-kms projects use pre-release version specifiers (specifically <X.Y.Zdev) in their dependencies. This leads to accidentally installing release candidates of indirect dependencies.

API client name and version

No response

Reproduction steps:

# start with empty virtualenv. Upgrade to current pip
pip install -U pip 
# Install a release version of a google-cloud-python package
pip install google-cloud-kms==3.4.0

Reproduction steps: actual results

$ pip show grpcio | grep Version
Version: 1.71.0rc2

Reproduction steps: expected results

$ pip show grpcio | grep Version
Version: 1.70.0

OS & version + platform

No response

Python environment

Python 3.12.8

Python dependencies

Package Version


pip 25.0.1

Additional context

No response

Reacted by Anthonios Partheniou

Activity

  1. jku
    added
    triage meI really want to be triaged.
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    on Mar 3, 2025
  2. parthea
    added
    priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.
    and removed
    triage meI really want to be triaged.
    on Mar 3, 2025
  3. parthea
    self-assigned this
    on Mar 3, 2025
  4. parthea
    added a commit that references this issue on Mar 3, 2025

    build: remove dev from post processing scripts (#13588)

    5cb7709
  5. parthea
    closed this as completedin gapic-generator-python#2347on Mar 3, 2025
  6. parthea
    added a commit that references this issue on Mar 4, 2025

    build: remove dev from post processing scripts (#13609)

    350e491
  7. parthea
    added 2 commits that reference this issue on Mar 13, 2025

    fix: resolve issue where pre-release versions of dependencies are ins…

    0c2ba70

    fix: resolve issue where pre-release versions of dependencies are ins…

    ab4fa6e
  8. vchudnov-g
    added a commit that references this issue on Mar 14, 2025

    fix: resolve issue where pre-release versions of dependencies are ins…

    ae9565a
  9. copybara-service
    added a commit that references this issue on Apr 17, 2025

    fix: resolve issue where pre-release versions of protobuf are install…

    38a825f
  10. sreenithi
    added a commit that references this issue on May 7, 2025

    fix: resolve issue where pre-release versions of protobuf are install…

    5618595
  11. parthea
    added a commit that references this issue on Nov 11, 2025

    fix: resolve issues where pre-release versions of dependencies are in…

    218278f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @parthea
    parthea

Labels

priority: p1Important issue which blocks shipping the next release. Will be fixed prior to next release.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.