Skip to content

Conversation

@max-moser
Copy link
Contributor

This PR should've been part of #384 but was overlooked.
It adds support for parsing the App-{RDM,ILS} dependency version from pyproject.toml.

@max-moser max-moser force-pushed the mm/version-check-fix branch from 48957ea to b555eb2 Compare March 1, 2025 15:09
import os
import re

import tomli
Copy link
Contributor Author

Choose a reason for hiding this comment

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

tomllib is part of the standard lib starting with python 3.11, but until then we can use tomli which is a dependency from somewhere (pipfile?)

Copy link
Member

Choose a reason for hiding this comment

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

Maybe we add a direct dependency to tomllib with a Python version specifier? On my machine I get just a toml dependency when e.g. running on Python 3.9:

toml v0.10.2
└── pipfile v0.0.2 [requires: toml *]
    └── invenio-cli v1.6.0 [requires: pipfile >=0.0.2]

Copy link
Contributor Author

Choose a reason for hiding this comment

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

right, i actually forgot that you can add dependencies for specific python versions only

Copy link
Contributor Author

Choose a reason for hiding this comment

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

* previously, only `Pipfile` was considered, which only supports
  `pipenv` but not `uv`
@max-moser max-moser force-pushed the mm/version-check-fix branch from b555eb2 to 454b480 Compare March 1, 2025 15:12
Copy link
Contributor Author

Choose a reason for hiding this comment

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

merged ils.py and rdm.py into this one

@max-moser max-moser added this to vNext Mar 27, 2025
@max-moser max-moser moved this to Triage in vNext Mar 27, 2025
@max-moser
Copy link
Contributor Author

briefly discussed with @ntarocco ✔️

@max-moser max-moser merged commit c636df5 into inveniosoftware:master Mar 27, 2025
2 checks passed
@github-project-automation github-project-automation bot moved this from Triage to To release in vNext Mar 27, 2025
@max-moser max-moser deleted the mm/version-check-fix branch March 27, 2025 16:03
@tmorrell tmorrell moved this from To release to Released ✔ in vNext Mar 28, 2025
@utnapischtim utnapischtim removed this from vNext Aug 26, 2025
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