Skip to content

Commit

Permalink
Release/22.01.0
Browse files Browse the repository at this point in the history
Merge pull request #77 from aiidalab/release/22.01.0
  • Loading branch information
yakutovicha authored Jan 7, 2022
2 parents d3940a2 + 59a9a4d commit 51611df
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:

- name: Install dependencies
run: |
python -m pip install pre-commit
pip install .[pre_commit]
- name: Run pre-commit
run: pre-commit run --all-files || ( git status --short ; git diff ; exit 1 )
2 changes: 1 addition & 1 deletion home/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "v21.05.0"
__version__ = "v22.01.0"
2 changes: 1 addition & 1 deletion home/app_store.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def change_vis_list(self, _=None):
"""This function creates a list of apps to be displayed. Moreover, it creates a parallel list of categories.
After this the page selector update is called."""
self.apps_to_display = [
AiidaLabApp.from_id(app_id) for app_id in self.index["apps"]
AiidaLabApp(app_id, None, None) for app_id in self.index["apps"]
]

if self.only_installed.value:
Expand Down
8 changes: 6 additions & 2 deletions home/utils.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
"""Helpful utilities for the AiiDAlab tools."""

import sys
from importlib import import_module
from importlib.machinery import SourceFileLoader
from os import path

import ipywidgets as ipw
Expand All @@ -18,7 +18,11 @@ def load_widget(name):
def load_start_py(name):
"""Load app appearance from a Python file."""
try:
mod = import_module("apps.%s.start" % name)
# Loading start.py from the app's folder
mod = SourceFileLoader(
"start", path.join(AIIDALAB_APPS, name, "start.py")
).load_module()

appbase = "../" + name
jupbase = "../../.."
notebase = jupbase + "/notebooks/apps/" + name
Expand Down
6 changes: 5 additions & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = aiidalab-home
version = 'v21.05.0'
version = attr: home.__version__
author = The AiiDAlab Team
author_email = aiidalab@materialscloud.org
description = Package for the AiiDAlab Home app.
Expand All @@ -27,6 +27,10 @@ install_requires =
jinja2~=2.11
traitlets~=4.3

[options.extras_require]
pre_commit =
pre-commit==2.15.0

[flake8]
# Adapted from: https://github.com/CasperWA/voila-optimade-client
ignore =
Expand Down
5 changes: 5 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# -*- coding: utf8 -*-
"""This file is required for editable installs of the package."""
from setuptools import setup

setup()

0 comments on commit 51611df

Please sign in to comment.