Skip to content

non-downloadable/installed dependencies shouldn't fail upgrades #2502

Closed
@qwcode

Description

@qwcode

if some pkgb depends on pkga (i.e. has it specified in install_requires), an upgrade of pkgb shouldn't fail if a download isn't found for pkga (e.g. if it's not in PyPI), if pkga is installed locally.

to recreate, create pkga and pkgb in local directories with setup.py's like so

pkga/setup.py

from setuptools import setup
setup(name='pkga',
      version='0.1')

pkgb/setup.py

from setuptools import setup
setup(name='pkgb',
      version='0.1',
      install_requires=['pkga'])

and run

> pip install -e pkga/
> pip install -U -e pkgb/
Could not find any downloads that satisfy the requirement pkga in ./pkga (from pkgb==0.6.1)
Collecting pkga (from pkgb==0.6.1)
  No distributions at all found for pkga in ./pkga (from pkgb==0.6.1)

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: upgradeThe logic of upgrading packagesauto-lockedOutdated issues that have been locked by automationtype: bugA confirmed bug or unintended behavior

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions