1- .. _ migrating-from-v7 :
1+ .. _ upgrade_v8 :
22
3- Migrating from Python Semantic Release v7
4- =========================================
3+ Upgrading to v8
4+ ===============
55
6- Python Semantic Release 8 .0.0 introduced a number of breaking changes.
6+ Python Semantic Release v8 .0.0 introduced a number of breaking changes.
77The internals have been changed significantly to better support highly-requested
88features and to streamline the maintenance of the project.
99
@@ -12,18 +12,18 @@ exhibit different behavior to earlier versions of Python Semantic Release. This
1212page is a guide to help projects to ``pip install python-semantic-release>=8.0.0 `` with
1313fewer surprises.
1414
15- .. _ breaking -github-action :
15+ .. _ upgrade_v8 -github-action :
1616
1717Python Semantic Release GitHub Action
1818-------------------------------------
1919
20- .. _ breaking -removed-artefact-upload :
20+ .. _ upgrade_v8 -removed-artefact-upload :
2121
2222GitHub Action no longer publishes artifacts to PyPI or GitHub Releases
2323""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2424
2525Python Semantic Release no longer uploads distributions to PyPI - see
26- :ref: `breaking -commands-repurposed-version-and-publish `. If you are
26+ :ref: `upgrade_v8 -commands-repurposed-version-and-publish `. If you are
2727using Python Semantic Release to publish release notes and artifacts to
2828GitHub releases, there is a new GitHub Action `upload-to-gh-release `_
2929which will perform this action for you.
@@ -111,7 +111,7 @@ GitHub Action:
111111 .. _upload-to-gh-release : https://github.com/python-semantic-release/upload-to-gh-release
112112.. _pypa/gh-action-pypi-publish : https://github.com/pypa/gh-action-pypi-publish
113113
114- .. _ breaking -github-action-removed-pypi-token :
114+ .. _ upgrade_v8 -github-action-removed-pypi-token :
115115
116116Removal of ``pypi_token ``, ``repository_username `` and ``repository_password `` inputs
117117"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -121,7 +121,7 @@ Since the library no longer supports publishing to PyPI, the ``pypi_token``,
121121all been removed. See the above section for how to publish to PyPI using the official
122122GitHub Action from the Python Packaging Authority (PyPA).
123123
124- .. _ breaking -options-inputs :
124+ .. _ upgrade_v8 -options-inputs :
125125
126126Rename ``additional_options `` to ``root_options ``
127127"""""""""""""""""""""""""""""""""""""""""""""""""
@@ -132,12 +132,12 @@ reason, and because the usage of the CLI has changed, ``additional_options`` has
132132been renamed to ``root_options `` to reflect the fact that the options are for the
133133main :ref: `cmd-main ` command group.
134134
135- .. _ breaking -commands :
135+ .. _ upgrade_v8 -commands :
136136
137137Commands
138138--------
139139
140- .. _ breaking -commands-repurposed-version-and-publish :
140+ .. _ upgrade_v8 -commands-repurposed-version-and-publish :
141141
142142Repurposing of ``version `` and ``publish `` commands
143143"""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -189,7 +189,7 @@ With steps 1-6 being handled by the :ref:`cmd-version` command, step 7 being lef
189189to the developer to handle, and lastly step 8 to be handled by the
190190:ref: `cmd-publish ` command.
191191
192- .. _ breaking -removed-define-option :
192+ .. _ upgrade_v8 -removed-define-option :
193193
194194Removal of ``-D/--define `` command-line option
195195""""""""""""""""""""""""""""""""""""""""""""""
@@ -206,7 +206,7 @@ specify using just command-line options.
206206
207207.. _#600 : https://github.com/python-semantic-release/python-semantic-release/issues/600
208208
209- .. _ breaking -commands-no-verify-ci :
209+ .. _ upgrade_v8 -commands-no-verify-ci :
210210
211211Removal of CI verifications
212212"""""""""""""""""""""""""""
@@ -230,7 +230,7 @@ shell commands *before* invoking ``semantic-release`` to verify your environment
230230 (e.g. via ``export RELEASE_BRANCH=main `` and/or replace the variable with the branch
231231 name you want to verify the CI environment for.
232232
233- .. _ breaking -commands-no-verify-ci-travis :
233+ .. _ upgrade_v8 -commands-no-verify-ci-travis :
234234
235235Travis
236236~~~~~~
@@ -249,7 +249,7 @@ Travis
249249 fi
250250
251251
252- .. _ breaking -commands-no-verify-ci-semaphore :
252+ .. _ upgrade_v8 -commands-no-verify-ci-semaphore :
253253
254254Semaphore
255255~~~~~~~~~
@@ -269,7 +269,7 @@ Semaphore
269269 fi
270270
271271
272- .. _ breaking -commands-no-verify-ci-frigg :
272+ .. _ upgrade_v8 -commands-no-verify-ci-frigg :
273273
274274Frigg
275275~~~~~
@@ -287,7 +287,7 @@ Frigg
287287 exit 1
288288 fi
289289
290- .. _ breaking -commands-no-verify-ci-circle-ci :
290+ .. _ upgrade_v8 -commands-no-verify-ci-circle-ci :
291291
292292Circle CI
293293~~~~~~~~~
@@ -305,7 +305,7 @@ Circle CI
305305 exit 1
306306 fi
307307
308- .. _ breaking -commands-no-verify-ci-gitlab-ci :
308+ .. _ upgrade_v8 -commands-no-verify-ci-gitlab-ci :
309309
310310GitLab CI
311311~~~~~~~~~
@@ -320,7 +320,7 @@ GitLab CI
320320 exit 1
321321 fi
322322
323- .. _ breaking -commands-no-verify-ci-bitbucket :
323+ .. _ upgrade_v8 -commands-no-verify-ci-bitbucket :
324324
325325**Condition **: environment variable ``BITBUCKET_BUILD_NUMBER `` is set
326326
@@ -335,7 +335,7 @@ GitLab CI
335335 exit 1
336336 fi
337337
338- .. _ breaking -commands-no-verify-ci-jenkins :
338+ .. _ upgrade_v8 -commands-no-verify-ci-jenkins :
339339
340340Jenkins
341341~~~~~~~
@@ -359,7 +359,7 @@ Jenkins
359359 exit 1
360360 fi
361361
362- .. _ breaking -removed-build-status-checking :
362+ .. _ upgrade_v8 -removed-build-status-checking :
363363
364364Removal of Build Status Checking
365365""""""""""""""""""""""""""""""""
@@ -368,7 +368,7 @@ Prior to v8, Python Semantic Release contained a configuration option,
368368``check_build_status ``, which would attempt to prevent a release being made
369369if it was possible to identify that a corresponding build pipeline was failing.
370370For similar reasons to those motivating the removal of
371- :ref: `CI Checks <breaking -commands-no-verify-ci >`, this feature has also been removed.
371+ :ref: `CI Checks <upgrade_v8 -commands-no-verify-ci >`, this feature has also been removed.
372372
373373If you are leveraging this feature in Python Semantic Release v7, the following
374374bash commands will replace the functionality, and you can add these to your pipeline.
@@ -386,7 +386,7 @@ installed, you can download it from `the curl website`_
386386.. _installation guide for jq : https://jqlang.github.io/jq/download/
387387.. _the curl website : https://curl.se/
388388
389- .. _ breaking -removed-build-status-checking-github :
389+ .. _ upgrade_v8 -removed-build-status-checking-github :
390390
391391GitHub
392392~~~~~~
@@ -407,7 +407,7 @@ GitHub
407407 Note that ``$GITHUB_API_DOMAIN `` is typically ``api.github.com `` unless you are using
408408GitHub Enterprise with a custom domain name.
409409
410- .. _ breaking -removed-build-status-checking-gitea :
410+ .. _ upgrade_v8 -removed-build-status-checking-gitea :
411411
412412Gitea
413413~~~~~
@@ -425,7 +425,7 @@ Gitea
425425 exit 1
426426 fi
427427
428- .. _ breaking -removed-build-status-checking-gitlab :
428+ .. _ upgrade_v8 -removed-build-status-checking-gitlab :
429429
430430Gitlab
431431~~~~~~
@@ -451,7 +451,7 @@ Gitlab
451451 done
452452
453453
454- .. _ breaking -commands-multibranch-releases :
454+ .. _ upgrade_v8 -commands-multibranch-releases :
455455
456456Multibranch releases
457457""""""""""""""""""""
@@ -462,7 +462,7 @@ has been changed - you must manually check out the branch which you would like t
462462against, and if you would like to create releases against this branch you must also ensure
463463that it belongs to a :ref: `release group <multibranch-releases-configuring >`.
464464
465- .. _ breaking -commands-changelog :
465+ .. _ upgrade_v8 -commands-changelog :
466466
467467``changelog `` command
468468"""""""""""""""""""""
@@ -477,7 +477,7 @@ tag ``v1.1.4``, you should run::
477477
478478 semantic-release changelog --post-to-release-tag v1.1.4
479479
480- .. _ breaking -changelog-customization :
480+ .. _ upgrade_v8 -changelog-customization :
481481
482482Changelog customization
483483"""""""""""""""""""""""
@@ -492,7 +492,7 @@ fully open up customizing the changelog's appearance.
492492.. _Jinja : https://jinja.palletsprojects.com/en/3.1.x/
493493
494494
495- .. _ breaking -configuration :
495+ .. _ upgrade_v8 -configuration :
496496
497497Configuration
498498-------------
@@ -501,7 +501,7 @@ The configuration structure has been completely reworked, so you should read
501501:ref: `configuration ` carefully during the process of upgrading to v8+. However,
502502some common pitfalls and potential sources of confusion are summarized here.
503503
504- .. _ breaking -configuration-setup-cfg-unsupported :
504+ .. _ upgrade_v8 -configuration-setup-cfg-unsupported :
505505
506506``setup.cfg `` is no longer supported
507507""""""""""""""""""""""""""""""""""""
@@ -532,7 +532,7 @@ needs.
532532.. _pip issue : https://github.com/pypa/pip/issues/8437#issuecomment-805313362
533533
534534
535- .. _ breaking -commit-parser-options :
535+ .. _ upgrade_v8 -commit-parser-options :
536536
537537Commit parser options
538538"""""""""""""""""""""
@@ -547,15 +547,15 @@ and if you need to parse multiple commit styles for a single project it's recomm
547547that you create a parser following :ref: `commit_parser-custom_parser ` that
548548is tailored to the specific needs of your project.
549549
550- .. _ breaking -version-variable-rename :
550+ .. _ upgrade_v8 -version-variable-rename :
551551
552552``version_variable ``
553553""""""""""""""""""""
554554
555555This option has been renamed to :ref: `version_variables <config-version_variables >`
556556as it refers to a list of variables which can be updated.
557557
558- .. _ breaking -version-pattern-removed :
558+ .. _ upgrade_v8 -version-pattern-removed :
559559
560560``version_pattern ``
561561"""""""""""""""""""
@@ -567,7 +567,7 @@ for a project and store this in an environment variable like so::
567567
568568 export VERSION=$(semantic-release version --print)
569569
570- .. _ breaking -version-toml-type :
570+ .. _ upgrade_v8 -version-toml-type :
571571
572572``version_toml ``
573573""""""""""""""""
@@ -588,7 +588,7 @@ simply wrap the value in ``[]``:
588588 version_toml = ["pyproject.toml:tool.poetry.version"]
589589
590590
591- .. _ breaking -tag-format-validation :
591+ .. _ upgrade_v8 -tag-format-validation :
592592
593593``tag_format ``
594594""""""""""""""
@@ -597,15 +597,15 @@ This option has the same effect as it did in Python Semantic Release prior to v8
597597but Python Semantic Release will now verify that it has a ``{version} `` format
598598key and raise an error if this is not the case.
599599
600- .. _ breaking -upload-to-release-rename :
600+ .. _ upgrade_v8 -upload-to-release-rename :
601601
602602``upload_to_release ``
603603"""""""""""""""""""""
604604
605605This option has been renamed to
606606:ref: `upload_to_vcs_release <config-publish-upload_to_vcs_release >`.
607607
608- .. _ breaking -custom-commit-parsers :
608+ .. _ upgrade_v8 -custom-commit-parsers :
609609
610610Custom Commit Parsers
611611---------------------
0 commit comments