nbdev 3.0.12__tar.gz → 3.0.14__tar.gz
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.
- {nbdev-3.0.12/nbdev.egg-info → nbdev-3.0.14}/PKG-INFO +2 -2
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/__init__.py +1 -1
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/clean.py +1 -1
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/cli.py +1 -1
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/config.py +3 -3
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/diff.py +1 -1
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/frontmatter.py +1 -1
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/maker.py +7 -8
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/merge.py +1 -1
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/process.py +1 -1
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/processors.py +1 -1
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/qmd.py +3 -4
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/quarto.py +5 -6
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/serve_drv.py +1 -1
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/showdoc.py +3 -4
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/sync.py +1 -1
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/test.py +1 -1
- {nbdev-3.0.12 → nbdev-3.0.14/nbdev.egg-info}/PKG-INFO +2 -2
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev.egg-info/requires.txt +1 -1
- {nbdev-3.0.12 → nbdev-3.0.14}/pyproject.toml +3 -1
- {nbdev-3.0.12 → nbdev-3.0.14}/CONTRIBUTING.md +0 -0
- {nbdev-3.0.12 → nbdev-3.0.14}/LICENSE +0 -0
- {nbdev-3.0.12 → nbdev-3.0.14}/MANIFEST.in +0 -0
- {nbdev-3.0.12 → nbdev-3.0.14}/README.md +0 -0
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/_modidx.py +0 -0
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/doclinks.py +0 -0
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/export.py +0 -0
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/extract_attachments.py +0 -0
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/imports.py +0 -0
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/migrate.py +0 -0
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/release.py +0 -0
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/scrubmagics.py +0 -0
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev/serve.py +0 -0
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev.egg-info/SOURCES.txt +0 -0
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev.egg-info/dependency_links.txt +0 -0
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev.egg-info/entry_points.txt +0 -0
- {nbdev-3.0.12 → nbdev-3.0.14}/nbdev.egg-info/top_level.txt +0 -0
- {nbdev-3.0.12 → nbdev-3.0.14}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nbdev
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.14
|
|
4
4
|
Summary: Create delightful software with Jupyter Notebooks
|
|
5
5
|
Author-email: "Jeremy Howard and the fast.ai community" <j@fast.ai>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -16,7 +16,7 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
16
16
|
Requires-Python: >=3.9
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
License-File: LICENSE
|
|
19
|
-
Requires-Dist: fastcore>=1.12.
|
|
19
|
+
Requires-Dist: fastcore>=1.12.35
|
|
20
20
|
Requires-Dist: execnb>=0.1.12
|
|
21
21
|
Requires-Dist: astunparse
|
|
22
22
|
Requires-Dist: ghapi>=1.0.3
|
|
@@ -21,7 +21,7 @@ from .export import nb_export
|
|
|
21
21
|
from .frontmatter import FrontmatterProc
|
|
22
22
|
|
|
23
23
|
from fastcore.xtras import run
|
|
24
|
-
from
|
|
24
|
+
from fastcore.nbio import *
|
|
25
25
|
from fastcore.meta import *
|
|
26
26
|
from fastcore.utils import *
|
|
27
27
|
from fastcore.script import *
|
|
@@ -18,7 +18,7 @@ from fastcore.xdg import *
|
|
|
18
18
|
|
|
19
19
|
import ast,importlib,warnings
|
|
20
20
|
from IPython.display import Markdown
|
|
21
|
-
from
|
|
21
|
+
from fastcore.nbio import read_nb,NbCell
|
|
22
22
|
from urllib.error import HTTPError
|
|
23
23
|
|
|
24
24
|
try: import tomllib
|
|
@@ -271,7 +271,7 @@ cache-keys = [{ file = "pyproject.toml" }, { file = "setup.py" }]
|
|
|
271
271
|
|
|
272
272
|
# %% ../nbs/api/01_config.ipynb #f1c85f45
|
|
273
273
|
_re_version = re.compile(r'^__version__\s*=\s*[\'"]([^\'"]+)[\'"]', re.MULTILINE)
|
|
274
|
-
_re_proj = re.compile(r'
|
|
274
|
+
_re_proj = re.compile(r'(\[project\](?:\n(?!\[).*)*?\n)name\s*=\s*"[^"]*"')
|
|
275
275
|
_re_reqpy = re.compile(r'^requires-python\s*=\s*".*$', re.MULTILINE)
|
|
276
276
|
_init = '__init__.py'
|
|
277
277
|
_pyproj = 'pyproject.toml'
|
|
@@ -320,7 +320,7 @@ def update_proj(path):
|
|
|
320
320
|
fname = path/_pyproj
|
|
321
321
|
if not fname.exists(): fname.write_text(pyproj_tmpl)
|
|
322
322
|
txt = fname.read_text()
|
|
323
|
-
txt = _re_proj.sub(
|
|
323
|
+
txt = _re_proj.sub(rf'\1name = "{get_config().lib_name}"', txt)
|
|
324
324
|
txt = _re_reqpy.sub(f'requires-python = ">={get_config().min_python}"', txt)
|
|
325
325
|
fname.write_text(txt)
|
|
326
326
|
|
|
@@ -11,7 +11,7 @@ from fastcore.utils import *
|
|
|
11
11
|
from fastcore.meta import delegates
|
|
12
12
|
from difflib import unified_diff
|
|
13
13
|
from fastgit import Git
|
|
14
|
-
from
|
|
14
|
+
from fastcore.nbio import *
|
|
15
15
|
|
|
16
16
|
# %% ../nbs/api/19_diff.ipynb #a8981115
|
|
17
17
|
def read_nb_from_git(
|
|
@@ -2,9 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/api/02_maker.ipynb.
|
|
4
4
|
|
|
5
|
-
# %% ../nbs/api/02_maker.ipynb #aac32462
|
|
6
|
-
from __future__ import annotations
|
|
7
|
-
|
|
8
5
|
# %% auto #0
|
|
9
6
|
__all__ = ['find_var', 'read_var', 'update_var', 'ModuleMaker', 'decor_id', 'make_code_cells', 'relative_import', 'update_import']
|
|
10
7
|
|
|
@@ -15,13 +12,14 @@ from .imports import *
|
|
|
15
12
|
from fastcore.script import *
|
|
16
13
|
from fastcore.basics import *
|
|
17
14
|
from fastcore.imports import *
|
|
18
|
-
from
|
|
15
|
+
from fastcore.nbio import *
|
|
19
16
|
|
|
20
17
|
import ast,contextlib
|
|
21
18
|
|
|
22
19
|
from collections import defaultdict
|
|
23
20
|
from pprint import pformat
|
|
24
21
|
from textwrap import TextWrapper
|
|
22
|
+
from itertools import dropwhile,takewhile
|
|
25
23
|
|
|
26
24
|
# %% ../nbs/api/02_maker.ipynb #c2d38766
|
|
27
25
|
def find_var(lines, varname):
|
|
@@ -177,12 +175,13 @@ def _import2relative(cells, lib_path=None):
|
|
|
177
175
|
|
|
178
176
|
# %% ../nbs/api/02_maker.ipynb #5bff9d71
|
|
179
177
|
def _retr_mdoc(cells):
|
|
180
|
-
"Search for md meta quote
|
|
178
|
+
"Search for md meta quote lines, used to create module docstring"
|
|
181
179
|
md1 = first(o for o in cells if o.cell_type=='markdown' and o.source.startswith('# '))
|
|
182
180
|
if not md1: return ''
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
181
|
+
lines = dropwhile(lambda l: not l.startswith('> '), md1.source.splitlines())
|
|
182
|
+
lines = list(takewhile(lambda l: l.startswith('> '), lines))
|
|
183
|
+
if not lines: return ''
|
|
184
|
+
summ = '\n'.join(l.lstrip('> ').strip() for l in lines)
|
|
186
185
|
return f'"""{summ}"""\n\n' if summ else ''
|
|
187
186
|
|
|
188
187
|
# %% ../nbs/api/02_maker.ipynb #cdd205d6
|
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
|
|
3
3
|
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/api/15_qmd.ipynb.
|
|
4
4
|
|
|
5
|
+
# %% auto #0
|
|
6
|
+
__all__ = ['meta', 'div', 'img', 'btn', 'tbl_row', 'tbl_sep']
|
|
7
|
+
|
|
5
8
|
# %% ../nbs/api/15_qmd.ipynb #6a35c7c4-748f-4c82-a9bf-c780a8d83e90
|
|
6
|
-
from __future__ import annotations
|
|
7
9
|
import sys,os,inspect
|
|
8
10
|
|
|
9
11
|
from fastcore.utils import *
|
|
10
12
|
from fastcore.meta import delegates
|
|
11
13
|
|
|
12
|
-
# %% auto #0
|
|
13
|
-
__all__ = ['meta', 'div', 'img', 'btn', 'tbl_row', 'tbl_sep']
|
|
14
|
-
|
|
15
14
|
# %% ../nbs/api/15_qmd.ipynb #5a64f1f4
|
|
16
15
|
def meta(md, # Markdown to add meta to
|
|
17
16
|
classes=None, # List of CSS classes to add
|
|
@@ -2,8 +2,12 @@
|
|
|
2
2
|
|
|
3
3
|
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/api/14_quarto.ipynb.
|
|
4
4
|
|
|
5
|
+
# %% auto #0
|
|
6
|
+
__all__ = ['BASE_QUARTO_URL', 'install_quarto', 'install', 'IndentDumper', 'nbdev_sidebar', 'refresh_quarto_yml',
|
|
7
|
+
'nbdev_proc_nbs', 'nbdev_readme', 'nbdev_contributing', 'nbdev_docs', 'prepare', 'fs_watchdog',
|
|
8
|
+
'nbdev_preview']
|
|
9
|
+
|
|
5
10
|
# %% ../nbs/api/14_quarto.ipynb #6a35c7c4-748f-4c82-a9bf-c780a8d83e90
|
|
6
|
-
from __future__ import annotations
|
|
7
11
|
import subprocess,sys,shutil,ast,warnings,traceback
|
|
8
12
|
from os import system
|
|
9
13
|
from contextlib import contextmanager
|
|
@@ -19,11 +23,6 @@ from .serve import proc_nbs,_proc_file
|
|
|
19
23
|
from . import serve_drv
|
|
20
24
|
import yaml
|
|
21
25
|
|
|
22
|
-
# %% auto #0
|
|
23
|
-
__all__ = ['BASE_QUARTO_URL', 'install_quarto', 'install', 'IndentDumper', 'nbdev_sidebar', 'refresh_quarto_yml',
|
|
24
|
-
'nbdev_proc_nbs', 'nbdev_readme', 'nbdev_contributing', 'nbdev_docs', 'prepare', 'fs_watchdog',
|
|
25
|
-
'nbdev_preview']
|
|
26
|
-
|
|
27
26
|
# %% ../nbs/api/14_quarto.ipynb #aae2d2be-ad03-4536-bf70-c4575f39cea3
|
|
28
27
|
def _sprun(cmd):
|
|
29
28
|
try: subprocess.check_output(cmd, shell=True)
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/api/08_showdoc.ipynb.
|
|
4
4
|
|
|
5
|
+
# %% auto #0
|
|
6
|
+
__all__ = ['BasicMarkdownRenderer', 'show_doc', 'doc', 'showdoc_nm', 'colab_link']
|
|
7
|
+
|
|
5
8
|
# %% ../nbs/api/08_showdoc.ipynb #7f371f15
|
|
6
|
-
from __future__ import annotations
|
|
7
9
|
from .doclinks import *
|
|
8
10
|
from .config import get_config
|
|
9
11
|
|
|
@@ -16,9 +18,6 @@ from collections import OrderedDict
|
|
|
16
18
|
from textwrap import fill
|
|
17
19
|
from types import FunctionType
|
|
18
20
|
|
|
19
|
-
# %% auto #0
|
|
20
|
-
__all__ = ['BasicMarkdownRenderer', 'show_doc', 'doc', 'showdoc_nm', 'colab_link']
|
|
21
|
-
|
|
22
21
|
# %% ../nbs/api/08_showdoc.ipynb #abe98f5c
|
|
23
22
|
def _ext_link(url, txt, xtra=""): return f'[{txt}]({url}){{target="_blank" {xtra}}}'
|
|
24
23
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nbdev
|
|
3
|
-
Version: 3.0.
|
|
3
|
+
Version: 3.0.14
|
|
4
4
|
Summary: Create delightful software with Jupyter Notebooks
|
|
5
5
|
Author-email: "Jeremy Howard and the fast.ai community" <j@fast.ai>
|
|
6
6
|
License: Apache-2.0
|
|
@@ -16,7 +16,7 @@ Classifier: License :: OSI Approved :: Apache Software License
|
|
|
16
16
|
Requires-Python: >=3.9
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
License-File: LICENSE
|
|
19
|
-
Requires-Dist: fastcore>=1.12.
|
|
19
|
+
Requires-Dist: fastcore>=1.12.35
|
|
20
20
|
Requires-Dist: execnb>=0.1.12
|
|
21
21
|
Requires-Dist: astunparse
|
|
22
22
|
Requires-Dist: ghapi>=1.0.3
|
|
@@ -19,7 +19,7 @@ classifiers = [
|
|
|
19
19
|
"License :: OSI Approved :: Apache Software License",
|
|
20
20
|
]
|
|
21
21
|
dynamic = ["version"]
|
|
22
|
-
dependencies = [ "fastcore>=1.12.
|
|
22
|
+
dependencies = [ "fastcore>=1.12.35", "execnb>=0.1.12", "astunparse", "ghapi>=1.0.3", "watchdog", "asttokens",
|
|
23
23
|
"setuptools", "build", "fastgit", "pyyaml", "tomli; python_version < '3.11'", ]
|
|
24
24
|
|
|
25
25
|
[project.optional-dependencies]
|
|
@@ -76,7 +76,9 @@ version = {attr = "nbdev.__version__"}
|
|
|
76
76
|
include = ["nbdev"]
|
|
77
77
|
|
|
78
78
|
[tool.nbdev]
|
|
79
|
+
allowed_metadata_keys = ['solveit_dialog_mode', 'solveit_ver']
|
|
79
80
|
custom_sidebar = true
|
|
80
81
|
readme_nb = "getting_started.ipynb"
|
|
81
82
|
jupyter_hooks = true
|
|
83
|
+
allowed_cell_metadata_keys = ['solveit_ai']
|
|
82
84
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|