Skip to content

Poetry not always find latest version from PyPi #3543

@valbendan

Description

@valbendan
  • I am on the latest Poetry version.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option).
  • OS version and name: macOS 11.1
  • Poetry version: 1.1.4

I have no idae with how poetry cache or pypi index works, hence this may be a not bug :)

Issue

Let's say I have two project named p1, p2.

p1 is published on pypi and p2 dependent on p1.

When a new version released for p1(let's say v2.0), I update dependent p1 = ">=2.0,<3.0" to my p2 project.

Then poetry update will complain:

SolverProblemError

    Because p2 depends on p1 (>=2.0,<3.0) which doesn't match any versions, version solving failed.

but poetry run pip install p1==v2.0 works.

If wait some time (about 5 ~30 minutes) after I release p1, poetry update finally will works.

PS: I DO NOT use pypi mirror.

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working as expected

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions