nbdev 3.3.13__tar.gz → 3.3.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.
Files changed (40) hide show
  1. {nbdev-3.3.13/nbdev.egg-info → nbdev-3.3.14}/PKG-INFO +1 -1
  2. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/__init__.py +1 -1
  3. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/cli.py +2 -2
  4. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/config.py +1 -1
  5. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/doclinks.py +4 -3
  6. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/release.py +2 -2
  7. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/test.py +1 -1
  8. {nbdev-3.3.13 → nbdev-3.3.14/nbdev.egg-info}/PKG-INFO +1 -1
  9. {nbdev-3.3.13 → nbdev-3.3.14}/CONTRIBUTING.md +0 -0
  10. {nbdev-3.3.13 → nbdev-3.3.14}/LICENSE +0 -0
  11. {nbdev-3.3.13 → nbdev-3.3.14}/MANIFEST.in +0 -0
  12. {nbdev-3.3.13 → nbdev-3.3.14}/README.md +0 -0
  13. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/_modidx.py +0 -0
  14. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/clean.py +0 -0
  15. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/diff.py +0 -0
  16. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/export.py +0 -0
  17. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/extract_attachments.py +0 -0
  18. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/frontmatter.py +0 -0
  19. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/imports.py +0 -0
  20. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/maker.py +0 -0
  21. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/merge.py +0 -0
  22. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/migrate.py +0 -0
  23. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/moddocs.py +0 -0
  24. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/process.py +0 -0
  25. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/processors.py +0 -0
  26. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/qmd.py +0 -0
  27. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/quarto.py +0 -0
  28. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/scrubmagics.py +0 -0
  29. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/serve.py +0 -0
  30. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/serve_drv.py +0 -0
  31. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/showdoc.py +0 -0
  32. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/skill.py +0 -0
  33. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev/sync.py +0 -0
  34. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev.egg-info/SOURCES.txt +0 -0
  35. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev.egg-info/dependency_links.txt +0 -0
  36. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev.egg-info/entry_points.txt +0 -0
  37. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev.egg-info/requires.txt +0 -0
  38. {nbdev-3.3.13 → nbdev-3.3.14}/nbdev.egg-info/top_level.txt +0 -0
  39. {nbdev-3.3.13 → nbdev-3.3.14}/pyproject.toml +0 -0
  40. {nbdev-3.3.13 → nbdev-3.3.14}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nbdev
3
- Version: 3.3.13
3
+ Version: 3.3.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
@@ -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.13"
9
+ __version__ = "3.3.14"
10
10
 
11
11
  from .doclinks import nbdev_export
12
12
  from .showdoc import show_doc
@@ -201,10 +201,10 @@ def watch_export(
201
201
  if (not '.ipynb_checkpoints' in p and p.endswith('.ipynb') and not Path(p).name.startswith(('tmp','.~'))):
202
202
  if e.event_type == 'modified':
203
203
  time.sleep(0.1)
204
- try: run(f'nb-export --lib_path {lib} "{p}"')
204
+ try: run(f'nb-export --lib-path {lib} "{p}"')
205
205
  except IOError:
206
206
  time.sleep(0.3)
207
- run(f'nb-export --lib_path {lib} "{p}"')
207
+ run(f'nb-export --lib-path {lib} "{p}"')
208
208
  with fs_watchdog(_export, nbs):
209
209
  while True: time.sleep(1)
210
210
 
@@ -130,7 +130,7 @@ def nbdev_create_config(
130
130
  author = author or inf.get('author', '')
131
131
  if not author: raise ValueError("Could not infer `author` from git. Please pass --author explicitly.")
132
132
  author_email = author_email or inf.get('author_email', '')
133
- if not author_email: raise ValueError("Could not infer `author_email` from git. Please pass --author_email explicitly.")
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', '')
136
136
 
@@ -154,9 +154,10 @@ def nbdev_export(
154
154
  procs = [import_obj(p) for p in procs] if procs else None
155
155
  files = nbglob(path=path, as_path=True, **kwargs).sorted('name')
156
156
  for f in files: nb_export(f, procs=procs)
157
- add_init(cfg.lib_path)
158
- update_llms_txt()
159
- _build_modidx()
157
+ if cfg.lib_path.exists():
158
+ add_init(cfg.lib_path)
159
+ update_llms_txt()
160
+ _build_modidx()
160
161
 
161
162
  # %% ../nbs/api/05_doclinks.ipynb #3134c22b
162
163
  typs = 'module','class','method','function'
@@ -51,7 +51,7 @@ def _remote_shas(s): return {o.split()[0] for o in s.splitlines()}
51
51
 
52
52
  def _check_changelog_base(tag):
53
53
  if _is_ancestor(tag): return
54
- raise SystemExit(f'HEAD does not contain the latest release ({tag}). Write CHANGELOG.md manually, then run with --no_changelog.')
54
+ raise SystemExit(f'HEAD does not contain the latest release ({tag}). Write CHANGELOG.md manually, then run with --no-changelog.')
55
55
 
56
56
  def _release_head():
57
57
  _release_branch()
@@ -335,7 +335,7 @@ def release_conda(
335
335
  if skip_upload: return print(loc)
336
336
  if not upload_user: upload_user = get_config().conda_user
337
337
  if not upload_user: return print("`conda_user` not in pyproject.toml and no `upload_user` passed. Cannot upload")
338
- if 'anaconda upload' not in res: return print(f"{res}\n\nFailed. Check auto-upload not set in .condarc. Try `--do_build False`.")
338
+ if 'anaconda upload' not in res: return print(f"{res}\n\nFailed. Check auto-upload not set in .condarc. Try `--do-build False`.")
339
339
  return anaconda_upload(name, loc)
340
340
 
341
341
  # %% ../nbs/api/18_release.ipynb #0500d972
@@ -123,7 +123,7 @@ def _keep_file(
123
123
  else: True
124
124
 
125
125
  # %% ../nbs/api/12_test.ipynb #f8cc6a61-a48e-4ab1-89a9-18316ca795d6
126
- @call_parse
126
+ @call_parse(pos=['path'])
127
127
  @delegates(nbglob_cli)
128
128
  def nbdev_test(
129
129
  path:str=None, # A notebook name or glob to test
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nbdev
3
- Version: 3.3.13
3
+ Version: 3.3.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
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