nbdev 2.4.11__py3-none-any.whl → 2.4.13__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 +1 -1
- nbdev/_modidx.py +1 -0
- nbdev/release.py +19 -14
- {nbdev-2.4.11.dist-info → nbdev-2.4.13.dist-info}/METADATA +1 -1
- {nbdev-2.4.11.dist-info → nbdev-2.4.13.dist-info}/RECORD +9 -9
- {nbdev-2.4.11.dist-info → nbdev-2.4.13.dist-info}/WHEEL +0 -0
- {nbdev-2.4.11.dist-info → nbdev-2.4.13.dist-info}/entry_points.txt +0 -0
- {nbdev-2.4.11.dist-info → nbdev-2.4.13.dist-info}/licenses/LICENSE +0 -0
- {nbdev-2.4.11.dist-info → nbdev-2.4.13.dist-info}/top_level.txt +0 -0
nbdev/__init__.py
CHANGED
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', '
|
|
7
|
-
'pypi_details', 'conda_output_path', 'write_conda_meta', 'write_requirements',
|
|
8
|
-
'release_conda', 'chk_conda_rel', 'release_pypi', 'release_both', '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
|
-
|
|
124
|
-
print(f"Released {ver}")
|
|
127
|
+
print(f"Released {push_release(token)}")
|
|
125
128
|
|
|
126
|
-
# %% ../nbs/api/18_release.ipynb #
|
|
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
|
-
|
|
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 *
|
|
@@ -316,12 +318,15 @@ def chk_conda_rel(
|
|
|
316
318
|
# %% ../nbs/api/18_release.ipynb #bf55df9b
|
|
317
319
|
@call_parse
|
|
318
320
|
def release_pypi(
|
|
319
|
-
repository:str="pypi" # Respository to upload to (defined in ~/.pypirc)
|
|
321
|
+
repository:str="pypi", # Respository to upload to (defined in ~/.pypirc)
|
|
322
|
+
quiet:bool=False # Reduce output verbosity
|
|
320
323
|
):
|
|
321
324
|
"Create and upload Python package to PyPI"
|
|
322
325
|
_dir = get_config().lib_path.parent
|
|
323
|
-
|
|
324
|
-
|
|
326
|
+
q = ' --quiet' if quiet else ''
|
|
327
|
+
p = ' --disable-progress-bar' if quiet else ''
|
|
328
|
+
system(f'cd {_dir} && rm -rf dist build && python -m build{q}')
|
|
329
|
+
system(f'twine upload --repository {repository}{p} {_dir}/dist/*')
|
|
325
330
|
|
|
326
331
|
# %% ../nbs/api/18_release.ipynb #06edfcb0
|
|
327
332
|
@call_parse
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
nbdev/__init__.py,sha256=
|
|
2
|
-
nbdev/_modidx.py,sha256=
|
|
1
|
+
nbdev/__init__.py,sha256=EfUCtbkSxJXGdttLZoFHbLHHRagjQPpX-2aUEu4EnNw,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=
|
|
19
|
+
nbdev/release.py,sha256=8PuCYqLb2XpPyrCPo70fVWIRlua_kbRWUtEJH68Cics,15126
|
|
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.
|
|
26
|
-
nbdev-2.4.
|
|
27
|
-
nbdev-2.4.
|
|
28
|
-
nbdev-2.4.
|
|
29
|
-
nbdev-2.4.
|
|
30
|
-
nbdev-2.4.
|
|
25
|
+
nbdev-2.4.13.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
|
26
|
+
nbdev-2.4.13.dist-info/METADATA,sha256=E1qaB_2zISxNFlkA7wZJfWyjF3bnWJ0V0WQEaqV4Mak,10829
|
|
27
|
+
nbdev-2.4.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
28
|
+
nbdev-2.4.13.dist-info/entry_points.txt,sha256=1ADLbIIJxZeLgOD8NpizkPULSsd_fgUQxwAkbGk45b8,1453
|
|
29
|
+
nbdev-2.4.13.dist-info/top_level.txt,sha256=3cWYLMuaXsZjz3TQRGEkWGs9Z8ieEDmYcq8TZS3y3vU,6
|
|
30
|
+
nbdev-2.4.13.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|