nbdev 3.3.19__tar.gz → 3.3.20__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 (39) hide show
  1. {nbdev-3.3.19/nbdev.egg-info → nbdev-3.3.20}/PKG-INFO +1 -1
  2. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/__init__.py +1 -1
  3. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/cli.py +3 -3
  4. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/config.py +2 -2
  5. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/skill.py +2 -2
  6. {nbdev-3.3.19 → nbdev-3.3.20/nbdev.egg-info}/PKG-INFO +1 -1
  7. {nbdev-3.3.19 → nbdev-3.3.20}/CONTRIBUTING.md +0 -0
  8. {nbdev-3.3.19 → nbdev-3.3.20}/LICENSE +0 -0
  9. {nbdev-3.3.19 → nbdev-3.3.20}/README.md +0 -0
  10. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/_modidx.py +0 -0
  11. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/clean.py +0 -0
  12. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/diff.py +0 -0
  13. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/doclinks.py +0 -0
  14. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/export.py +0 -0
  15. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/extract_attachments.py +0 -0
  16. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/frontmatter.py +0 -0
  17. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/imports.py +0 -0
  18. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/maker.py +0 -0
  19. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/merge.py +0 -0
  20. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/migrate.py +0 -0
  21. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/moddocs.py +0 -0
  22. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/process.py +0 -0
  23. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/processors.py +0 -0
  24. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/qmd.py +0 -0
  25. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/quarto.py +0 -0
  26. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/release.py +0 -0
  27. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/scrubmagics.py +0 -0
  28. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/serve.py +0 -0
  29. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/serve_drv.py +0 -0
  30. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/showdoc.py +0 -0
  31. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/sync.py +0 -0
  32. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev/test.py +0 -0
  33. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev.egg-info/SOURCES.txt +0 -0
  34. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev.egg-info/dependency_links.txt +0 -0
  35. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev.egg-info/entry_points.txt +0 -0
  36. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev.egg-info/requires.txt +0 -0
  37. {nbdev-3.3.19 → nbdev-3.3.20}/nbdev.egg-info/top_level.txt +0 -0
  38. {nbdev-3.3.19 → nbdev-3.3.20}/pyproject.toml +0 -0
  39. {nbdev-3.3.19 → nbdev-3.3.20}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nbdev
3
- Version: 3.3.19
3
+ Version: 3.3.20
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 nbdev notebooks as source, documentation, examples, and tests. Ensure this guidance is in context before any notebook edit."""
8
8
 
9
- __version__ = "3.3.19"
9
+ __version__ = "3.3.20"
10
10
 
11
11
  from .doclinks import nbdev_export
12
12
  from .showdoc import show_doc
@@ -156,16 +156,16 @@ async def nbdev_update_license(
156
156
 
157
157
  mapped = mapping.get(to, None)
158
158
  if mapped not in avail_lic: raise ValueError(f"{to} is not an available license")
159
- body = (await api.licenses.get(mapped))['body']
159
+ lic = await api.licenses.get(mapped)
160
160
 
161
161
  copyright = f"{datetime.now().year}, {cfg.author}"
162
- body = body.replace('[year], [fullname]', copyright)
162
+ body = lic['body'].replace('[year], [fullname]', copyright)
163
163
  body = body.replace('[year] [fullname]', copyright)
164
164
 
165
165
  # Update pyproject.toml
166
166
  pyproj = cfg.config_file
167
167
  content = pyproj.read_text()
168
- content = re.sub(r'^(license\s*=\s*\{text\s*=\s*").*?(")', rf'\g<1>{to}\2', content, flags=re.MULTILINE)
168
+ content = re.sub(r'^license\s*=.*$', f'license = "{lic.spdx_id}"', content, flags=re.MULTILINE)
169
169
  pyproj.write_text(content)
170
170
 
171
171
  Path('LICENSE').write_text(body)
@@ -71,7 +71,7 @@ def _fetch_from_git(raise_err=False):
71
71
 
72
72
  # %% ../nbs/api/01_config.ipynb #05aae09f
73
73
  pyproject_tmpl = '''[build-system]
74
- requires = ["setuptools>=64"]
74
+ requires = ["setuptools>=77"]
75
75
  build-backend = "setuptools.build_meta"
76
76
 
77
77
  [project]
@@ -80,7 +80,7 @@ dynamic = ["version"]
80
80
  description = "{description}"
81
81
  readme = "README.md"
82
82
  requires-python = ">={min_python}"
83
- license = {{text = "{license}"}}
83
+ license = "{license}"
84
84
  authors = [{{name = "{author}", email = "{author_email}"}}]
85
85
  keywords = {keywords}
86
86
  classifiers = [
@@ -4,7 +4,7 @@
4
4
 
5
5
  Write notebooks to be read top-to-bottom, interleaving implementation, explanation, examples, outputs, and failure demonstrations. These conventions target published libraries; match surrounding notebooks in internal projects.
6
6
 
7
- Check the file, not the repo: `# AUTOGENERATED! DO NOT EDIT!` names the source notebook; `# %% ../nbs/04_usage.ipynb #a45f753a` identifies the source cell. Edit that notebook, never generated modules, `__all__`, `_modidx.py`, or module docstrings; `nbdev-export` regenerates them. Unmarked modules are hand-written. Use notebooks where narrative/examples teach the API, plain `.py` for dense mechanism iterated under pytest. Tests follow source form: lesson cells for notebooks, `tests/*.py` for plain modules.
7
+ Check the file, not the repo: `# AUTOGENERATED! DO NOT EDIT!` names the source notebook; `# %% ../nbs/04_usage.ipynb #a45f753a` identifies the source cell. Edit that notebook, never generated modules, `__all__`, `_modidx.py`, or module docstrings; `nbdev-export` regenerates them. Unmarked modules are hand-written. Use notebooks where narrative/examples teach the API, plain `.py` for dense mechanism iterated under pytest (which should be very rare; never add pytests to a project that doesn't have any, unless explicitly requested). Tests follow source form: lesson cells for notebooks, `tests/*.py` for plain modules.
8
8
 
9
9
  For project-level questions, read `nbs/index.ipynb`, the source of README.md; regenerate with `nbdev-readme` after changes.
10
10
 
@@ -36,7 +36,7 @@ Check claims by running code before documenting them; preview assembly with `nbd
36
36
 
37
37
  Write page content, not standalone test cells (except rare hidden checks): realistic values, minimal setup, reused objects, and direct assertions that support the lesson. End lesson cells with an informative displayed value when there is something useful to show. Compact `_repr_markdown_` or structured summaries can make later examples readable; plots, tables, images, and HTML also provide evidence. Explain what matters in large outputs and keep stored results focused.
38
38
 
39
- Use `fastcore.test` assertions and `expect_fail` in ordinary code cells, with one focused error example per contract. Keep check plumbing, mocks, dense comprehensions, and long setup out of reader-facing examples: extract a small helper or hide the check.
39
+ Use `fastcore.test` assertions and `expect_fail` in ordinary code cells, with one focused error example per contract. Keep check plumbing, mocks, dense comprehensions, and long setup out of reader-facing examples: extract a small helper or hide the check. Use `nbdev-test --file-re` for running >1 named notebook, since they'll run in parallel.
40
40
 
41
41
  Review these as rewrite signals, not absolute rules:
42
42
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nbdev
3
- Version: 3.3.19
3
+ Version: 3.3.20
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