-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
DX: automatically list
jupyterlab
requirements
- Loading branch information
Showing
4 changed files
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -71,6 +71,7 @@ | |
"indentless", | ||
"ipynb", | ||
"jsonschema", | ||
"jupyterlab", | ||
"linkcheck", | ||
"maxdepth", | ||
"maxsplit", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
"""Update the developer setup when using Jupyter notebooks.""" | ||
|
||
from repoma.utilities.executor import Executor | ||
from repoma.utilities.project_info import get_supported_python_versions | ||
from repoma.utilities.pyproject import add_dependency | ||
|
||
|
||
def main() -> None: | ||
_update_dev_requirements() | ||
|
||
|
||
def _update_dev_requirements() -> None: | ||
if "3.6" in get_supported_python_versions(): | ||
return | ||
hierarchy = ["jupyter", "dev"] | ||
dependencies = [ | ||
"jupyterlab", | ||
"jupyterlab-code-formatter", | ||
"jupyterlab-lsp", | ||
"jupyterlab-myst", | ||
"python-lsp-server[rope]", | ||
] | ||
executor = Executor() | ||
for dependency in dependencies: | ||
executor(add_dependency, dependency, optional_key=hierarchy) | ||
executor.finalize() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters