python-poetry / python-poetry/poetry

`poetry cache clear` should be able to clear all information for a single package

Open
#4,438 4 comments 10 reactions 1 assignee View on GitHub

@Secrus is already working on this.

Since Sep 25, 2024.

area/sources area/ux kind/feature
Dominant language
Python
Stars
34.3k
Forks
2.5k
Avg merge
2d 19h
Merged PRs (30d)
30

Description

  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

Thanks for making an awesome product.

In my project, I split my code to several packages, which are published to pypi. The problem is after I upload a new version of a package on pypi, poetry doesn't know that the package has been updated and throw SolverProblemError (depends on package X which doesn't match any versions) if I use the updated package somewhere else.

I think this may be due caching. Clearing poetry cache: poetry cache clear pypi --all does help me solve the problem. However, it's so slow as poetry has to repopulate the cache for all other packages.

I think it would be great to have:

  • the ability to invalidate/clear cache of specific packages, or
  • automatically fetch new version of a package if the requested version is newer than the current one in the cache or when it fails to resolve dependencies.

Thanks!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.