nbdev 3.3.22__tar.gz → 3.3.24__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 (41) hide show
  1. {nbdev-3.3.22/nbdev.egg-info → nbdev-3.3.24}/PKG-INFO +6 -4
  2. {nbdev-3.3.22 → nbdev-3.3.24}/README.md +5 -3
  3. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/__init__.py +1 -1
  4. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/config.py +1 -1
  5. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/quarto.py +5 -7
  6. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/release.py +2 -2
  7. {nbdev-3.3.22 → nbdev-3.3.24/nbdev.egg-info}/PKG-INFO +6 -4
  8. {nbdev-3.3.22 → nbdev-3.3.24}/CONTRIBUTING.md +0 -0
  9. {nbdev-3.3.22 → nbdev-3.3.24}/LICENSE +0 -0
  10. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/_modidx.py +0 -0
  11. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/clean.py +0 -0
  12. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/cli.py +0 -0
  13. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/diff.py +0 -0
  14. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/doclinks.py +0 -0
  15. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/export.py +0 -0
  16. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/extract_attachments.py +0 -0
  17. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/frontmatter.py +0 -0
  18. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/imports.py +0 -0
  19. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/maker.py +0 -0
  20. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/merge.py +0 -0
  21. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/migrate.py +0 -0
  22. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/moddocs.py +0 -0
  23. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/process.py +0 -0
  24. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/processors.py +0 -0
  25. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/qmd.py +0 -0
  26. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/quarto_render.py +0 -0
  27. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/scrubmagics.py +0 -0
  28. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/serve.py +0 -0
  29. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/serve_drv.py +0 -0
  30. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/showdoc.py +0 -0
  31. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/skill.py +0 -0
  32. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/sync.py +0 -0
  33. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev/test.py +0 -0
  34. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev.egg-info/SOURCES.txt +0 -0
  35. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev.egg-info/dependency_links.txt +0 -0
  36. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev.egg-info/entry_points.txt +0 -0
  37. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev.egg-info/requires.txt +0 -0
  38. {nbdev-3.3.22 → nbdev-3.3.24}/nbdev.egg-info/top_level.txt +0 -0
  39. {nbdev-3.3.22 → nbdev-3.3.24}/pyproject.toml +0 -0
  40. {nbdev-3.3.22 → nbdev-3.3.24}/setup.cfg +0 -0
  41. {nbdev-3.3.22 → nbdev-3.3.24}/tests/test_quarto_render.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nbdev
3
- Version: 3.3.22
3
+ Version: 3.3.24
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-Expression: Apache-2.0
@@ -100,7 +100,9 @@ You can also run `nbdev-help` from the terminal to see the full list of availabl
100
100
  nbdev-conda Create a `meta.yaml` file ready to be built into a package, and optionally build and upload it
101
101
  nbdev-contributing Create CONTRIBUTING.md from contributing_nb (defaults to 'contributing.ipynb' if present). Skips if the file doesn't exist.
102
102
  nbdev-create-config Create a pyproject.toml config file.
103
- nbdev-docs Create Quarto docs and README.md
103
+ nbdev-diff Cell-level diffs for changed notebooks between two git refs
104
+ nbdev-diff-driver Git external diff driver for notebooks; installed by `nbdev-install-hooks`
105
+ nbdev-docs Create Quarto docs
104
106
  nbdev-export Export notebooks in `path` to Python modules
105
107
  nbdev-filter A notebook filter for Quarto
106
108
  nbdev-fix Create working notebook from conflicted notebook `nbname`
@@ -116,9 +118,9 @@ You can also run `nbdev-help` from the terminal to see the full list of availabl
116
118
  nbdev-preview Preview docs locally
117
119
  nbdev-proc-nbs Process notebooks in `path` for docs rendering
118
120
  nbdev-pypi Create and upload Python package to PyPI
119
- nbdev-readme Create README.md from readme_nb (index.ipynb by default)
121
+ nbdev-readme Create README.md from readme_nb (index.ipynb by default). Skips if the file doesn't exist.
120
122
  nbdev-release-both Release both conda and PyPI packages
121
- nbdev-release-gh Calls `nbdev-changelog`, lets you edit the result, then pushes to git and calls `nbdev-release-git`
123
+ nbdev-release-gh Create the changelog, optionally edit it, then push and create the GitHub release
122
124
  nbdev-release-git Tag and create a release in GitHub for the current version
