nbdev 2.4.1__py3-none-any.whl → 2.4.3__py3-none-any.whl

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/__init__.py CHANGED
@@ -1,4 +1,4 @@
1
- __version__ = "2.4.1"
1
+ __version__ = "2.4.3"
2
2
 
3
3
  from .doclinks import nbdev_export
4
4
  from .showdoc import show_doc
nbdev/doclinks.py CHANGED
@@ -17,7 +17,7 @@ from fastcore.meta import delegates
17
17
  from fastcore.net import urlread
18
18
 
19
19
  import ast,builtins,contextlib
20
- import pkg_resources,importlib
20
+ import importlib
21
21
 
22
22
  from astunparse import unparse
23
23
  from io import BytesIO
@@ -27,6 +27,8 @@ from urllib.parse import urljoin
27
27
  from functools import lru_cache
28
28
  from types import ModuleType
29
29
 
30
+ from importlib.metadata import entry_points
31
+
30
32
  # %% ../nbs/api/05_doclinks.ipynb
31
33
  def _sym_nm(klas, sym): return f'{unparse(klas).strip()}.{sym.name}'
32
34
 
@@ -236,9 +238,11 @@ def _build_lookup_table(strip_libs=None, incl_libs=None, skip_mods=None):
236
238
  strip_libs = L(strip_libs)
237
239
  if incl_libs is not None: incl_libs = (L(incl_libs)+strip_libs).unique()
238
240
  entries = {}
239
- for o in pkg_resources.iter_entry_points(group='nbdev'):
240
- if incl_libs is not None and o.dist.key not in incl_libs: continue
241
- try: entries[o.name] = _qual_syms(o.resolve())
241
+ # TODO: use new group param once 3.10 in min python
242
+ eps = [o for o in entry_points() if o.group=='nbdev']
243
+ for o in eps:
244
+ if incl_libs is not None and o.dist.name not in incl_libs: continue
245
+ try: entries[o.name] = _qual_syms(o.load())
242
246
  except Exception: pass
243
247
  py_syms = merge(*L(o['syms'].values() for o in entries.values()).concat())
244
248
  for m in strip_libs:
nbdev/maker.py CHANGED
@@ -170,10 +170,10 @@ def _last_future(self:ModuleMaker, cells):
170
170
  except ValueError: return 0
171
171
 
172
172
  # %% ../nbs/api/02_maker.ipynb
173
- def _import2relative(cells, lib_name=None):
174
- "Converts `cells` to use `import2relative` based on `lib_name`"
175
- if lib_name is None: lib_name = get_config().lib_name
176
- for cell in cells: cell.import2relative(lib_name)
173
+ def _import2relative(cells, lib_path=None):
174
+ "Converts `cells` to use `import2relative` based on `lib_path`"
175
+ if lib_path is None: lib_path = get_config().lib_path
176
+ for cell in cells: cell.import2relative(lib_path)
177
177
 
178
178
  # %% ../nbs/api/02_maker.ipynb
179
179
  def _retr_mdoc(cells):
nbdev/release.py CHANGED
@@ -316,7 +316,7 @@ def release_pypi(
316
316
  ):
317
317
  "Create and upload Python package to PyPI"
318
318
  _dir = get_config().lib_path.parent
319
- system(f'cd {_dir} && rm -rf dist build && python setup.py sdist bdist_wheel')
319
+ system(f'cd {_dir} && rm -rf dist build && python -m build')
320
320
  system(f'twine upload --repository {repository} {_dir}/dist/*')
321
321
 
322
322
  # %% ../nbs/api/18_release.ipynb
nbdev/showdoc.py CHANGED
@@ -251,5 +251,5 @@ def colab_link(path):
251
251
  from IPython.display import Markdown
252
252
  cfg = get_config()
253
253
  pre = 'https://colab.research.google.com/github/'
