diff --git a/aiidalab_qe/steps.py b/aiidalab_qe/steps.py index 03a8dac03..537b67bed 100644 --- a/aiidalab_qe/steps.py +++ b/aiidalab_qe/steps.py @@ -728,9 +728,7 @@ def _check_resources(self): return # No code selected, nothing to do. num_cpus = self.resources_config.num_cpus.value - on_localhost = ( - load_code(self.pw_code.value).computer.get_hostname() == "localhost" - ) + on_localhost = load_node(self.pw_code.value).computer.hostname == "localhost" if self.pw_code.value and on_localhost and num_cpus > 1: self._show_alert_message( "The selected code would be executed on the local host, but " diff --git a/setup.cfg b/setup.cfg index 55c212794..965cfc36d 100644 --- a/setup.cfg +++ b/setup.cfg @@ -20,15 +20,15 @@ project_urls = [options] packages = find: install_requires = - Jinja2~=2.11.3 - aiida-core~=1.0 - aiida-quantumespresso~=3.5 + Jinja2~=3.0 + aiida-core~=2.0 + aiida-quantumespresso~=4.0 aiidalab-qe-workchain@https://github.com/aiidalab/aiidalab-qe/releases/download/v22.09.1/aiidalab_qe_workchain-1.0-py3-none-any.whl aiidalab-widgets-base~=1.4.1 - filelock~=3.3.0 + filelock~=3.8 importlib-resources~=5.2.2 widget-bandsplot~=0.2.8 -python_requires = >=3.7 +python_requires = >=3.8 [options.extras_require] dev = diff --git a/src/setup.cfg b/src/setup.cfg index b8714a7a4..b70280f60 100644 --- a/src/setup.cfg +++ b/src/setup.cfg @@ -18,8 +18,8 @@ project_urls = [options] packages = find: install_requires = - aiida-core~=1.0 - aiida-quantumespresso~=3.2 + aiida-core~=2.0 + aiida-quantumespresso~=4.0 python_requires = >=3.7 [flake8]