nbdev 2.4.11__py3-none-any.whl → 2.4.12__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.11"
1
+ __version__ = "2.4.12"
2
2
 
3
3
  from .doclinks import nbdev_export
4
4
  from .showdoc import show_doc
nbdev/_modidx.py CHANGED
@@ -309,6 +309,7 @@ d = { 'settings': { 'branch': 'main',
309
309
  'nbdev.release.conda_output_path': ('api/release.html#conda_output_path', 'nbdev/release.py'),
310
310
  'nbdev.release.latest_pypi': ('api/release.html#latest_pypi', 'nbdev/release.py'),
311
311
  'nbdev.release.nbdev_bump_version': ('api/release.html#nbdev_bump_version', 'nbdev/release.py'),
312
+ 'nbdev.release.push_release': ('api/release.html#push_release', 'nbdev/release.py'),
312
313
  'nbdev.release.pypi_details': ('api/release.html#pypi_details', 'nbdev/release.py'),
313
314
  'nbdev.release.pypi_json': ('api/release.html#pypi_json', 'nbdev/release.py'),
314
315
  'nbdev.release.release_both': ('api/release.html#release_both', 'nbdev/release.py'),
nbdev/release.py CHANGED
@@ -3,9 +3,10 @@
3
3
  # AUTOGENERATED! DO NOT EDIT! File to edit: ../nbs/api/18_release.ipynb.
4
4
 
5
5
  # %% auto #0
6
- __all__ = ['GH_HOST', 'CONDA_WARNING', 'Release', 'changelog', 'release_git', 'release_gh', 'pypi_json', 'latest_pypi',
7
- 'pypi_details', 'conda_output_path', 'write_conda_meta', 'write_requirements', 'anaconda_upload',
8
- 'release_conda', 'chk_conda_rel', 'release_pypi', 'release_both', 'bump_version', 'nbdev_bump_version']
6
+ __all__ = ['GH_HOST', 'CONDA_WARNING', 'Release', 'changelog', 'push_release', 'release_git', 'release_gh', 'pypi_json',
7
+ 'latest_pypi', 'pypi_details', 'conda_output_path', 'write_conda_meta', 'write_requirements',
8
+ 'anaconda_upload', 'release_conda', 'chk_conda_rel', 'release_pypi', 'release_both', 'bump_version',
9
+ 'nbdev_bump_version']
9
10
 
10
11
  # %% ../nbs/api/18_release.ipynb #c35cc2b8
11
12
  from fastcore.all import *
@@ -114,16 +115,18 @@ def changelog(
114
115
  res = Release(repo=repo).changelog(debug=debug)
115
116
  if debug: print(res)
116
117
 
118
+ # %% ../nbs/api/18_release.ipynb #15b66643
119
+ def push_release(token:str=None):
120
+ "Create a GitHub release (changelog should already be committed/pushed). Returns the release."
121
+ return Release(token=token).release()
122
+
117
123
  # %% ../nbs/api/18_release.ipynb #6d3c5cd8
118
124
  @call_parse
119
- def release_git(
120
- token:str=None # Optional GitHub token (otherwise `token` file is used)
121
- ):
125
+ def release_git(token:str=None):
122
126
  "Tag and create a release in GitHub for the current version"
123
- ver = Release(token=token).release()
124
- print(f"Released {ver}")
127
+ print(f"Released {push_release(token)}")
125
128
 
126
- # %% ../nbs/api/18_release.ipynb #ad73518a
129
+ # %% ../nbs/api/18_release.ipynb #94ee72b1
127
130
  @call_parse
128
131
  def release_gh(
129
132
  token:str=None # Optional GitHub token (otherwise `token` file is used)
@@ -135,8 +138,7 @@ def release_gh(
135
138
  if not input("Make release now? (y/n) ").lower().startswith('y'): sys.exit(1)
136
139
  run('git commit -am release')
137
140
  run('git push')
138
- ver = Release(token=token).release()
139
- print(f"Released {ver}")
141
+ print(f"Released {push_release(token)}")
140
142
 
141
143
  # %% ../nbs/api/18_release.ipynb #5b4d4aa2
142
144
  from fastcore.all import *
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: nbdev
3
- Version: 2.4.11
3
+ Version: 2.4.12
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
@@ -1,5 +1,5 @@
1
- nbdev/__init__.py,sha256=J2Letp-iJ2O9J0Nr85o0VRKtRZTWJLYFrkJUjQqlWsg,90
2
- nbdev/_modidx.py,sha256=v15TNw1xI8HShoTH1aNwH-Rt_c5-uYfcmf2nlNuSGFI,38256
1
+ nbdev/__init__.py,sha256=wJvo0zLx3LH6VkyN8kEpzNsHxxT5O1-D3CLqwlnDi6w,90
2
+ nbdev/_modidx.py,sha256=9Ha0XafZNcnsUIju5aJx7GVqkgwX35vVGanoCgfbN-s,38372
3
3
  nbdev/clean.py,sha256=rTLJsz_gNqd9TdTBLmEuexXN6lZPCq6PVS_Xd4JGMZ0,9748
4
4
  nbdev/cli.py,sha256=csOPIFIz8fouyjTx-OX_0it1Fts-Z_c72dnIOxXxGDc,7588
5
5
  nbdev/config.py,sha256=01DWLwkfdsn7TkYklO52LagvzI8UenfEga1GwyAxc-o,13760
@@ -16,15 +16,15 @@ nbdev/process.py,sha256=cSKAdQ-KDPv6UNLqii61SnmFsw8qmcY-YwBPUbwRd18,6163
16
16
  nbdev/processors.py,sha256=SL4Y4ha1ZQU-dV1nZyyb68viq0X2tE2PfBX26_LEzYY,12364
17
17
  nbdev/qmd.py,sha256=4_paV81SjRh2TmDS5tyu8Y2TW1X_yg0PYGAi6fOw3ek,3129
18
18
  nbdev/quarto.py,sha256=Hfxj_bCrm0OlKGh6S954d1E2BCfPL1q0901RRvC4bCA,14119
19
- nbdev/release.py,sha256=UCG6zB1NdUUwyLNIDaLoRvHwOiVq25fQdwm7MHNFVhM,14853
19
+ nbdev/release.py,sha256=-cSl2u_SW6eGrppd3KyaMRmfeAv1QSw9PEhAzdw-9NA,14985
20
20
  nbdev/serve.py,sha256=XqTB9Mjgs_X3U5VNJ-vPbx2rs8ayBog5cfPiFumBPt4,3187
21
21
  nbdev/serve_drv.py,sha256=IZ2acem_KKsXYYe0iUECiR_orkYLBkT1ZG_258ZS7SQ,657
22
22
  nbdev/showdoc.py,sha256=rgVpHGVQi14RBdLYnh3ukPPG9EEKGyTMW_zGAH7HM7o,2657
23
23
  nbdev/sync.py,sha256=eMYZYzu3RMDWjY-apr2TyzB7cTEB9v5-svF_Z--xyj8,3391
24
24
  nbdev/test.py,sha256=74rkaOEY4KOeosB84V3DYvUsv-klVDdubuw_SWL7-vo,4532
25
- nbdev-2.4.11.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
26
- nbdev-2.4.11.dist-info/METADATA,sha256=6lemdUkJxTvClniEgJJEE9rrQvmDZJhm2wfe2GQ9BWo,10829
27
- nbdev-2.4.11.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
- nbdev-2.4.11.dist-info/entry_points.txt,sha256=1ADLbIIJxZeLgOD8NpizkPULSsd_fgUQxwAkbGk45b8,1453
29
- nbdev-2.4.11.dist-info/top_level.txt,sha256=3cWYLMuaXsZjz3TQRGEkWGs9Z8ieEDmYcq8TZS3y3vU,6
30
- nbdev-2.4.11.dist-info/RECORD,,
25
+ nbdev-2.4.12.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
26
+ nbdev-2.4.12.dist-info/METADATA,sha256=aoC_LZaEl9-RYtyhOVobGdRMdUrZ_ZvzUXdso5DRinU,10829
27
+ nbdev-2.4.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
28
+ nbdev-2.4.12.dist-info/entry_points.txt,sha256=1ADLbIIJxZeLgOD8NpizkPULSsd_fgUQxwAkbGk45b8,1453
29
+ nbdev-2.4.12.dist-info/top_level.txt,sha256=3cWYLMuaXsZjz3TQRGEkWGs9Z8ieEDmYcq8TZS3y3vU,6
30
+ nbdev-2.4.12.dist-info/RECORD,,
File without changes