254
- res = f'{pre}{cfg.user}/{cfg.lib_name}/blob/{cfg.branch}/{cfg.nbs_path.name}/{path}.ipynb'
254
+ res = f'{pre}{cfg.user}/{cfg.repo}/blob/{cfg.branch}/{cfg.nbs_path.name}/{path}.ipynb'
255
255
  display(Markdown(f'[Open `{path}` in Colab]({res})'))
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.4
2
2
  Name: nbdev
3
- Version: 2.4.1
3
+ Version: 2.4.3
4
4
  Summary: Create delightful software with Jupyter Notebooks
5
5
  Home-page: https://github.com/AnswerDotAI/nbdev
6
6
  Author: Jeremy Howard and Hamel Husain
@@ -27,6 +27,7 @@ Requires-Dist: ghapi>=1.0.3
27
27
  Requires-Dist: watchdog
28
28
  Requires-Dist: asttokens
29
29
  Requires-Dist: setuptools
30
+ Requires-Dist: build
30
31
  Requires-Dist: PyYAML
31
32
  Provides-Extra: dev
32
33
  Requires-Dist: ipywidgets; extra == "dev"
@@ -41,6 +42,20 @@ Requires-Dist: pysymbol_llm; extra == "dev"
41
42
  Requires-Dist: llms-txt; extra == "dev"
42
43
  Requires-Dist: sphinx; extra == "dev"
43
44
  Requires-Dist: plum-dispatch; extra == "dev"
45
+ Dynamic: author
46
+ Dynamic: author-email
47
+ Dynamic: classifier
48
+ Dynamic: description
49
+ Dynamic: description-content-type
50
+ Dynamic: home-page
51
+ Dynamic: keywords
52
+ Dynamic: license
53
+ Dynamic: license-file
54
+ Dynamic: project-url
55
+ Dynamic: provides-extra
56
+ Dynamic: requires-dist
57
+ Dynamic: requires-python
58
+ Dynamic: summary
44
59
 
45
60
  # Getting Started
46
61
 
@@ -1,29 +1,29 @@
1
- nbdev/__init__.py,sha256=KBAv2AzAyXd-h2vzWaC2u8_huogXBIQJ1MtEz1Dn0Xc,89
1
+ nbdev/__init__.py,sha256=xH9c2dreAn3RnnbjapBQHSRJYxXICxX9mdWr8OuUkXg,89
2
2
  nbdev/_modidx.py,sha256=zVxnzO5QaU03Hg9VaA_IgwyZNEbdy8qnvPUIV94m3Kg,41634
3
3
  nbdev/clean.py,sha256=mVgsW2_g7KIXAVh8mwpj86UwMN6QVM-q33PDzA27nWw,9410
4
4
  nbdev/cli.py,sha256=vPBg1OrqzXW_b2NHiUn9g7CflP2M_Bk3pdbKXuKXwjM,7107
5
5
  nbdev/config.py,sha256=KmPAtLwsX819gA7TVJ40v-B4ok978b79pbqMF5WnAJE,13500
6
- nbdev/doclinks.py,sha256=Y-pk3-9wDKFqDtPhAd2tNUCkcQ4B4i0WeNKhORcRP3Q,12427
6
+ nbdev/doclinks.py,sha256=8OxNX7PkGZL9bJ5klQRY8rmr9RLYV-X9HiLzsAoUOXc,12527
7
7
  nbdev/export.py,sha256=dX_mAnH6-vLHJEb4vp-QS2pY78Hk5YXsdvdgzMTiymY,4059
8
8
  nbdev/extract_attachments.py,sha256=O4mS4EFIOXL_yQ3jmsnBStrWxGR_nPNvxLYXHtLeimw,2208
9
9
  nbdev/frontmatter.py,sha256=i195bhDLWd-WUEzQT9JBoA4Ee3j6gD1dKMT8yk5fF4Y,2761
10
10
  nbdev/imports.py,sha256=f5Ynco14hsJyFCf43-uP_YARMhHADe6lM-20Mc_vXhw,95
11
- nbdev/maker.py,sha256=o075fYwU_oXiYjSbq67_Vjmj7ATYLYqhKd0X6ZVqrJ0,9859
11
+ nbdev/maker.py,sha256=oDs5jOZBcGWRcj6hy7zhKpSfASZqQrni_d8pIjDmFYE,9859
12
12
  nbdev/merge.py,sha256=xmT7LMY_mQGOGl0ynqkB13M6HwJfUOTis1Xl--YDXR8,4341
13
13
  nbdev/migrate.py,sha256=YJTtWC6TPaZpZTcD0Jex6stOSumjju2QrUozF9rvl0Y,7311
14
14
  nbdev/process.py,sha256=Vb3SN5YW2gB9rYv5ToeveOeL9qM9AGLRPXCyAFiaE3g,5853
15
15
  nbdev/processors.py,sha256=fS4WrowC8bi6sFJJUVA9r9IRgmk-gffrJ9zNfb7vpIM,11973
16
16
  nbdev/qmd.py,sha256=VAxE-c1sT7y26VdyreB6j9fge-CuLbHWocRE_WbnYXg,2994
17
17
  nbdev/quarto.py,sha256=YnYwM1gTSIuitfUnK-R3gxqfrUh6rHPZmBN1OqhLuQ0,13816
18
- nbdev/release.py,sha256=MDTFjwD8xRUeR7VINgiakOx1JNFAdBTi58zbzrYlLlI,14326
18
+ nbdev/release.py,sha256=ErGeI2kjd-3UdKDM49c-mpf9igrYrbT46iERagH0oCM,14308
19
19
  nbdev/serve.py,sha256=HcYoNQiSROdMS1J8YlOlyTya-LmmrR-8v3ho5D9g700,3146
20
20
  nbdev/serve_drv.py,sha256=IZ2acem_KKsXYYe0iUECiR_orkYLBkT1ZG_258ZS7SQ,657
21
- nbdev/showdoc.py,sha256=M6vZEyhzWzL8oyVx7gBXaSyG1e8LM1fNrDbInqjN0Eo,10101
21
+ nbdev/showdoc.py,sha256=PqVprEkc6GPIEK4A0pNV78ENQXpmhV666FN2HTf83t0,10097
22
22
  nbdev/sync.py,sha256=ld-lSOmlX1FdnTOzaSHcxKyIuIguI_SpluqfPSH2BZ8,3201
23
23
  nbdev/test.py,sha256=_ECBd5fvfGEICIfkTI2S8w8YatL5CaPltCeDSsiH6yw,4435
24
- nbdev-2.4.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
25
- nbdev-2.4.1.dist-info/METADATA,sha256=tF6xUBHu1KcdEIh5sc0gT9f412sE2oU8LJCjfpskTmM,10484
26
- nbdev-2.4.1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
27
- nbdev-2.4.1.dist-info/entry_points.txt,sha256=1ADLbIIJxZeLgOD8NpizkPULSsd_fgUQxwAkbGk45b8,1453
28
- nbdev-2.4.1.dist-info/top_level.txt,sha256=3cWYLMuaXsZjz3TQRGEkWGs9Z8ieEDmYcq8TZS3y3vU,6
29
- nbdev-2.4.1.dist-info/RECORD,,
24
+ nbdev-2.4.3.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
25
+ nbdev-2.4.3.dist-info/METADATA,sha256=bKlqOwBLckLVVcTlkJAMXLEfOdl-bukHbH-ozCmxL8Q,10804
26
+ nbdev-2.4.3.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
27
+ nbdev-2.4.3.dist-info/entry_points.txt,sha256=1ADLbIIJxZeLgOD8NpizkPULSsd_fgUQxwAkbGk45b8,1453
28
+ nbdev-2.4.3.dist-info/top_level.txt,sha256=3cWYLMuaXsZjz3TQRGEkWGs9Z8ieEDmYcq8TZS3y3vU,6
29
+ nbdev-2.4.3.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (75.6.0)
2
+ Generator: setuptools (80.9.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5