1
- .. _ migrating-from-v7 :
1
+ .. _ upgrade_v8 :
2
2
3
- Migrating from Python Semantic Release v7
4
- =========================================
3
+ Upgrading to v8
4
+ ===============
5
5
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.
7
7
The internals have been changed significantly to better support highly-requested
8
8
features and to streamline the maintenance of the project.
9
9
@@ -12,18 +12,18 @@ exhibit different behavior to earlier versions of Python Semantic Release. This
12
12
page is a guide to help projects to ``pip install python-semantic-release>=8.0.0 `` with
13
13
fewer surprises.
14
14
15
- .. _ breaking -github-action :
15
+ .. _ upgrade_v8 -github-action :
16
16
17
17
Python Semantic Release GitHub Action
18
18
-------------------------------------
19
19
20
- .. _ breaking -removed-artefact-upload :
20
+ .. _ upgrade_v8 -removed-artefact-upload :
21
21
22
22
GitHub Action no longer publishes artifacts to PyPI or GitHub Releases
23
23
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
24
24
25
25
Python 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
27
27
using Python Semantic Release to publish release notes and artifacts to
28
28
GitHub releases, there is a new GitHub Action `upload-to-gh-release `_
29
29
which will perform this action for you.
@@ -111,7 +111,7 @@ GitHub Action:
111
111
.. _upload-to-gh-release : https://github.com/python-semantic-release/upload-to-gh-release
112
112
.. _pypa/gh-action-pypi-publish : https://github.com/pypa/gh-action-pypi-publish
113
113
114
- .. _ breaking -github-action-removed-pypi-token :
114
+ .. _ upgrade_v8 -github-action-removed-pypi-token :
115
115
116
116
Removal of ``pypi_token ``, ``repository_username `` and ``repository_password `` inputs
117
117
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -121,7 +121,7 @@ Since the library no longer supports publishing to PyPI, the ``pypi_token``,
121
121
all been removed. See the above section for how to publish to PyPI using the official
122
122
GitHub Action from the Python Packaging Authority (PyPA).
123
123
124
- .. _ breaking -options-inputs :
124
+ .. _ upgrade_v8 -options-inputs :
125
125
126
126
Rename ``additional_options `` to ``root_options ``
127
127
"""""""""""""""""""""""""""""""""""""""""""""""""
@@ -132,12 +132,12 @@ reason, and because the usage of the CLI has changed, ``additional_options`` has
132
132
been renamed to ``root_options `` to reflect the fact that the options are for the
133
133
main :ref: `cmd-main ` command group.
134
134
135
- .. _ breaking -commands :
135
+ .. _ upgrade_v8 -commands :
136
136
137
137
Commands
138
138
--------
139
139
140
- .. _ breaking -commands-repurposed-version-and-publish :
140
+ .. _ upgrade_v8 -commands-repurposed-version-and-publish :
141
141
142
142
Repurposing of ``version `` and ``publish `` commands
143
143
"""""""""""""""""""""""""""""""""""""""""""""""""""
@@ -189,7 +189,7 @@ With steps 1-6 being handled by the :ref:`cmd-version` command, step 7 being lef
189
189
to the developer to handle, and lastly step 8 to be handled by the
190
190
:ref: `cmd-publish ` command.
191
191
192
- .. _ breaking -removed-define-option :
192
+ .. _ upgrade_v8 -removed-define-option :
193
193
194
194
Removal of ``-D/--define `` command-line option
195
195
""""""""""""""""""""""""""""""""""""""""""""""
@@ -206,7 +206,7 @@ specify using just command-line options.
206
206
207
207
.. _#600 : https://github.com/python-semantic-release/python-semantic-release/issues/600
208
208
209
- .. _ breaking -commands-no-verify-ci :
209
+ .. _ upgrade_v8 -commands-no-verify-ci :
210
210
211
211
Removal of CI verifications
212
212
"""""""""""""""""""""""""""
@@ -230,7 +230,7 @@ shell commands *before* invoking ``semantic-release`` to verify your environment
230
230
(e.g. via ``export RELEASE_BRANCH=main `` and/or replace the variable with the branch
231
231
name you want to verify the CI environment for.
232
232
233
- .. _ breaking -commands-no-verify-ci-travis :
233
+ .. _ upgrade_v8 -commands-no-verify-ci-travis :
234
234
235
235
Travis
236
236
~~~~~~
@@ -249,7 +249,7 @@ Travis
249
249
fi
250
250
251
251
252
- .. _ breaking -commands-no-verify-ci-semaphore :
252
+ .. _ upgrade_v8 -commands-no-verify-ci-semaphore :
253
253
254
254
Semaphore
255
255
~~~~~~~~~
@@ -269,7 +269,7 @@ Semaphore
269
269
fi
270
270
271
271
272
- .. _ breaking -commands-no-verify-ci-frigg :
272
+ .. _ upgrade_v8 -commands-no-verify-ci-frigg :
273
273
274
274
Frigg
275
275
~~~~~
@@ -287,7 +287,7 @@ Frigg
287
287
exit 1
288
288
fi
289
289
290
- .. _ breaking -commands-no-verify-ci-circle-ci :
290
+ .. _ upgrade_v8 -commands-no-verify-ci-circle-ci :
291
291
292
292
Circle CI
293
293
~~~~~~~~~
@@ -305,7 +305,7 @@ Circle CI
305
305
exit 1
306
306
fi
307
307
308
- .. _ breaking -commands-no-verify-ci-gitlab-ci :
308
+ .. _ upgrade_v8 -commands-no-verify-ci-gitlab-ci :
309
309
310
310
GitLab CI
311
311
~~~~~~~~~
@@ -320,7 +320,7 @@ GitLab CI
320
320
exit 1
321
321
fi
322
322
323
- .. _ breaking -commands-no-verify-ci-bitbucket :
323
+ .. _ upgrade_v8 -commands-no-verify-ci-bitbucket :
324
324
325
325
**Condition **: environment variable ``BITBUCKET_BUILD_NUMBER `` is set
326
326
@@ -335,7 +335,7 @@ GitLab CI
335
335
exit 1
336
336
fi
337
337
338
- .. _ breaking -commands-no-verify-ci-jenkins :
338
+ .. _ upgrade_v8 -commands-no-verify-ci-jenkins :
339
339
340
340
Jenkins
341
341
~~~~~~~
@@ -359,7 +359,7 @@ Jenkins
359
359
exit 1
360
360
fi
361
361
362
- .. _ breaking -removed-build-status-checking :
362
+ .. _ upgrade_v8 -removed-build-status-checking :
363
363
364
364
Removal of Build Status Checking
365
365
""""""""""""""""""""""""""""""""
@@ -368,7 +368,7 @@ Prior to v8, Python Semantic Release contained a configuration option,
368
368
``check_build_status ``, which would attempt to prevent a release being made
369
369
if it was possible to identify that a corresponding build pipeline was failing.
370
370
For 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.
372
372
373
373
If you are leveraging this feature in Python Semantic Release v7, the following
374
374
bash 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`_
386
386
.. _installation guide for jq : https://jqlang.github.io/jq/download/
387
387
.. _the curl website : https://curl.se/
388
388
389
- .. _ breaking -removed-build-status-checking-github :
389
+ .. _ upgrade_v8 -removed-build-status-checking-github :
390
390
391
391
GitHub
392
392
~~~~~~
@@ -407,7 +407,7 @@ GitHub
407
407
Note that ``$GITHUB_API_DOMAIN `` is typically ``api.github.com `` unless you are using
408
408
GitHub Enterprise with a custom domain name.
409
409
410
- .. _ breaking -removed-build-status-checking-gitea :
410
+ .. _ upgrade_v8 -removed-build-status-checking-gitea :
411
411
412
412
Gitea
413
413
~~~~~
@@ -425,7 +425,7 @@ Gitea
425
425
exit 1
426
426
fi
427
427
428
- .. _ breaking -removed-build-status-checking-gitlab :
428
+ .. _ upgrade_v8 -removed-build-status-checking-gitlab :
429
429
430
430
Gitlab
431
431
~~~~~~
@@ -451,7 +451,7 @@ Gitlab
451
451
done
452
452
453
453
454
- .. _ breaking -commands-multibranch-releases :
454
+ .. _ upgrade_v8 -commands-multibranch-releases :
455
455
456
456
Multibranch releases
457
457
""""""""""""""""""""
@@ -462,7 +462,7 @@ has been changed - you must manually check out the branch which you would like t
462
462
against, and if you would like to create releases against this branch you must also ensure
463
463
that it belongs to a :ref: `release group <multibranch-releases-configuring >`.
464
464
465
- .. _ breaking -commands-changelog :
465
+ .. _ upgrade_v8 -commands-changelog :
466
466
467
467
``changelog `` command
468
468
"""""""""""""""""""""
@@ -477,7 +477,7 @@ tag ``v1.1.4``, you should run::
477
477
478
478
semantic-release changelog --post-to-release-tag v1.1.4
479
479
480
- .. _ breaking -changelog-customization :
480
+ .. _ upgrade_v8 -changelog-customization :
481
481
482
482
Changelog customization
483
483
"""""""""""""""""""""""
@@ -492,7 +492,7 @@ fully open up customizing the changelog's appearance.
492
492
.. _Jinja : https://jinja.palletsprojects.com/en/3.1.x/
493
493
494
494
495
- .. _ breaking -configuration :
495
+ .. _ upgrade_v8 -configuration :
496
496
497
497
Configuration
498
498
-------------
@@ -501,7 +501,7 @@ The configuration structure has been completely reworked, so you should read
501
501
:ref: `configuration ` carefully during the process of upgrading to v8+. However,
502
502
some common pitfalls and potential sources of confusion are summarized here.
503
503
504
- .. _ breaking -configuration-setup-cfg-unsupported :
504
+ .. _ upgrade_v8 -configuration-setup-cfg-unsupported :
505
505
506
506
``setup.cfg `` is no longer supported
507
507
""""""""""""""""""""""""""""""""""""
@@ -532,7 +532,7 @@ needs.
532
532
.. _pip issue : https://github.com/pypa/pip/issues/8437#issuecomment-805313362
533
533
534
534
535
- .. _ breaking -commit-parser-options :
535
+ .. _ upgrade_v8 -commit-parser-options :
536
536
537
537
Commit parser options
538
538
"""""""""""""""""""""
@@ -547,15 +547,15 @@ and if you need to parse multiple commit styles for a single project it's recomm
547
547
that you create a parser following :ref: `commit_parser-custom_parser ` that
548
548
is tailored to the specific needs of your project.
549
549
550
- .. _ breaking -version-variable-rename :
550
+ .. _ upgrade_v8 -version-variable-rename :
551
551
552
552
``version_variable ``
553
553
""""""""""""""""""""
554
554
555
555
This option has been renamed to :ref: `version_variables <config-version_variables >`
556
556
as it refers to a list of variables which can be updated.
557
557
558
- .. _ breaking -version-pattern-removed :
558
+ .. _ upgrade_v8 -version-pattern-removed :
559
559
560
560
``version_pattern ``
561
561
"""""""""""""""""""
@@ -567,7 +567,7 @@ for a project and store this in an environment variable like so::
567
567
568
568
export VERSION=$(semantic-release version --print)
569
569
570
- .. _ breaking -version-toml-type :
570
+ .. _ upgrade_v8 -version-toml-type :
571
571
572
572
``version_toml ``
573
573
""""""""""""""""
@@ -588,7 +588,7 @@ simply wrap the value in ``[]``:
588
588
version_toml = ["pyproject.toml:tool.poetry.version"]
589
589
590
590
591
- .. _ breaking -tag-format-validation :
591
+ .. _ upgrade_v8 -tag-format-validation :
592
592
593
593
``tag_format ``
594
594
""""""""""""""
@@ -597,15 +597,15 @@ This option has the same effect as it did in Python Semantic Release prior to v8
597
597
but Python Semantic Release will now verify that it has a ``{version} `` format
598
598
key and raise an error if this is not the case.
599
599
600
- .. _ breaking -upload-to-release-rename :
600
+ .. _ upgrade_v8 -upload-to-release-rename :
601
601
602
602
``upload_to_release ``
603
603
"""""""""""""""""""""
604
604
605
605
This option has been renamed to
606
606
:ref: `upload_to_vcs_release <config-publish-upload_to_vcs_release >`.
607
607
608
- .. _ breaking -custom-commit-parsers :
608
+ .. _ upgrade_v8 -custom-commit-parsers :
609
609
610
610
Custom Commit Parsers
611
611
---------------------
0 commit comments