Skip to content

Conversation

@max-moser
Copy link
Contributor

This fixes the invenio-cli check-requirements being broken when using pipenv (Pipfile).

def _from_pipfile(dep_name):
"""Parse the stated dependency from the ``Pipfile``."""
parsed = Pipfile.load(filename="./Pipfile")
version = (parsed.data["default"].get(dep_name, {}).get("version", ""),)
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the trailing comma created a tuple where we only want a string

@max-moser max-moser merged commit e94a036 into inveniosoftware:master Mar 31, 2025
2 checks passed
@max-moser max-moser deleted the mm/versions-fix branch March 31, 2025 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants