Skip to content

Commit

Permalink
ui_web: optional to prevent blinker issue on WSL
Browse files Browse the repository at this point in the history
  • Loading branch information
geritwagner committed Apr 29, 2024
1 parent 52f1534 commit 0838e1f
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 18 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
10 changes: 5 additions & 5 deletions colrev/ui_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -345,10 +345,10 @@ def dashboard(
verbose: bool,
) -> None:
"""Allows to track project progress through dashboard"""
import colrev.ui_web.dashboard
import colrev.packages.ui_web.dashboard

try:
colrev.ui_web.dashboard.main()
colrev.packages.ui_web.dashboard.main()
except colrev_exceptions.NoRecordsError:
print("No records imported yet.")
except colrev_exceptions.CoLRevException as exc:
Expand Down Expand Up @@ -2583,7 +2583,7 @@ def settings(
# review_manager = colrev.review_manager.ReviewManager(
# force_mode=True, verbose_mode=verbose
# )
# settings_operation = colrev.ui_web.settings_editor.SettingsEditor(
# settings_operation = colrev.packages.ui_web.settings_editor.SettingsEditor(
# review_manager=review_manager
# )
# settings_operation.open_settings_editor()
Expand Down Expand Up @@ -2815,12 +2815,12 @@ def show( # type: ignore
# """CoLRev web interface."""

#
# import colrev.ui_web.settings_editor
# import colrev.packages.ui_web.settings_editor

# review_manager = colrev.review_manager.ReviewManager(
# force_mode=force, verbose_mode=verbose
# )
# se_instance = colrev.ui_web.settings_editor.SettingsEditor(
# se_instance = colrev.packages.ui_web.settings_editor.SettingsEditor(
# review_manager=review_manager
# )
# se_instance.open_settings_editor()
Expand Down
25 changes: 13 additions & 12 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -74,11 +74,11 @@ number-parser = "^0.3.2"
pymupdf = "^1.22.0"
"pdfminer.six" = "^20220524"
PyPDF2 = "^1.28.6"
dash = "^2.11.1"
pyalex = "^0.10"
crossrefapi = "^1.5.0"
semanticscholar = "^0.6.0"
m2r = "^0.3.1"
dash = {version = "^2.11.1", optional = true }
Sphinx = {version = "^5.2.3", optional = true }
sphinx-autodoc-typehints = {version = "^1.19.4", optional = true }
sphinx-click = {version = "^4.3.0", optional = true }
Expand All @@ -98,6 +98,7 @@ docutils = "!=0.21.post1"
toml = "^0.10.2"

[tool.poetry.extras]
web_ui = ["dash"]
docs = ["Sphinx", "sphinx-autodoc-typehints", "sphinx-click", "sphinx-rtd-theme", "sphinxcontrib.datatemplates", "sphinx_collapse", "repoze-sphinx-autointerface"]
dev = ["pylint", "pytest", "coverage", "types-click", "pytest-mock", "requests-mock", "pytest-skip-slow"]

Expand Down

0 comments on commit 0838e1f

Please sign in to comment.