|
153 | 153 | "If the changelog was generated and reviewed separately, complete the release without regenerating it, opening an editor, or prompting:\n", |
154 | 154 | "\n", |
155 | 155 | "```\n", |
156 | | - "nbdev-release-gh --no_changelog --no_editor --yes\n", |
| 156 | + "nbdev-release-gh --no-changelog --no-editor --yes\n", |
157 | 157 | "```\n", |
158 | 158 | "\n", |
159 | 159 | "Automatic changelog generation stops when the current branch does not contain the latest GitHub release, as happens for an update to an older version. Write `CHANGELOG.md` manually and use the command above. The next section shows the complete process.\n", |
|
189 | 189 | "```sh\n", |
190 | 190 | "git diff\n", |
191 | 191 | "git status --short\n", |
192 | | - "nbdev-release-gh --no_changelog --no_editor --yes\n", |
| 192 | + "nbdev-release-gh --no-changelog --no-editor --yes\n", |
193 | 193 | "nbdev-pypi\n", |
194 | 194 | "nbdev-bump-version\n", |
195 | 195 | "git commit -am bump\n", |
|
323 | 323 | "\n", |
324 | 324 | "def _check_changelog_base(tag):\n", |
325 | 325 | " if _is_ancestor(tag): return\n", |
326 | | - " raise SystemExit(f'HEAD does not contain the latest release ({tag}). Write CHANGELOG.md manually, then run with --no_changelog.')\n", |
| 326 | + " raise SystemExit(f'HEAD does not contain the latest release ({tag}). Write CHANGELOG.md manually, then run with --no-changelog.')\n", |
327 | 327 | "\n", |
328 | 328 | "def _release_head():\n", |
329 | 329 | " _release_branch()\n", |
|
352 | 352 | "test_fail(lambda: _require_release_branch(''), contains='detached HEAD', exc=SystemExit)\n", |
353 | 353 | "test_eq(_remote_shas('abc\\trefs/heads/main\\ndef\\trefs/heads/1.x\\n'), {'abc', 'def'})\n", |
354 | 354 | "assert _is_ancestor('HEAD')\n", |
355 | | - "test_fail(lambda: _check_changelog_base('__missing_release_tag__'), contains='--no_changelog', exc=SystemExit)" |
| 355 | + "test_fail(lambda: _check_changelog_base('__missing_release_tag__'), contains='--no-changelog', exc=SystemExit)" |
356 | 356 | ] |
357 | 357 | }, |
358 | 358 | { |
|
960 | 960 | " if skip_upload: return print(loc)\n", |
961 | 961 | " if not upload_user: upload_user = get_config().conda_user\n", |
962 | 962 | " if not upload_user: return print(\"`conda_user` not in pyproject.toml and no `upload_user` passed. Cannot upload\")\n", |
963 | | - " if 'anaconda upload' not in res: return print(f\"{res}\\n\\nFailed. Check auto-upload not set in .condarc. Try `--do_build False`.\")\n", |
| 963 | + " if 'anaconda upload' not in res: return print(f\"{res}\\n\\nFailed. Check auto-upload not set in .condarc. Try `--do-build False`.\")\n", |
964 | 964 | " return anaconda_upload(name, loc)" |
965 | 965 | ] |
966 | 966 | }, |
|
998 | 998 | "Or to do things more manually:\n", |
999 | 999 | "\n", |
1000 | 1000 | "```\n", |
1001 | | - "nbdev-conda-package --do_build false\n", |
| 1001 | + "nbdev-conda-package --do-build false\n", |
1002 | 1002 | "cd conda\n", |
1003 | 1003 | "conda build --no-anaconda-upload --output-folder build {name}\n", |
1004 | 1004 | "anaconda upload build/noarch/{name}-{ver}-*.tar.bz2\n", |
|
0 commit comments