Skip to content

Commit 5de36d4

Browse files
Clean requirements (#10)
* Change constrain on jupyterlab Bump to version 0.1.3 * Remove JupyterLab classifier Not yet supported by pypi * Undo version bump Co-authored-by: martinRenou <[email protected]>
1 parent d9cf488 commit 5de36d4

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,11 @@
1616
"name": "Martin Renou",
1717
"email": "[email protected]"
1818
},
19+
"contributors": [
20+
{
21+
"name": "Frédéric Collonval"
22+
}
23+
],
1924
"files": [
2025
"lib/**/*.{d.ts,eot,gif,html,jpg,js,js.map,json,png,svg,woff2,ttf}",
2126
"style/**/*.{css,.js,eot,gif,html,jpg,json,png,svg,woff2,ttf}"

setup.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
jupyterlab-unfold setup
33
"""
44
import json
5+
import sys
56
from pathlib import Path
67

78
import setuptools
@@ -42,10 +43,7 @@
4243
long_description=long_description,
4344
long_description_content_type="text/markdown",
4445
packages=setuptools.find_packages(),
45-
install_requires=[
46-
"jupyter_server>=1.6,<2",
47-
"jupyterlab>=3.1.0-alpha.10"
48-
],
46+
install_requires=["jupyterlab>=3.1.0"],
4947
zip_safe=False,
5048
include_package_data=True,
5149
python_requires=">=3.6",
@@ -75,7 +73,11 @@
7573
setup_args['cmdclass'] = wrap_installers(post_develop=post_develop, ensured_targets=ensured_targets)
7674
setup_args['data_files'] = get_data_files(data_files_spec)
7775
except ImportError as e:
78-
pass
76+
import logging
77+
logging.basicConfig(format="%(levelname)s: %(message)s")
78+
logging.warning("Build tool `jupyter-packaging` is missing. Install it with pip or conda.")
79+
if not ("--name" in sys.argv or "--version" in sys.argv):
80+
raise e
7981

8082
if __name__ == "__main__":
8183
setuptools.setup(**setup_args)

0 commit comments

Comments
 (0)