python-poetry / python-poetry/poetry

poetry show --outdated always lists mypy github repo

Open
#7,166 8 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

area/show kind/bug status/triage
Dominant language
Python
Stars
34.3k
Forks
2.5k
Avg merge
2d 19h
Merged PRs (30d)
30

Description

  • I am on the latest stable Poetry version, installed using a recommended method.
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have consulted the FAQ and blog for any relevant entries or release notes.
  • If an exception occurs when executing a command, I executed it again in debug mode (-vvv option) and have included the output below.

Issue

I have added mypy to my project as a github dependency:

mypy = {git = "git@github.com:python/mypy.git"}

When I check for outdated packages, Poetry always lists mypy. For example:

$ poetry show --outdated
mypy 1.0.0+dev.695ea3017fee084c9d2ec17d9b28f8af905e3b63 695ea30

That is already the HEAD version of mypy, and the Poetry update command (correctly) does nothing:

$ poetry update
Updating dependencies
Resolving dependencies... (3.3s)

Writing lock file

No dependencies to install or update

I can only speculate as to why the show command thinks this dependency is outdated. Perhaps it's because the mypy project reports a pre-release version; perhaps it's because they use a git commit in their version number, which has unstable ordering. In any case, I expect show --outdated to agree with update as to whether an update exists.

This is my first use of a github dependency, so it's possible that this is expected behavior, but I could not find a reference to the behavior in the Poetry docs or issue tracker.

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.

Research direction

Reproduce the behavior with the linked pyproject.toml, the GitHub-based mypy dependency, and Poetry 1.3.0 using both poetry show --outdated and poetry update. Compare how each command evaluates the current Git revision and determine what outcome makes the commands agree.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, github, python
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.