123
125
  nbdev-requirements Writes a `requirements.txt` file to `directory` based on pyproject.toml.
124
126
  nbdev-sidebar Create sidebar.yml
@@ -56,7 +56,9 @@ You can also run `nbdev-help` from the terminal to see the full list of availabl
56
56
  nbdev-conda Create a `meta.yaml` file ready to be built into a package, and optionally build and upload it
57
57
  nbdev-contributing Create CONTRIBUTING.md from contributing_nb (defaults to 'contributing.ipynb' if present). Skips if the file doesn't exist.
58
58
  nbdev-create-config Create a pyproject.toml config file.
59
- nbdev-docs Create Quarto docs and README.md
59
+ nbdev-diff Cell-level diffs for changed notebooks between two git refs
60
+ nbdev-diff-driver Git external diff driver for notebooks; installed by `nbdev-install-hooks`
61
+ nbdev-docs Create Quarto docs
60
62
  nbdev-export Export notebooks in `path` to Python modules
61
63
  nbdev-filter A notebook filter for Quarto
62
64
  nbdev-fix Create working notebook from conflicted notebook `nbname`
@@ -72,9 +74,9 @@ You can also run `nbdev-help` from the terminal to see the full list of availabl
72
74
  nbdev-preview Preview docs locally
73
75
  nbdev-proc-nbs Process notebooks in `path` for docs rendering
74
76
  nbdev-pypi Create and upload Python package to PyPI
75
- nbdev-readme Create README.md from readme_nb (index.ipynb by default)
77
+ nbdev-readme Create README.md from readme_nb (index.ipynb by default). Skips if the file doesn't exist.
76
78
  nbdev-release-both Release both conda and PyPI packages
77
- nbdev-release-gh Calls `nbdev-changelog`, lets you edit the result, then pushes to git and calls `nbdev-release-git`
79
+ nbdev-release-gh Create the changelog, optionally edit it, then push and create the GitHub release
78
80
  nbdev-release-git Tag and create a release in GitHub for the current version
79
81
  nbdev-requirements Writes a `requirements.txt` file to `directory` based on pyproject.toml.
80
82
  nbdev-sidebar Create sidebar.yml
@@ -6,7 +6,7 @@ Modules:
6
6
  - `nbdev.moddocs`: # Module docs: creating them from existing notebooks
