This repository has been archived by the owner on Jan 30, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build/pkgs/ipywidgets: Patch out dependency on widgetsnbextension, ju…
…pyterlab_widgets
- Loading branch information
Matthias Koeppe
committed
Feb 2, 2021
1 parent
a8035aa
commit fab1cb0
Showing
1 changed file
with
39 additions
and
0 deletions.
There are no files selected for viewing
39 changes: 39 additions & 0 deletions
39
...d/pkgs/ipywidgets/patches/0001-setup.py-Move-widgetsnbextension-jupyterlab_widgets-.patch
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,39 @@ | ||
From 1cde8e2dd13a7b2403b69f61f2390b179e2a5fea Mon Sep 17 00:00:00 2001 | ||
From: Matthias Koeppe <[email protected]> | ||
Date: Tue, 2 Feb 2021 12:46:04 -0800 | ||
Subject: [PATCH] setup.py: Move widgetsnbextension, jupyterlab_widgets from | ||
install_requires to extras_require | ||
|
||
--- | ||
setup.py | 8 ++------ | ||
1 file changed, 2 insertions(+), 6 deletions(-) | ||
|
||
diff --git a/setup.py b/setup.py | ||
index e544267a..07470e0b 100644 | ||
--- a/setup.py | ||
+++ b/setup.py | ||
@@ -115,19 +115,15 @@ install_requires = setuptools_args['install_requires'] = [ | ||
# Requiring nbformat to specify bugfix version which is not required by | ||
# notebook. | ||
'nbformat>=4.2.0', | ||
- # TODO: Dynamically add this dependency | ||
- # only if notebook 4.x is installed in this | ||
- # interpreter, to allow ipywidgets to be | ||
- # installed on bare kernels. | ||
- 'widgetsnbextension~=3.5.0' | ||
] | ||
|
||
extras_require = setuptools_args['extras_require'] = { | ||
':python_version<"3.3"' : ['ipython>=4.0.0,<6.0.0'], | ||
':python_version>="3.3"': ['ipython>=4.0.0'], | ||
- ':python_version>="3.6"': ['jupyterlab_widgets>=1.0.0'], | ||
'test:python_version=="2.7"': ['mock'], | ||
'test': ['pytest>=3.6.0', 'pytest-cov'], | ||
+ 'notebook': ['widgetsnbextension~=3.5.0'], | ||
+ 'jupyterlab': ['widgetsnbextension~=3.5.0', 'jupyterlab_widgets>=1.0.0'], | ||
} | ||
|
||
if 'setuptools' in sys.modules: | ||
-- | ||
2.28.0 | ||
|