Skip to content

pipenv install add spurious "markers": "python_version == '3'" for a specific library since v2023.12.1, how to fix the library? #6115

@bakert

Description

@bakert

Issue description

pipenv install better-profanity adds "markers": "python_version == '3'", to Pipfile.lock. This started happening with pipenv v2023.12.1. The library has not changed, so this comes from a pipenv change. I would like to understand what to fix in better-profanity to avoid this behavior.

Expected result

pipenv install better-profanity makes an entry in Pipfile.lock that is usable

Actual result

            "markers": "python_version == '3'",

appears in Pipfile.lock

Steps to replicate

$ pipenv install better-profanity
$ grep -A8 better-profanity Pipfile.lock
        "better-profanity": {
            "hashes": [
                "sha256:8a6fdc8606d7471e7b5f6801917eca98ec211098262e82f62da4f5de3a73145b",
                "sha256:bd4c529ea6aa2db1aaa50524be1ed14d0fe5c664f1fd88c8bc388c7e9f9f00e8"
            ],
            "index": "pypi",
            "markers": "python_version == '3'", <<<< this is the bad line
            "version": "==0.7.0"
        },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions