nbdev 3.3.14__tar.gz → 3.3.15__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.
Files changed (40) hide show
  1. {nbdev-3.3.14/nbdev.egg-info → nbdev-3.3.15}/PKG-INFO +1 -1
  2. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/__init__.py +1 -1
  3. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/config.py +5 -5
  4. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/skill.py +3 -1
  5. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/test.py +3 -2
  6. {nbdev-3.3.14 → nbdev-3.3.15/nbdev.egg-info}/PKG-INFO +1 -1
  7. {nbdev-3.3.14 → nbdev-3.3.15}/CONTRIBUTING.md +0 -0
  8. {nbdev-3.3.14 → nbdev-3.3.15}/LICENSE +0 -0
  9. {nbdev-3.3.14 → nbdev-3.3.15}/MANIFEST.in +0 -0
  10. {nbdev-3.3.14 → nbdev-3.3.15}/README.md +0 -0
  11. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/_modidx.py +0 -0
  12. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/clean.py +0 -0
  13. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/cli.py +0 -0
  14. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/diff.py +0 -0
  15. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/doclinks.py +0 -0
  16. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/export.py +0 -0
  17. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/extract_attachments.py +0 -0
  18. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/frontmatter.py +0 -0
  19. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/imports.py +0 -0
  20. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/maker.py +0 -0
  21. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/merge.py +0 -0
  22. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/migrate.py +0 -0
  23. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/moddocs.py +0 -0
  24. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/process.py +0 -0
  25. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/processors.py +0 -0
  26. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/qmd.py +0 -0
  27. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/quarto.py +0 -0
  28. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/release.py +0 -0
  29. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/scrubmagics.py +0 -0
  30. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/serve.py +0 -0
  31. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/serve_drv.py +0 -0
  32. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/showdoc.py +0 -0
  33. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev/sync.py +0 -0
  34. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev.egg-info/SOURCES.txt +0 -0
  35. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev.egg-info/dependency_links.txt +0 -0
  36. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev.egg-info/entry_points.txt +0 -0
  37. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev.egg-info/requires.txt +0 -0
  38. {nbdev-3.3.14 → nbdev-3.3.15}/nbdev.egg-info/top_level.txt +0 -0
  39. {nbdev-3.3.14 → nbdev-3.3.15}/pyproject.toml +0 -0
  40. {nbdev-3.3.14 → nbdev-3.3.15}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nbdev
3
- Version: 3.3.14
3
+ Version: 3.3.15
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
@@ -6,7 +6,7 @@ Modules:
6
6
  - `nbdev.moddocs`: # Module docs: creating them from existing notebooks
