jupyter-builder 0.1.0a2__py3-none-any.whl → 0.1.0a4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- jupyter_builder/__init__.py +1 -1
- jupyter_builder/base_extension_app.py +1 -3
- jupyter_builder/commands.py +6 -9
- jupyter_builder/debug_log_file_mixin.py +7 -7
- jupyter_builder/extension_commands/build.py +4 -4
- jupyter_builder/extension_commands/develop.py +2 -2
- jupyter_builder/extension_commands/watch.py +4 -4
- jupyter_builder/federated_extensions.py +36 -43
- jupyter_builder/federated_extensions_requirements.py +12 -12
- jupyter_builder/jupyterlab_semver.py +970 -3
- jupyter_builder/yarn.js +8 -13
- jupyter_builder-0.1.0a4.dist-info/METADATA +175 -0
- jupyter_builder-0.1.0a4.dist-info/RECORD +20 -0
- {jupyter_builder-0.1.0a2.dist-info → jupyter_builder-0.1.0a4.dist-info}/WHEEL +1 -1
- jupyter_builder/jupyterlab_server_req.py +0 -66
- jupyter_builder-0.1.0a2.dist-info/METADATA +0 -119
- jupyter_builder-0.1.0a2.dist-info/RECORD +0 -21
- {jupyter_builder-0.1.0a2.dist-info → jupyter_builder-0.1.0a4.dist-info}/entry_points.txt +0 -0
- {jupyter_builder-0.1.0a2.dist-info → jupyter_builder-0.1.0a4.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,175 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: jupyter_builder
|
|
3
|
+
Version: 0.1.0a4
|
|
4
|
+
Summary: JupyterLab build tools
|
|
5
|
+
Project-URL: Homepage, https://jupyter.org
|
|
6
|
+
Project-URL: Source, https://github.com/jupyterlab/jupyterlab_builder
|
|
7
|
+
Project-URL: Issues, https://github.com/jupyterlab/jupyterlab_builder/issues/new/choose
|
|
8
|
+
Project-URL: Gitter, https://gitter.im/jupyterlab/jupyterlab
|
|
9
|
+
Project-URL: Pypi, https://pypi.org/project/jupyter-builder
|
|
10
|
+
Author-email: Jupyter Development Team <jupyter@googlegroups.com>
|
|
11
|
+
License: BSD 3-Clause License
|
|
12
|
+
|
|
13
|
+
Copyright (c) 2024, Jupyter Development Team
|
|
14
|
+
All rights reserved.
|
|
15
|
+
|
|
16
|
+
Redistribution and use in source and binary forms, with or without
|
|
17
|
+
modification, are permitted provided that the following conditions are met:
|
|
18
|
+
|
|
19
|
+
1. Redistributions of source code must retain the above copyright notice, this
|
|
20
|
+
list of conditions and the following disclaimer.
|
|
21
|
+
|
|
22
|
+
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
23
|
+
this list of conditions and the following disclaimer in the documentation
|
|
24
|
+
and/or other materials provided with the distribution.
|
|
25
|
+
|
|
26
|
+
3. Neither the name of the copyright holder nor the names of its
|
|
27
|
+
contributors may be used to endorse or promote products derived from
|
|
28
|
+
this software without specific prior written permission.
|
|
29
|
+
|
|
30
|
+
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
31
|
+
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
32
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
33
|
+
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
34
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
35
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
36
|
+
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
37
|
+
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
38
|
+
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
39
|
+
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
40
|
+
License-File: LICENSE
|
|
41
|
+
Keywords: ipython,jupyter
|
|
42
|
+
Classifier: Framework :: Jupyter
|
|
43
|
+
Classifier: Framework :: Jupyter :: JupyterLab
|
|
44
|
+
Classifier: Framework :: Jupyter :: JupyterLab :: 4
|
|
45
|
+
Classifier: Intended Audience :: Developers
|
|
46
|
+
Classifier: License :: OSI Approved :: BSD License
|
|
47
|
+
Classifier: Programming Language :: Python
|
|
48
|
+
Classifier: Programming Language :: Python :: 3
|
|
49
|
+
Classifier: Programming Language :: Python :: 3.8
|
|
50
|
+
Classifier: Programming Language :: Python :: 3.9
|
|
51
|
+
Classifier: Programming Language :: Python :: 3.10
|
|
52
|
+
Classifier: Programming Language :: Python :: 3.11
|
|
53
|
+
Classifier: Programming Language :: Python :: 3.12
|
|
54
|
+
Requires-Python: >=3.8
|
|
55
|
+
Requires-Dist: jupyterlab-server
|
|
56
|
+
Requires-Dist: traitlets
|
|
57
|
+
Provides-Extra: dev
|
|
58
|
+
Requires-Dist: build; extra == 'dev'
|
|
59
|
+
Requires-Dist: hatch; extra == 'dev'
|
|
60
|
+
Requires-Dist: mypy; extra == 'dev'
|
|
61
|
+
Requires-Dist: pre-commit; extra == 'dev'
|
|
62
|
+
Requires-Dist: ruff==0.14.14; extra == 'dev'
|
|
63
|
+
Provides-Extra: test
|
|
64
|
+
Requires-Dist: copier<10,>=9.3; extra == 'test'
|
|
65
|
+
Requires-Dist: coverage; extra == 'test'
|
|
66
|
+
Requires-Dist: jinja2-time; extra == 'test'
|
|
67
|
+
Requires-Dist: jupyterlab; extra == 'test'
|
|
68
|
+
Requires-Dist: pytest-check-links>=0.7; extra == 'test'
|
|
69
|
+
Requires-Dist: pytest-cov; extra == 'test'
|
|
70
|
+
Requires-Dist: pytest>=7.0; extra == 'test'
|
|
71
|
+
Description-Content-Type: text/markdown
|
|
72
|
+
|
|
73
|
+
# Jupyter Builder
|
|
74
|
+
|
|
75
|
+
Build tools for JupyterLab (and remixes)
|
|
76
|
+
|
|
77
|
+
> \[!NOTE\]
|
|
78
|
+
> This started by the extraction of the builder tools included in
|
|
79
|
+
> the core [JupyterLab](https://github.com/jupyterlab/jupyterlab) during a GSoC project. See [below](#gsoc-2024-anecdote) for more information.
|
|
80
|
+
|
|
81
|
+
## Why extracting the build tools?
|
|
82
|
+
|
|
83
|
+
- This would also solve some chicken-and-egg problems like jupyterlab/jupyterlab_pygments#23.
|
|
84
|
+
- Isolating the builder functionalities will simplify the work
|
|
85
|
+
of core and extension developers who can now focus on their respective parts of the
|
|
86
|
+
codebase instead of the earlier intertwined code.
|
|
87
|
+
- It will in particular reduce the need to update the maintenance tooling to produce extension compatible with newer version of Jupyter app.
|
|
88
|
+
|
|
89
|
+
## How to install the package?
|
|
90
|
+
|
|
91
|
+
Execute the following command in a terminal:
|
|
92
|
+
|
|
93
|
+
```
|
|
94
|
+
pip install jupyter_builder
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
## What does it do?
|
|
98
|
+
|
|
99
|
+
- Provides a CLI for building Jupyter extensions. There are 3 subcommands
|
|
100
|
+
- `build` : Builds the Jupyter extension JavaScript assets to be consumed by the Jupyter app.
|
|
101
|
+
```
|
|
102
|
+
jupyter-builder build <path to extension folder>
|
|
103
|
+
```
|
|
104
|
+
- `develop` : Install the Jupyter extension JavaScript assets in dev mode for consumption in the Jupyter app. It similar to [editable install mode of pip](https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs)
|
|
105
|
+
```
|
|
106
|
+
jupyter-builder develop --overwrite <path to extension folder>
|
|
107
|
+
```
|
|
108
|
+
- `watch` : Automatically rebuild the development JavaScript assets when one file is changed to ease development.
|
|
109
|
+
```
|
|
110
|
+
jupyter-builder watch <path to extension folder>
|
|
111
|
+
```
|
|
112
|
+
- Provides a NPM package manager: `jlpm`
|
|
113
|
+
|
|
114
|
+
## How to uninstall the package?
|
|
115
|
+
|
|
116
|
+
Execute the following command in a terminal:
|
|
117
|
+
|
|
118
|
+
```
|
|
119
|
+
pip uninstall jupyter_builder
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
______________________________________________________________________
|
|
123
|
+
|
|
124
|
+
## GSoC 2024 Anecdote
|
|
125
|
+
|
|
126
|
+
> Written by [@cronan03](https://github.com/cronan03) - GSoC Contributor 2024
|
|
127
|
+
|
|
128
|
+
### Goal
|
|
129
|
+
|
|
130
|
+
The goals of this project are:
|
|
131
|
+
|
|
132
|
+
- to extract that tooling as a new separate package to ease maintenance (for core and extension developers)
|
|
133
|
+
- update the existing package to use the new one
|
|
134
|
+
- make it configurable to be reused for other applications.
|
|
135
|
+
|
|
136
|
+
### What I did
|
|
137
|
+
|
|
138
|
+
1. Successfully created a CLI with the processes `develop`, `build` and `watch` mentioned above.
|
|
139
|
+
1. Created extensive unit tests using `Pytest` to ensure the processes run efficiently on any OS.
|
|
140
|
+
1. Reduced external dependencies by bringing `jlpm` and `jupyterlab.semver` to the package.
|
|
141
|
+
1. Pre released the package. It can be found on Pypi here https://pypi.org/project/jupyter-builder/
|
|
142
|
+
1. Initiated a solution to the issue https://github.com/jupyterlab/jupyterlab/issues/13456
|
|
143
|
+
|
|
144
|
+
### What's left to do
|
|
145
|
+
|
|
146
|
+
1. We should bring `@jupyterlab/builder` within this package and make it generic.
|
|
147
|
+
For now the code lives there: https://github.com/jupyterlab/jupyterlab/tree/main/builder
|
|
148
|
+
1. https://github.com/jupyterlab/jupyter-builder/blob/fffb100fc57ecb147bface4441f91bfd0cb6ff9a/jupyter_builder/federated_extensions.py#L296 which is responsible for checking version overlap has been temporarily ignored to make the build feature work.
|
|
149
|
+
1. Update JupyterLab core to use this new package
|
|
150
|
+
|
|
151
|
+
### Merged PRs
|
|
152
|
+
|
|
153
|
+
1. https://github.com/jupyterlab/jupyter-builder/pull/11
|
|
154
|
+
- This PR focuses on extracting the `develop` feature which is responsible for installing the Jupyter extension JS assets in dev mode.
|
|
155
|
+
- Considering the size of [labextension.py](https://github.com/jupyterlab/jupyterlab/blob/main/jupyterlab/labextensions.py), only features essential to Jupyter builder were added.
|
|
156
|
+
- Each of the features will inherit from the class `BaseExtensionApp` present [here](https://github.com/jupyterlab/jupyter-builder/blob/main/jupyter_builder/base_extension_app.py)
|
|
157
|
+
- The [federated_extensions.py](https://github.com/jupyterlab/jupyter-builder/blob/main/jupyter_builder/federated_extensions.py) sets up and executes commands to build, develop and waatch a JupyterLab extension. It resolves paths, constructs the appropriate command-line arguments, and executes the build process using `subprocess.check_call`. Optional parameters allow for customization of the build process, including logging, development mode, and source map generation.
|
|
158
|
+
1. https://github.com/jupyterlab/jupyter-builder/pull/13
|
|
159
|
+
- This PR focuses on extracting the `build` feature which is responsible for creating the Javascript assets which will be consumed by the Jupyter App.
|
|
160
|
+
- It will always result in the creation of a file `static/style.js` in `<extension_folder>/myextension/labextension`.
|
|
161
|
+
- Tests have been crafted using `Pytest` to check for the existence of files mentioned above on running the `build` command.
|
|
162
|
+
1. https://github.com/jupyterlab/jupyter-builder/pull/18
|
|
163
|
+
- The `watch` feature on running will rebuild the JS assets on being triggered. This happens on changing contents in `<extension_folder>/src/index.ts`
|
|
164
|
+
- To test this feature we deliberately make a change in `index.ts` triggering `watch`. This replaces old JS assets with new ones having different hash values in the file names. We create 2 vectors of filenames before and after triggering `watch` which will tell us if it actually worked.
|
|
165
|
+
1. https://github.com/jupyterlab/jupyter-builder/pull/20
|
|
166
|
+
- To reduce external dependencies, we added `jlpm` to this package.
|
|
167
|
+
- It existed [here](https://github.com/jupyterlab/jupyterlab/blob/main/jupyterlab/jlpmapp.py) with the [entrypoint](https://github.com/jupyterlab/jupyterlab/blob/e048f27548969c0e4403417ac04bc186f119128f/pyproject.toml#L60).
|
|
168
|
+
1. https://github.com/jupyterlab/jupyter-builder/pull/22
|
|
169
|
+
- Documented the working of the Jupyter builder along with installation guide.
|
|
170
|
+
|
|
171
|
+
### Challenges and Learning
|
|
172
|
+
|
|
173
|
+
1. One of the main challenges was starting this project from scratch with no pre existing code to rely on. I thank my mentor [@fcollonval](https://github.com/fcollonval) for creating the skeleton in https://github.com/jupyterlab/jupyter-builder/pull/2 which gave me a base to work on.
|
|
174
|
+
1. Selecting relevant features for Jupyter builder from [labextension.py](https://github.com/jupyterlab/jupyterlab/blob/main/jupyterlab/labextensions.py) was really tough without a thorough understanding on which functions Jupyter builder would actually rely on.
|
|
175
|
+
1. Creating tests for the `watch` feature was tricky as I had to carefully adjust sleep times to make sure the function was running before a change in `<extension_folder>/src/index.ts` was made. Otherwise the change happened before `watch` ran and never triggered it.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
jupyter_builder/__init__.py,sha256=i9jPM1fNuaGMXu7HCFm6KbNkedsu1J-LqVIcDeeoUCc,582
|
|
2
|
+
jupyter_builder/base_extension_app.py,sha256=w82d89smSMulUGlPDI_A4PVxRz2Zg7myC7NXcEevX4Y,1622
|
|
3
|
+
jupyter_builder/commands.py,sha256=YYYVne3RgLQDODCT73hLXn-ClMWGZS8KgRN7HDKVRP0,3406
|
|
4
|
+
jupyter_builder/core_path.py,sha256=8cFbRg81aZj8LQiHFkXuHtlDffwDu4IlUypyaiI1gH8,245
|
|
5
|
+
jupyter_builder/debug_log_file_mixin.py,sha256=EVc25sTNjYRnHf9sPQHffR8O5apqG7SJlZq5T9EAfMM,2256
|
|
6
|
+
jupyter_builder/federated_extensions.py,sha256=H-1Zq52AfDhmA-utfaHuaJQlVamy846n_0QtWyMjzdU,17124
|
|
7
|
+
jupyter_builder/federated_extensions_requirements.py,sha256=t3sD-WiO0Y4SOmn113-1aGhMzOqoQLCZAMnhliIM5vk,2997
|
|
8
|
+
jupyter_builder/jlpm.py,sha256=kYE6Pk9TADEhcxKkUXr6V0AhNdGDr5XnYO-D679R580,1233
|
|
9
|
+
jupyter_builder/jupyterlab_semver.py,sha256=Z2h4-m4ARZkoaK9QrvNS4mZGTtvUS5fnjUMhnbyA2-0,35745
|
|
10
|
+
jupyter_builder/main.py,sha256=PGZ4MGYG20yDqonoQg_vKkeCzCkKKnrCOtU056Wdvr4,2231
|
|
11
|
+
jupyter_builder/yarn.js,sha256=5PxflIZ80LSS-wpkTxTntHxDh7x11GtW6G220PGmy5c,2221348
|
|
12
|
+
jupyter_builder/extension_commands/__init__.py,sha256=eXcK7cn7Qj8A1SBiMJ4ptlf2WFErhSxG9QSKFtENyhU,101
|
|
13
|
+
jupyter_builder/extension_commands/build.py,sha256=u_RQGl5_Pt2A7I2SdTk4tZ3hUNR83X4pFqigOzWXA6g,1638
|
|
14
|
+
jupyter_builder/extension_commands/develop.py,sha256=2B9jrjceulO9sE7-TqcyVtTrjKkk713LqRbN5oMmxYU,1724
|
|
15
|
+
jupyter_builder/extension_commands/watch.py,sha256=QIfIxX__6NfXeIla7BCr0doqqxA9rkd4ApKuCMk709A,1521
|
|
16
|
+
jupyter_builder-0.1.0a4.dist-info/METADATA,sha256=aFDdfEa-E8F8uJhAHN2o4c7j1knVQUGtxg-ZV9fQnAE,10127
|
|
17
|
+
jupyter_builder-0.1.0a4.dist-info/WHEEL,sha256=WLgqFyCfm_KASv4WHyYy0P3pM_m7J5L9k2skdKLirC8,87
|
|
18
|
+
jupyter_builder-0.1.0a4.dist-info/entry_points.txt,sha256=pQlwFs3R6-sOlkEDXzXwxu0tVNn4aBkaDJ8qRebDZko,95
|
|
19
|
+
jupyter_builder-0.1.0a4.dist-info/licenses/LICENSE,sha256=T4GK8L2cxFmaXUe48VaSUF3T6pnn14gWtH1rXdz5VkI,1532
|
|
20
|
+
jupyter_builder-0.1.0a4.dist-info/RECORD,,
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
"""JupyterLab Server config"""
|
|
2
|
-
|
|
3
|
-
# Copyright (c) Jupyter Development Team.
|
|
4
|
-
# Distributed under the terms of the Modified BSD License.
|
|
5
|
-
from __future__ import annotations
|
|
6
|
-
|
|
7
|
-
import json
|
|
8
|
-
import os.path as osp
|
|
9
|
-
from glob import iglob
|
|
10
|
-
from itertools import chain
|
|
11
|
-
from os.path import join as pjoin
|
|
12
|
-
from typing import Any
|
|
13
|
-
|
|
14
|
-
# -----------------------------------------------------------------------------
|
|
15
|
-
# Module globals
|
|
16
|
-
# -----------------------------------------------------------------------------
|
|
17
|
-
|
|
18
|
-
DEFAULT_TEMPLATE_PATH = osp.join(osp.dirname(__file__), "templates")
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
def get_package_url(data: dict[str, Any]) -> str:
|
|
22
|
-
"""Get the url from the extension data"""
|
|
23
|
-
# homepage, repository are optional
|
|
24
|
-
if "homepage" in data:
|
|
25
|
-
url = data["homepage"]
|
|
26
|
-
elif "repository" in data and isinstance(data["repository"], dict):
|
|
27
|
-
url = data["repository"].get("url", "")
|
|
28
|
-
else:
|
|
29
|
-
url = ""
|
|
30
|
-
return url
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
def get_federated_extensions(labextensions_path: list[str]) -> dict[str, Any]:
|
|
34
|
-
"""Get the metadata about federated extensions"""
|
|
35
|
-
federated_extensions = {}
|
|
36
|
-
for ext_dir in labextensions_path:
|
|
37
|
-
# extensions are either top-level directories, or two-deep in @org directories
|
|
38
|
-
for ext_path in chain(
|
|
39
|
-
iglob(pjoin(ext_dir, "[!@]*", "package.json")),
|
|
40
|
-
iglob(pjoin(ext_dir, "@*", "*", "package.json")),
|
|
41
|
-
):
|
|
42
|
-
with open(ext_path, encoding="utf-8") as fid:
|
|
43
|
-
pkgdata = json.load(fid)
|
|
44
|
-
if pkgdata["name"] not in federated_extensions:
|
|
45
|
-
data = dict(
|
|
46
|
-
name=pkgdata["name"],
|
|
47
|
-
version=pkgdata["version"],
|
|
48
|
-
description=pkgdata.get("description", ""),
|
|
49
|
-
url=get_package_url(pkgdata),
|
|
50
|
-
ext_dir=ext_dir,
|
|
51
|
-
ext_path=osp.dirname(ext_path),
|
|
52
|
-
is_local=False,
|
|
53
|
-
dependencies=pkgdata.get("dependencies", dict()),
|
|
54
|
-
jupyterlab=pkgdata.get("jupyterlab", dict()),
|
|
55
|
-
)
|
|
56
|
-
|
|
57
|
-
# Add repository info if available
|
|
58
|
-
if "repository" in pkgdata and "url" in pkgdata.get("repository", {}):
|
|
59
|
-
data["repository"] = dict(url=pkgdata.get("repository").get("url"))
|
|
60
|
-
|
|
61
|
-
install_path = osp.join(osp.dirname(ext_path), "install.json")
|
|
62
|
-
if osp.exists(install_path):
|
|
63
|
-
with open(install_path, encoding="utf-8") as fid:
|
|
64
|
-
data["install"] = json.load(fid)
|
|
65
|
-
federated_extensions[data["name"]] = data
|
|
66
|
-
return federated_extensions
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
Metadata-Version: 2.3
|
|
2
|
-
Name: jupyter_builder
|
|
3
|
-
Version: 0.1.0a2
|
|
4
|
-
Summary: JupyterLab build tools
|
|
5
|
-
Project-URL: Homepage, https://jupyter.org
|
|
6
|
-
Project-URL: Source, https://github.com/jupyterlab/jupyterlab_builder
|
|
7
|
-
Project-URL: Issues, https://github.com/jupyterlab/jupyterlab_builder/issues/new/choose
|
|
8
|
-
Project-URL: Gitter, https://gitter.im/jupyterlab/jupyterlab
|
|
9
|
-
Project-URL: Pypi, https://pypi.org/project/jupyter-builder
|
|
10
|
-
Author-email: Jupyter Development Team <jupyter@googlegroups.com>
|
|
11
|
-
License: BSD 3-Clause License
|
|
12
|
-
|
|
13
|
-
Copyright (c) 2024, Jupyter Development Team
|
|
14
|
-
All rights reserved.
|
|
15
|
-
|
|
16
|
-
Redistribution and use in source and binary forms, with or without
|
|
17
|
-
modification, are permitted provided that the following conditions are met:
|
|
18
|
-
|
|
19
|
-
1. Redistributions of source code must retain the above copyright notice, this
|
|
20
|
-
list of conditions and the following disclaimer.
|
|
21
|
-
|
|
22
|
-
2. Redistributions in binary form must reproduce the above copyright notice,
|
|
23
|
-
this list of conditions and the following disclaimer in the documentation
|
|
24
|
-
and/or other materials provided with the distribution.
|
|
25
|
-
|
|
26
|
-
3. Neither the name of the copyright holder nor the names of its
|
|
27
|
-
contributors may be used to endorse or promote products derived from
|
|
28
|
-
this software without specific prior written permission.
|
|
29
|
-
|
|
30
|
-
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
|
31
|
-
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
32
|
-
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
33
|
-
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
|
34
|
-
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
35
|
-
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
|
36
|
-
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
|
37
|
-
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
|
38
|
-
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
|
39
|
-
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
40
|
-
License-File: LICENSE
|
|
41
|
-
Keywords: ipython,jupyter
|
|
42
|
-
Classifier: Framework :: Jupyter
|
|
43
|
-
Classifier: Framework :: Jupyter :: JupyterLab
|
|
44
|
-
Classifier: Framework :: Jupyter :: JupyterLab :: 4
|
|
45
|
-
Classifier: Intended Audience :: Developers
|
|
46
|
-
Classifier: License :: OSI Approved :: BSD License
|
|
47
|
-
Classifier: Programming Language :: Python
|
|
48
|
-
Classifier: Programming Language :: Python :: 3
|
|
49
|
-
Classifier: Programming Language :: Python :: 3.8
|
|
50
|
-
Classifier: Programming Language :: Python :: 3.9
|
|
51
|
-
Classifier: Programming Language :: Python :: 3.10
|
|
52
|
-
Classifier: Programming Language :: Python :: 3.11
|
|
53
|
-
Classifier: Programming Language :: Python :: 3.12
|
|
54
|
-
Requires-Python: >=3.8
|
|
55
|
-
Requires-Dist: traitlets
|
|
56
|
-
Provides-Extra: dev
|
|
57
|
-
Requires-Dist: build; extra == 'dev'
|
|
58
|
-
Requires-Dist: hatch; extra == 'dev'
|
|
59
|
-
Requires-Dist: mypy; extra == 'dev'
|
|
60
|
-
Requires-Dist: pre-commit; extra == 'dev'
|
|
61
|
-
Requires-Dist: ruff==0.4.7; extra == 'dev'
|
|
62
|
-
Provides-Extra: test
|
|
63
|
-
Requires-Dist: copier<10,>=9.2; extra == 'test'
|
|
64
|
-
Requires-Dist: coverage; extra == 'test'
|
|
65
|
-
Requires-Dist: jinja2-time; extra == 'test'
|
|
66
|
-
Requires-Dist: jupyterlab; extra == 'test'
|
|
67
|
-
Requires-Dist: pytest-check-links>=0.7; extra == 'test'
|
|
68
|
-
Requires-Dist: pytest-cov; extra == 'test'
|
|
69
|
-
Requires-Dist: pytest>=7.0; extra == 'test'
|
|
70
|
-
Description-Content-Type: text/markdown
|
|
71
|
-
|
|
72
|
-
# Jupyter Builder - GSoC 2024
|
|
73
|
-
|
|
74
|
-
Build tools for JupyterLab (and remixes)
|
|
75
|
-
|
|
76
|
-
> This _will_ start as an extraction of the builder tools currently included in
|
|
77
|
-
> the core [JupyterLab](https://github.com/jupyterlab/jupyterlab).
|
|
78
|
-
|
|
79
|
-
## Why extracting the build tools?
|
|
80
|
-
|
|
81
|
-
- This would also solve some chicken-and-egg problems like jupyterlab/jupyterlab_pygments#23.
|
|
82
|
-
- Isolating the builder functionalities will simplify the work
|
|
83
|
-
of core and extension developers who can now focus on their respective parts of the
|
|
84
|
-
codebase instead of the earlier intertwined code. It will in particular reduce the need to update the maintenance tooling to produce extension compatible with newer version of Jupyter app.
|
|
85
|
-
|
|
86
|
-
## How to install the package?
|
|
87
|
-
|
|
88
|
-
Execute the following command in a terminal:
|
|
89
|
-
|
|
90
|
-
```
|
|
91
|
-
pip install jupyter_builder
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
## What does it do?
|
|
95
|
-
|
|
96
|
-
- Provides a CLI for building Jupyter extensions. There are 3 subcommands
|
|
97
|
-
- `build` : Builds the Jupyter extension JavaScript assets to be consumed by the Jupyter app.
|
|
98
|
-
```
|
|
99
|
-
jupyter-builder build <path to extension folder>
|
|
100
|
-
```
|
|
101
|
-
- `develop` : Install the Jupyter extension JavaScript assets in dev mode for consumption in the Jupyter app. It similar to [editable install mode of pip](https://pip.pypa.io/en/stable/topics/local-project-installs/#editable-installs)
|
|
102
|
-
```
|
|
103
|
-
jupyter-builder develop --overwrite (path to extension folder)
|
|
104
|
-
```
|
|
105
|
-
- `watch` : Automatically rebuild the development JavaScript assets when one file is changed to ease development.
|
|
106
|
-
```
|
|
107
|
-
jupyter-builder watch (path to extension folder)
|
|
108
|
-
```
|
|
109
|
-
- Provides a NPM package manager: `jlpm`
|
|
110
|
-
|
|
111
|
-
## How to uninstall the package?
|
|
112
|
-
|
|
113
|
-
Execute the following command in a terminal:
|
|
114
|
-
|
|
115
|
-
```
|
|
116
|
-
pip uninstall jupyter_builder
|
|
117
|
-
```
|
|
118
|
-
|
|
119
|
-
See https://github.com/jupyterlab/jupyterlab/issues/13456
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
jupyter_builder/__init__.py,sha256=ucoo7W6O_PAP5ESIJ1klJViiKWeJbUqFCuc_QrW3XV8,568
|
|
2
|
-
jupyter_builder/base_extension_app.py,sha256=NTtICU1zbc8n64Hd9tJ86FuYX7q5xqDVHhbmBAEINjw,1726
|
|
3
|
-
jupyter_builder/commands.py,sha256=-h9brmCXhrKRMtefcqHEv4VnMREgWOkfU2PZmaxNraI,3440
|
|
4
|
-
jupyter_builder/core_path.py,sha256=8cFbRg81aZj8LQiHFkXuHtlDffwDu4IlUypyaiI1gH8,245
|
|
5
|
-
jupyter_builder/debug_log_file_mixin.py,sha256=816tIlPySoCbJak9Cj6eE57VjeQjz2jdySYsj4hqESw,2181
|
|
6
|
-
jupyter_builder/federated_extensions.py,sha256=IaS7VIKlb09wgkIjjYhSXUJY8qYNpmCOMyLPWw3fKlI,17177
|
|
7
|
-
jupyter_builder/federated_extensions_requirements.py,sha256=R-sAx1shGaGOwA9dIMPIc3kslEW2ih1w8RdrKWtZJ3c,2983
|
|
8
|
-
jupyter_builder/jlpm.py,sha256=kYE6Pk9TADEhcxKkUXr6V0AhNdGDr5XnYO-D679R580,1233
|
|
9
|
-
jupyter_builder/jupyterlab_semver.py,sha256=E7SKvf9ca4uDBWf_oSji5OHurycAIF8cUt4rwafHQto,9330
|
|
10
|
-
jupyter_builder/jupyterlab_server_req.py,sha256=LKn_merwDkCT17OCsqTuOoRaX4uGGhyz-25wwiDkE2c,2613
|
|
11
|
-
jupyter_builder/main.py,sha256=PGZ4MGYG20yDqonoQg_vKkeCzCkKKnrCOtU056Wdvr4,2231
|
|
12
|
-
jupyter_builder/yarn.js,sha256=8EYGlNp3NZisReCOECOR_8DMDfMWLkfeZ-URewpzhq4,2221431
|
|
13
|
-
jupyter_builder/extension_commands/__init__.py,sha256=eXcK7cn7Qj8A1SBiMJ4ptlf2WFErhSxG9QSKFtENyhU,101
|
|
14
|
-
jupyter_builder/extension_commands/build.py,sha256=Px55wxLrOgh_OGzUebHw2cplepOn8WyU38gbqKvHTWk,1580
|
|
15
|
-
jupyter_builder/extension_commands/develop.py,sha256=Ztl9qniWlxE86imNOpcNOLbPsZGRMhYQ3c_-_ozUICI,1696
|
|
16
|
-
jupyter_builder/extension_commands/watch.py,sha256=OKuFk3N1vk2Yb-Cmy2yLOECCsNNn-qC0DcwSAkeyGGs,1463
|
|
17
|
-
jupyter_builder-0.1.0a2.dist-info/METADATA,sha256=hBwpgheUzkezL5-z7yJALfmd3Y1ZpIPjnkeZHwQYZtQ,5300
|
|
18
|
-
jupyter_builder-0.1.0a2.dist-info/WHEEL,sha256=1yFddiXMmvYK7QYTqtRNtX66WJ0Mz8PYEiEUoOUUxRY,87
|
|
19
|
-
jupyter_builder-0.1.0a2.dist-info/entry_points.txt,sha256=pQlwFs3R6-sOlkEDXzXwxu0tVNn4aBkaDJ8qRebDZko,95
|
|
20
|
-
jupyter_builder-0.1.0a2.dist-info/licenses/LICENSE,sha256=T4GK8L2cxFmaXUe48VaSUF3T6pnn14gWtH1rXdz5VkI,1532
|
|
21
|
-
jupyter_builder-0.1.0a2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|