Skip to content

Unnecessary pip constraint causing build failures #657

@woodruffw

Description

@woodruffw

Hi there, this is an upstream packaging report for charm-tools version 3.0.6.

It looks like you're currently constraining pip < 23, which will make your package uninstallable on any host with an upgraded pip (specifically, one released this year).

Example failure: Homebrew/homebrew-core#131661

And the actual failure:

pkg_resources.ContextualVersionConflict: (pip 23.0.1 (/opt/homebrew/Cellar/charm-tools/3.0.6/libexec/lib/python3.11/site-packages), Requirement.parse('pip<23,>=1.5.4'), {'charm-tools'})

And a permalink to charm-tools' own constraint:

'pip>=1.5.4,<23',

Unless there's a specific reason why you're listing pip in your install_requires, my recommendation would be to omit it entirely: the Python runtime is meant to carry it. If for whatever reason it doesn't and you absolutely do need to list it, leaving it open ended on the upper bound is probably fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions