Skip to content

Generating metadata for package public-repo produced metadata for project name main. #5445

@cikay

Description

@cikay

I am trying to install directly from GitHub by the following command

pipenv install -e git+https://github.com/cikay/public_repo.git@main#egg=public_repo

I got

  WARNING: Generating metadata for package public-repo produced metadata for project name main. Fix your #egg=public-repo fragments.
Discarding git+https://github.com/cikay/public_repo.git#egg=public-repo: Requested main from git+https://github.com/cikay/public_repo.git#egg=public-repo has inconsistent name: expected 'public-repo', but metadata has 'main'
ERROR: Could not find a version that satisfies the requirement public-repo (unavailable) (from versions: none)
ERROR: No matching distribution found for public-repo (unavailable)

When I specify egg=main It installs. Why I have to specify package name as the same with the branch name?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type: Question ❔This is a question or a request for support.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions