nbdev 2.3.29__tar.gz → 2.3.31__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-2.3.29/nbdev.egg-info → nbdev-2.3.31}/PKG-INFO +1 -1
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/__init__.py +1 -1
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/_modidx.py +1 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/config.py +6 -2
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/doclinks.py +3 -2
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/processors.py +2 -1
- {nbdev-2.3.29 → nbdev-2.3.31/nbdev.egg-info}/PKG-INFO +1 -1
- {nbdev-2.3.29 → nbdev-2.3.31}/settings.ini +2 -1
- {nbdev-2.3.29 → nbdev-2.3.31}/CONTRIBUTING.md +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/LICENSE +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/MANIFEST.in +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/README.md +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/clean.py +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/cli.py +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/export.py +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/extract_attachments.py +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/frontmatter.py +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/imports.py +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/maker.py +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/merge.py +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/migrate.py +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/process.py +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/qmd.py +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/quarto.py +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/release.py +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/serve.py +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/serve_drv.py +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/showdoc.py +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/sync.py +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev/test.py +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev.egg-info/SOURCES.txt +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev.egg-info/dependency_links.txt +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev.egg-info/entry_points.txt +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev.egg-info/not-zip-safe +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev.egg-info/requires.txt +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/nbdev.egg-info/top_level.txt +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/setup.cfg +0 -0
- {nbdev-2.3.29 → nbdev-2.3.31}/setup.py +0 -0
|
@@ -41,6 +41,7 @@ d = { 'settings': { 'branch': 'master',
|
|
|
41
41
|
'nbdev.config.config_key': ('api/config.html#config_key', 'nbdev/config.py'),
|
|
42
42
|
'nbdev.config.create_output': ('api/config.html#create_output', 'nbdev/config.py'),
|
|
43
43
|
'nbdev.config.get_config': ('api/config.html#get_config', 'nbdev/config.py'),
|
|
44
|
+
'nbdev.config.is_nbdev': ('api/config.html#is_nbdev', 'nbdev/config.py'),
|
|
44
45
|
'nbdev.config.nbdev_create_config': ('api/config.html#nbdev_create_config', 'nbdev/config.py'),
|
|
45
46
|
'nbdev.config.show_src': ('api/config.html#show_src', 'nbdev/config.py'),
|
|
46
47
|
'nbdev.config.update_version': ('api/config.html#update_version', 'nbdev/config.py'),
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
# AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/api/01_config.ipynb.
|
|
4
4
|
|
|
5
5
|
# %% auto 0
|
|
6
|
-
__all__ = ['nbdev_create_config', 'get_config', 'config_key', '
|
|
7
|
-
'write_cells']
|
|
6
|
+
__all__ = ['nbdev_create_config', 'get_config', 'config_key', 'is_nbdev', 'create_output', 'show_src', 'update_version',
|
|
7
|
+
'add_init', 'write_cells']
|
|
8
8
|
|
|
9
9
|
# %% ../nbs/api/01_config.ipynb
|
|
10
10
|
from datetime import datetime
|
|
@@ -63,6 +63,7 @@ def _apply_defaults(
|
|
|
63
63
|
clear_all:bool_arg=False, # Remove all cell metadata and cell outputs?
|
|
64
64
|
cell_number:bool_arg=True, # Add cell number to the exported file
|
|
65
65
|
put_version_in_init:bool_arg=True, # Add the version to the main __init__.py in nbdev_export
|
|
66
|
+
skip_procs:str='', # A comma-separated list of processors that you want to skip
|
|
66
67
|
):
|
|
67
68
|
"Apply default settings where missing in `cfg`."
|
|
68
69
|
if getattr(cfg,'repo',None) is None:
|
|
@@ -208,6 +209,9 @@ def config_key(c, default=None, path=True, missing_ok=None):
|
|
|
208
209
|
warn("`config_key` is deprecated. Use `get_config().get` or `get_config().path` instead.", DeprecationWarning)
|
|
209
210
|
return get_config().path(c, default) if path else get_config().get(c, default)
|
|
210
211
|
|
|
212
|
+
# %% ../nbs/api/01_config.ipynb
|
|
213
|
+
def is_nbdev(): return _nbdev_config_file().exists()
|
|
214
|
+
|
|
211
215
|
# %% ../nbs/api/01_config.ipynb
|
|
212
216
|
def create_output(txt, mime):
|
|
213
217
|
"Add a cell output containing `txt` of the `mime` text MIME sub-type"
|
|
@@ -143,9 +143,10 @@ def nbdev_export(
|
|
|
143
143
|
**kwargs):
|
|
144
144
|
"Export notebooks in `path` to Python modules"
|
|
145
145
|
if os.environ.get('IN_TEST',0): return
|
|
146
|
+
if not is_nbdev(): raise Exception('`nbdev_export` must be called from a directory within a nbdev project.')
|
|
146
147
|
if procs:
|
|
147
|
-
|
|
148
|
-
|
|
148
|
+
import nbdev.export
|
|
149
|
+
procs = [getattr(nbdev.export, p) for p in L(procs)]
|
|
149
150
|
files = nbglob(path=path, as_path=True, **kwargs).sorted('name')
|
|
150
151
|
for f in files: nb_export(f, procs=procs)
|
|
151
152
|
add_init(get_config().lib_path)
|
|
@@ -282,7 +282,8 @@ class FilterDefaults:
|
|
|
282
282
|
|
|
283
283
|
def procs(self):
|
|
284
284
|
"Processors for export"
|
|
285
|
-
|
|
285
|
+
skip_procs = get_config().get('skip_procs', '').split(',')
|
|
286
|
+
return L(self.base_procs()).filter(lambda x: x.__name__ not in skip_procs) + self.xtra_procs()
|
|
286
287
|
|
|
287
288
|
def nb_proc(self, nb):
|
|
288
289
|
"Get an `NBProcessor` with these processors"
|
|
@@ -9,7 +9,7 @@ author = Jeremy Howard and Hamel Husain
|
|
|
9
9
|
author_email = j@fast.ai
|
|
10
10
|
branch = master
|
|
11
11
|
min_python = 3.7
|
|
12
|
-
version = 2.3.
|
|
12
|
+
version = 2.3.31
|
|
13
13
|
audience = Developers
|
|
14
14
|
language = English
|
|
15
15
|
custom_sidebar = True
|
|
@@ -68,4 +68,5 @@ clean_ids = False
|
|
|
68
68
|
clear_all = False
|
|
69
69
|
cell_number = False
|
|
70
70
|
put_version_in_init = True
|
|
71
|
+
skip_procs =
|
|
71
72
|
|
|
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
|
|
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
|