7
7
  - `nbdev.skill`: Write, read and review nbdev notebooks as source, documentation, examples and tests. You MUST read this before any work on a project with notebooks."""
8
8
 
9
- __version__ = "3.3.22"
9
+ __version__ = "3.3.24"
10
10
 
11
11
  from .doclinks import nbdev_export
12
12
  from .showdoc import show_doc
@@ -360,7 +360,7 @@ def add_init(path=None):
360
360
  subds = (os.listdir(r/d) for d in ds)
361
361
  if _has_py(fs) or any(filter(_has_py, subds)) and not (r/_init).exists(): (r/_init).touch()
362
362
  if get_config().get('put_version_in_init', True): update_version(path)
363
- if get_config().get('update_pyproject', True): update_proj(path.parent)
363
+ if get_config().get('update_pyproject', True): update_proj(get_config().config_path)
364
364
  update_init_mdoc(path)
365
365
 
366
366
  # %% ../nbs/api/01_config.ipynb #a01b98bb
@@ -63,8 +63,8 @@ def install_quarto():
63
63
  def install():
64
64
  "Install Quarto and the current library"
65
65
  install_quarto.__wrapped__()
66
- d = get_config().lib_path
67
- if (d/'__init__.py').exists(): system(f'pip install -e "{d.parent}[dev]"')
66
+ cfg = get_config()
67
+ if (cfg.lib_path/'__init__.py').exists(): system(f'pip install -e "{cfg.config_path}[dev]"')
68
68
 
69
69
  # %% ../nbs/api/14_quarto.ipynb #b93f6def
70
70
  def _pre(p,b=True): return ' ' * (len(p.parts)) + ('- ' if b else ' ')
@@ -201,7 +201,7 @@ def refresh_quarto_yml():
201
201
  def _ensure_quarto():
202
202
  if shutil.which('quarto'): return
203
203
  print("Quarto is not installed. We will download and install it for you.")
204
- install.__wrapped__()
204
+ install_quarto.__wrapped__()
205
205
 
206
206
  # %% ../nbs/api/14_quarto.ipynb #66163c30
207
207
  def _chk_nbdev_yml(path):
@@ -339,11 +339,9 @@ def nbdev_docs(
339
339
  path:str=None, # Path to notebooks
340
340
  n_workers:int=defaults.cpus, # Preprocessing and Quarto workers (0 or 1: serial)
341
341
  **kwargs):
342
- "Create Quarto docs and README.md"
343
- cache,cfg,path = _pre_docs(path, n_workers=n_workers, **kwargs)
342
+ "Create Quarto docs"
343
+ cache,cfg,_ = _pre_docs(path, n_workers=n_workers, **kwargs)
344
344
  render_quarto(cache, cache/cfg.doc_path.name, n_workers=n_workers)
345
- nbdev_readme.__wrapped__(path=path, chk_time=True)
346
- nbdev_contributing.__wrapped__(path=path, chk_time=True)
347
345
  shutil.rmtree(cfg.doc_path, ignore_errors=True)
348
346
  move(cache/cfg.doc_path.name, cfg.config_path)
349
347
  _fix_quarto_nav(cfg.doc_path)
@@ -260,7 +260,7 @@ def _get_conda_meta():
260
260
  'source': {'url':rel['url'], 'sha256':rel['digests']['sha256']}
261
261
  }
262
262
 
263
- _dir = cfg.lib_path.parent
263
+ _dir = cfg.config_path
264
264
  readme = _dir/'README.md'
265
265
  descr = readme.read_text() if readme.exists() else ''
266
266
  d2 = {
@@ -360,7 +360,7 @@ def release_pypi(
360
360
  verbose:bool=False # Pass --verbose to twine upload
361
361
  ):
362
362
  "Create and upload Python package to PyPI"
363
- _dir = get_config().lib_path.parent
363
+ _dir = get_config().config_path
364
364
  q = ' --quiet' if quiet else ''
365
365
  p = ' --disable-progress-bar' if quiet else ''
366
366
  system(f'cd {_dir} && rm -rf dist build && python -m build{q}')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nbdev
3
- Version: 3.3.22
3
+ Version: 3.3.24
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-Expression: Apache-2.0
@@ -100,7 +100,9 @@ You can also run `nbdev-help` from the terminal to see the full list of availabl
100
100
  nbdev-conda Create a `meta.yaml` file ready to be built into a package, and optionally build and upload it
101
101
  nbdev-contributing Create CONTRIBUTING.md from contributing_nb (defaults to 'contributing.ipynb' if present). Skips if the file doesn't exist.
102
102
  nbdev-create-config Create a pyproject.toml config file.
103
- nbdev-docs Create Quarto docs and README.md
103
+ nbdev-diff Cell-level diffs for changed notebooks between two git refs
104
+ nbdev-diff-driver Git external diff driver for notebooks; installed by `nbdev-install-hooks`
105
+ nbdev-docs Create Quarto docs
104
106
  nbdev-export Export notebooks in `path` to Python modules
105
107
  nbdev-filter A notebook filter for Quarto
106
108
  nbdev-fix Create working notebook from conflicted notebook `nbname`
@@ -116,9 +118,9 @@ You can also run `nbdev-help` from the terminal to see the full list of availabl
116
118
  nbdev-preview Preview docs locally
117
119
  nbdev-proc-nbs Process notebooks in `path` for docs rendering
118
120
  nbdev-pypi Create and upload Python package to PyPI
119
- nbdev-readme Create README.md from readme_nb (index.ipynb by default)
121
+ nbdev-readme Create README.md from readme_nb (index.ipynb by default). Skips if the file doesn't exist.
120
122
  nbdev-release-both Release both conda and PyPI packages
121
- nbdev-release-gh Calls `nbdev-changelog`, lets you edit the result, then pushes to git and calls `nbdev-release-git`
123
+ nbdev-release-gh Create the changelog, optionally edit it, then push and create the GitHub release
122
124
  nbdev-release-git Tag and create a release in GitHub for the current version
123
125
  nbdev-requirements Writes a `requirements.txt` file to `directory` based on pyproject.toml.
124
126
  nbdev-sidebar Create sidebar.yml
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