7
7
  - `nbdev.skill`: Author clear, executable nbdev notebooks where code, prose, examples, outputs, and tests form one coherent narrative. Trigger: ALWAYS read this before ANY notebook edit."""
8
8
 
9
- __version__ = "3.3.14"
9
+ __version__ = "3.3.15"
10
10
 
11
11
  from .doclinks import nbdev_export
12
12
  from .showdoc import show_doc
@@ -123,13 +123,13 @@ def nbdev_create_config(
123
123
  path.mkdir(exist_ok=True, parents=True)
124
124
 
125
125
  # Infer from git if not provided
126
- inf = _fetch_from_git()
126
+ inf,ucfg = _fetch_from_git(),_user_config()
127
127
  repo = repo or inf.get('repo') or path.resolve().name
128
- user = user or inf.get('user', '')
128
+ user = user or inf.get('user') or ucfg.get('user', '')
129
129
  if not user: raise ValueError("Could not infer `user` from git. Please pass --user explicitly.")
130
- author = author or inf.get('author', '')
130
+ author = author or inf.get('author') or ucfg.get('author', '')
131
131
  if not author: raise ValueError("Could not infer `author` from git. Please pass --author explicitly.")
132
- author_email = author_email or inf.get('author_email', '')
132
+ author_email = author_email or inf.get('author_email') or ucfg.get('author_email', '')
133
133
  if not author_email: raise ValueError("Could not infer `author_email` from git. Please pass --author-email explicitly.")
134
134
  branch = branch or inf.get('branch', 'main')
135
135
  description = description or inf.get('description', '')
@@ -171,7 +171,7 @@ def _find_nbdev_pyproject(path=None):
171
171
  # %% ../nbs/api/01_config.ipynb #3dac70e0
172
172
  nbdev_defaults = dict(nbs_path='nbs', doc_path='_docs', tst_flags='notest', recursive=True, readme_nb='index.ipynb',
173
173
  clean_ids=True, clear_all=False, put_version_in_init=True, jupyter_hooks=False, custom_sidebar=False, branch='main',
174
- doc_procs=[], export_procs=[], exec_profile=True)
174
+ doc_procs=[], export_procs=[], exec_profile=True, cell_timeout=600)
175
175
 
176
176
  _path_keys = 'lib_path', 'nbs_path', 'doc_path'
177
177
 
@@ -75,7 +75,7 @@ Keep imports in dedicated import cells, define values near first use, reuse esta
75
75
 
76
76
  # Directives
77
77
 
78
- `#| default_exp` names the module. `#| export` marks exported cells. Underscore-prefixed helpers may export without joining the public API. `#| exportd` exports a code cell's source to the module docstring instead of the module. `#| hide` keeps necessary but distracting material off the page. `#| eval: false` is for cells that genuinely must not run, not for suppressing broken ones, and it cascades. An unevaluated cell cannot create state for later evaluated cells.
78
+ `#| default_exp` names the module. `#| export` marks exported cells. Underscore-prefixed helpers may export without joining the public API. `#| exportd` exports a code cell's source to the module docstring instead of the module. `#| hide` keeps necessary but distracting material off the page. `#| eval: false` is for cells that genuinely must not run, not for suppressing broken ones. An unevaluated cell cannot create state for later evaluated cells.
79
79
 
80
80
  # nbdev v3
81
81
 
@@ -86,4 +86,6 @@ Directives can also live in cell *metadata*, under the `nbdev` key (`{"nbdev": {
86
86
  # Before you finish
87
87
 
88
88
  A behavior change means revising the lesson cells it touches: prose, displayed output, and assertions move together. Where you revised or added an assertion, check it fails against the old code and passes against the new. Many changes need no new cell at all - never add one merely to witness a change. Re-read the touched section as a reader would, against the conventions above. Style damage breaks no test and no export, so the harm only shows on the docs page.
89
+
90
+ Run notebooks with `nbdev-test <nb>`.
89
91
  """
@@ -135,12 +135,13 @@ def nbdev_test(
135
135
  ignore_fname:str='.notest', # Filename that will result in siblings being ignored
136
136
  verbose:bool=False, # Print stdout/stderr from notebook cells?
137
137
  save:bool=False, # Write outputs back to notebooks on success?
138
- cell_timeout:int=600, # Seconds before each cell times out (0: no limit)
139
- cell_timing_min:float=None, # Print cells slower than this many seconds (None: no timing output)
138
+ cell_timeout:int=None, # Seconds before each cell times out (0: no limit; default `cell_timeout` config, 600)
139
+ cell_timing_min:float=None, # Print cells slower than this many seconds (default `cell_timing_min` config, else none)
140
140
  **kwargs
141
141
  ):
142
142
  "Test in parallel notebooks matching `path`, passing along `flags`"
143
143
  cfg = get_config(Path(path).resolve() if path else None)
144
+ cell_timeout,cell_timing_min = ifnone(cell_timeout, cfg.cell_timeout),ifnone(cell_timing_min, cfg.get('cell_timing_min'))
144
145
  skip_flags = cfg.tst_flags
145
146
  if isinstance(skip_flags, str): skip_flags = skip_flags.split()
146
147
  force_flags = flags.split()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nbdev
3
- Version: 3.3.14
3
+ Version: 3.3.15
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
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