Skip to content

pip upgrade from github does not upgrade package with same version number anymore #9397

@SbTrBt

Description

@SbTrBt

Environment

  • pip version: 20.3.3
  • Python version: 3.6.5
  • OS: Win10

Description

I am updating a github repo on a regular basis without updating the version number.

I have been running the below command for many years to update my packages with an online repo:
pip install git+git://my_githubrepo_url.git --upgrade

This command was updating my python local distribution with the online repo content even if the version number were the same.

Recently, after updating my pip version (I didn't spotted the precise version that changed the behavior), I see that the behavior is not the same anymore (pip 9.0.0 has the above behavior).

Now, it seems the above command only update my package if the version number is different so if the need for an upgrade is "explicit", while before --upgrade seemed rather implicitly considering that the update from source was needed.

Expected behavior

Is there any optional command in the updated version of pip that could help me update my local package even if version number is the same?

I thought of too solution but both seems dirty:

  • pip uninstall + pip install
  • pip install --upgrade --force-reinstall (but reinstall all dependencies so quite heavy)

How to Reproduce

Paste the output of the steps above, including the commands themselves and
pip's output/traceback etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions