Skip to content

Commit c833b40

Browse files
committed
misc fixes
1 parent 6baa8ef commit c833b40

File tree

3 files changed

+13
-43
lines changed

3 files changed

+13
-43
lines changed

notebooks/introduction.ipynb

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -29,20 +29,9 @@
2929
},
3030
{
3131
"cell_type": "code",
32-
"execution_count": 1,
32+
"execution_count": null,
3333
"metadata": {},
34-
"outputs": [
35-
{
36-
"data": {
37-
"text/plain": [
38-
"App(7fe7b39a65c0)"
39-
]
40-
},
41-
"execution_count": 1,
42-
"metadata": {},
43-
"output_type": "execute_result"
44-
}
45-
],
34+
"outputs": [],
4635
"source": [
4736
"from idom import component, html, run\n",
4837
"\n",
@@ -217,7 +206,7 @@
217206
"name": "python",
218207
"nbconvert_exporter": "python",
219208
"pygments_lexer": "ipython3",
220-
"version": "3.10.6"
209+
"version": "3.10.6 (main, Aug 13 2022, 00:11:04) [GCC 9.4.0]"
221210
},
222211
"vscode": {
223212
"interpreter": {

requirements.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
twine
2+
jupyter-packaging
3+
jupyter-repo2docker

setup.py

Lines changed: 7 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
"appdirs",
3333
"requests",
3434
"jupyter_server",
35+
"notebook",
3536
],
3637
packages=find_packages(),
3738
zip_safe=False,
@@ -103,35 +104,12 @@
103104
),
104105
]
105106

106-
package["cmdclass"] = {
107-
**create_cmdclass("jsdeps", data_files_spec=data_files_spec),
108-
"jsdeps": combine_commands(
109-
install_npm(JS_DIR, npm=["yarn"], build_cmd="build:prod"),
110-
ensure_targets(jstargets),
111-
),
112-
}
113-
114-
# --------------------------------------------------------------------------------------
115-
# Build Pth File
116-
# --------------------------------------------------------------------------------------
117-
118-
BuildPyBase: type[build_py] = package["cmdclass"]["build_py"]
119-
120-
121-
class BuildPy(BuildPyBase):
122-
"""Include the .pth file for this project, in the generated wheel."""
123-
124-
def run(self):
125-
super().run()
126-
pth_file = f"{NAME}.pth"
127-
self.copy_file(
128-
str(ROOT_DIR / pth_file),
129-
str(Path(self.build_lib) / pth_file),
130-
preserve_mode=0,
131-
)
132-
133-
134-
package["cmdclass"] = {**package["cmdclass"], "build_py": BuildPy}
107+
cmdclass = create_cmdclass("jsdeps", data_files_spec=data_files_spec)
108+
cmdclass["jsdeps"] = combine_commands(
109+
install_npm(JS_DIR, npm=["yarn"], build_cmd="build:prod"),
110+
ensure_targets(jstargets),
111+
)
112+
package["cmdclass"] = cmdclass
135113

136114
# -----------------------------------------------------------------------------
137115
# Install It

0 commit comments

Comments
 (0)