|
1 | 1 | [build-system]
|
2 |
| -requires = ["jupyter_packaging~=0.10", "jupyterlab>=4.0.0a25,<5", "pre-commit"] |
3 |
| -build-backend = "jupyter_packaging.build_api" |
| 2 | +requires = ["hatchling>=1.0", "jupyterlab>=4.0.0a25,<5"] |
| 3 | +build-backend = "hatchling.build" |
4 | 4 |
|
5 |
| -[license] |
6 |
| -file="LICENSE" |
| 5 | +[project] |
| 6 | +name = "notebook" |
| 7 | +description = "Jupyter Notebook - A web-based notebook environment for interactive computing" |
| 8 | +readme = "README.md" |
| 9 | +license = { file = "LICENSE" } |
| 10 | +requires-python = ">=3.7" |
| 11 | +authors = [ |
| 12 | + { name = "Jupyter Development Team", email = "[email protected]" }, |
| 13 | +] |
| 14 | +keywords = [ |
| 15 | + "Jupyter", |
| 16 | + "JupyterLab", |
| 17 | + "Notebook", |
| 18 | +] |
| 19 | +classifiers = [ |
| 20 | + "Framework :: Jupyter", |
| 21 | + "Intended Audience :: Developers", |
| 22 | + "Intended Audience :: Science/Research", |
| 23 | + "Intended Audience :: System Administrators", |
| 24 | + "License :: OSI Approved :: BSD License", |
| 25 | + "Programming Language :: Python", |
| 26 | + "Programming Language :: Python :: 3.7", |
| 27 | + "Programming Language :: Python :: 3.8", |
| 28 | + "Programming Language :: Python :: 3.9", |
| 29 | + "Programming Language :: Python :: 3.10", |
| 30 | +] |
| 31 | +dependencies = [ |
| 32 | + "jupyter_server>=1.16.0,<2", |
| 33 | + "jupyterlab>=4.0.0a24,<5", |
| 34 | + "jupyterlab_server>=2.13,<3", |
| 35 | + "notebook_shim>=0.1,<0.2", |
| 36 | + "tornado>=6.1.0", |
| 37 | +] |
| 38 | +dynamic = ["version"] |
7 | 39 |
|
8 |
| -[tool.jupyter-packaging.options] |
9 |
| -skip-if-exists = ["notebook/labextension/static/style.js", "notebook/static/bundle.js"] |
10 |
| -ensured-targets = ["notebook/labextension/static/style.js", "notebook/static/bundle.js"] |
| 40 | +[project.scripts] |
| 41 | +jupyter-notebook = "notebook.app:main" |
11 | 42 |
|
12 |
| -[tool.jupyter-packaging.builder] |
13 |
| -factory = "jupyter_packaging.npm_builder" |
| 43 | +[project.urls] |
| 44 | +Documentation = "https://jupyter-notebook.readthedocs.io/" |
| 45 | +Homepage = "https://github.com/jupyter/notebook" |
| 46 | +Source = "https://github.com/jupyter/notebook" |
| 47 | +Tracker = "https://github.com/jupyter/notebook/issues" |
14 | 48 |
|
15 |
| -[tool.jupyter-packaging.build-args] |
16 |
| -build_cmd = "build:prod" |
17 |
| -npm = ["jlpm"] |
| 49 | +[project.optional-dependencies] |
| 50 | +test = [ |
| 51 | + "coverage", |
| 52 | + "nbval", |
| 53 | + "pytest>=6.0", |
| 54 | + "pytest-cov", |
| 55 | + "requests", |
| 56 | + "pytest-tornasync", |
| 57 | + "pytest-timeout", |
| 58 | + "pytest-console-scripts", |
| 59 | + "ipykernel", |
| 60 | + "jupyterlab_server[test]>=2.13,<3", |
| 61 | +] |
| 62 | +dev = [ |
| 63 | + "pre-commit", |
| 64 | + "bump2version", |
| 65 | + "hatchling" |
| 66 | +] |
| 67 | + |
| 68 | +[tool.hatch.version] |
| 69 | +path = "notebook/_version.py" |
| 70 | +source = "code" |
| 71 | + |
| 72 | +[tool.hatch.build.targets.wheel.shared-data] |
| 73 | +"notebook/labextension" = "share/jupyter/labextensions/@jupyter-notebook/lab-extension" |
| 74 | +"notebook/schemas/@jupyter-notebook" = "share/jupyter/lab/schemas/@jupyter-notebook" |
| 75 | +"jupyter-config/jupyter_server_config.d" = "etc/jupyter/jupyter_server_config.d" |
18 | 76 |
|
19 |
| -[tool.check-manifest] |
20 |
| -ignore = ["app/**", "binder/**", "buildutils/**", "docs/**", "packages/**", "codecov.yml", "*.json", "yarn.lock", "readthedocs.yml", ".bumpversion.cfg", ".*", "lint-staged.config.js", "*.svg", "notebook/labextension/**", "notebook/schemas/**", "notebook/static/**", "notebook/template/**", "ui-tests/**"] |
| 77 | +[tool.hatch.build.targets.sdist] |
| 78 | +artifacts = [ |
| 79 | + "notebook/labextension", |
| 80 | + "notebook/static", |
| 81 | + "notebook/schemas/@jupyter-notebook", |
| 82 | + "notebook/templates", |
| 83 | +] |
| 84 | +include = [ |
| 85 | + "/jupyter-config", |
| 86 | + "/notebook", |
| 87 | + "/tests", |
| 88 | + "/package.json", |
| 89 | + "/install.json", |
| 90 | + "/ts*.json", |
| 91 | + "/*.md" |
| 92 | +] |
| 93 | + |
| 94 | +[tool.hatch.build.targets.wheel] |
| 95 | +artifacts = [ |
| 96 | + "notebook/static", |
| 97 | + "notebook/templates", |
| 98 | +] |
| 99 | +include = ["/notebook"] |
| 100 | + |
| 101 | + |
| 102 | +[tool.hatch.build.hooks.jupyter-builder] |
| 103 | +dependencies = ["hatch-jupyter-builder>=0.2"] |
| 104 | +build-function = "hatch_jupyter_builder.npm_builder" |
| 105 | +ensured-targets = [ |
| 106 | + "notebook/labextension/static/style.js", |
| 107 | + "notebook/static/bundle.js" |
| 108 | +] |
| 109 | +install-pre-commit-hook = true |
| 110 | + |
| 111 | +[tool.hatch.build.hooks.jupyter-builder.build-kwargs] |
| 112 | +build_cmd = "build:prod" |
| 113 | +editable_build_cmd = "build" |
| 114 | +source_dir = "packages" |
| 115 | +build_dir = "notebook/static" |
| 116 | +npm = "jlpm" |
21 | 117 |
|
22 | 118 | [tool.pytest.ini_options]
|
23 | 119 | addopts = "-raXs --durations 10 --color=yes --doctest-modules"
|
24 | 120 | testpaths = [
|
25 |
| - "tests/" |
| 121 | + "tests/", |
26 | 122 | ]
|
27 | 123 | timeout = 300
|
28 |
| -# Restore this setting to debug failures |
29 |
| -# timeout_method = "thread" |
30 | 124 | filterwarnings = [
|
31 | 125 | "error",
|
32 | 126 | "ignore:There is no current event loop:DeprecationWarning",
|
|
0 commit comments