Skip to content

Commit

Permalink
dependencies: update for invenio-app-rdm v12
Browse files Browse the repository at this point in the history
  • Loading branch information
fenekku authored and max-moser committed Aug 1, 2024
1 parent 6cabfca commit 2c59ede
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions invenio_cli/commands/requirements.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,10 @@ def check_pipenv_installed(cls):
@classmethod
def check_dev(cls):
"""Steps to check the development pre-requisites."""
if rdm_version()[0] >= 11:
if rdm_version()[0] >= 12:
node_version = 18
npm_version = 10
elif rdm_version()[0] >= 11:
node_version = 16
npm_version = 7
else:
Expand All @@ -207,12 +210,12 @@ def check_dev(cls):
steps = [
FunctionStep(
func=cls.check_node_version,
args={"major": node_version, "exact": True},
args={"major": node_version},
message="Checking Node version...",
),
FunctionStep(
func=cls.check_npm_version,
args={"major": npm_version, "exact": True},
args={"major": npm_version},
message="Checking NPM version...",
),
FunctionStep(
Expand All @@ -235,7 +238,7 @@ def check(cls, development=False):
steps = [
FunctionStep(
func=cls.check_python_version,
args={"major": 3, "minor": 6},
args={"major": 3, "minor": 9},
message="Checking Python version...",
),
FunctionStep(
Expand Down
2 changes: 1 addition & 1 deletion invenio_cli/helpers/cookiecutter_wrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(self, flavour, **kwargs):
or "https://github.com/inveniosoftware/cookiecutter-invenio-rdm.git"
)
self.template_name = self.extract_template_name(self.template)
self.checkout = self.checkout or "v11.0"
self.checkout = self.checkout or "v12.0"

if self.flavour.upper() == "ILS":
self.template = (
Expand Down

0 comments on commit 2c59ede

Please sign in to comment.