Skip to content
This repository has been archived by the owner on Jan 30, 2023. It is now read-only.

Commit

Permalink
build/pkgs/ipywidgets: Patch out dependency on widgetsnbextension, ju…
Browse files Browse the repository at this point in the history
…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.
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

0 comments on commit fab1cb0

Please sign in to comment.