Skip to content

Commit a5f5e04

Browse files
committed
docs(upgrading): re-locate version upgrade guides into Upgrading PSR
1 parent 3fbde64 commit a5f5e04

File tree

5 files changed

+76
-39
lines changed

5 files changed

+76
-39
lines changed

CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2310,7 +2310,7 @@ v8.0.0 (2023-07-16)
23102310
💥 BREAKING CHANGES
23112311
--------------------
23122312

2313-
* numerous breaking changes, see :ref:`migrating-from-v7` for more information
2313+
* numerous breaking changes, see :ref:`upgrade_v8` for more information
23142314

23152315
.. _ec30564: https://github.com/python-semantic-release/python-semantic-release/commit/ec30564b4ec732c001d76d3c09ba033066d2b6fe
23162316
.. _PR#619: https://github.com/python-semantic-release/python-semantic-release/pull/619

docs/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Documentation Contents
6666
troubleshooting
6767
contributing
6868
contributors
69-
Migrating from Python Semantic Release v7 <migrating_from_v7>
69+
upgrading/index
7070
Internal API <api/modules>
7171
Algorithm <algorithm>
7272
Changelog <psr_changelog>

docs/migrating_from_v7.rst renamed to docs/upgrading/08-upgrade.rst

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
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.
77
The internals have been changed significantly to better support highly-requested
88
features and to streamline the maintenance of the project.
99

@@ -12,18 +12,18 @@ exhibit different behavior to earlier versions of Python Semantic Release. This
1212
page is a guide to help projects to ``pip install python-semantic-release>=8.0.0`` with
1313
fewer surprises.
1414

15-
.. _breaking-github-action:
15+
.. _upgrade_v8-github-action:
1616

1717
Python Semantic Release GitHub Action
1818
-------------------------------------
1919

20-
.. _breaking-removed-artefact-upload:
20+
.. _upgrade_v8-removed-artefact-upload:
2121

2222
GitHub Action no longer publishes artifacts to PyPI or GitHub Releases
2323
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
2424

2525
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
2727
using Python Semantic Release to publish release notes and artifacts to
2828
GitHub releases, there is a new GitHub Action `upload-to-gh-release`_
2929
which 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

116116
Removal 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``,
121121
all been removed. See the above section for how to publish to PyPI using the official
122122
GitHub Action from the Python Packaging Authority (PyPA).
123123

124-
.. _breaking-options-inputs:
124+
.. _upgrade_v8-options-inputs:
125125

126126
Rename ``additional_options`` to ``root_options``
127127
"""""""""""""""""""""""""""""""""""""""""""""""""
@@ -132,12 +132,12 @@ reason, and because the usage of the CLI has changed, ``additional_options`` has
132132
been renamed to ``root_options`` to reflect the fact that the options are for the
133133
main :ref:`cmd-main` command group.
134134

135-
.. _breaking-commands:
135+
.. _upgrade_v8-commands:
136136

137137
Commands
138138
--------
139139

140-
.. _breaking-commands-repurposed-version-and-publish:
140+
.. _upgrade_v8-commands-repurposed-version-and-publish:
141141

142142
Repurposing 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
189189
to 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

194194
Removal 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

211211
Removal 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

235235
Travis
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

254254
Semaphore
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

274274
Frigg
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

292292
Circle 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

310310
GitLab 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

340340
Jenkins
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

364364
Removal 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
369369
if it was possible to identify that a corresponding build pipeline was failing.
370370
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.
372372

373373
If you are leveraging this feature in Python Semantic Release v7, the following
374374
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`_
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

391391
GitHub
392392
~~~~~~
@@ -407,7 +407,7 @@ GitHub
407407
Note that ``$GITHUB_API_DOMAIN`` is typically ``api.github.com`` unless you are using
408408
GitHub Enterprise with a custom domain name.
409409

410-
.. _breaking-removed-build-status-checking-gitea:
410+
.. _upgrade_v8-removed-build-status-checking-gitea:
411411

412412
Gitea
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

430430
Gitlab
431431
~~~~~~
@@ -451,7 +451,7 @@ Gitlab
451451
done
452452
453453
454-
.. _breaking-commands-multibranch-releases:
454+
.. _upgrade_v8-commands-multibranch-releases:
455455

456456
Multibranch releases
457457
""""""""""""""""""""
@@ -462,7 +462,7 @@ has been changed - you must manually check out the branch which you would like t
462462
against, and if you would like to create releases against this branch you must also ensure
463463
that 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

482482
Changelog 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

497497
Configuration
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,
502502
some 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

537537
Commit parser options
538538
"""""""""""""""""""""
@@ -547,15 +547,15 @@ and if you need to parse multiple commit styles for a single project it's recomm
547547
that you create a parser following :ref:`commit_parser-custom_parser` that
548548
is 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

555555
This option has been renamed to :ref:`version_variables <config-version_variables>`
556556
as 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
597597
but Python Semantic Release will now verify that it has a ``{version}`` format
598598
key 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

605605
This 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

610610
Custom Commit Parsers
611611
---------------------

docs/upgrading/09-upgrade.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
.. _upgrade_v9:
2+
3+
Upgrading to v9
4+
===============
5+
6+
You are in luck! The upgrade to ``v9`` is a simple one.
7+
8+
The breaking change for this version is the removal of support for **Python 3.7**, as it has passed
9+
End-Of-Life (EOL). This means that if you are using Python 3.7, you will need to upgrade
10+
to at least Python 3.8 in order to use ``v9``. This will be permanent as all future versions of
11+
``python-semantic-release`` will require Python 3.8 or later.

docs/upgrading/index.rst

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
.. _upgrading:
2+
3+
=============
4+
Upgrading PSR
5+
=============
6+
7+
Upgrading PSR is a process that may involve several steps, depending on the version you
8+
are upgrading from and to. This section provides a guide for upgrading from older
9+
versions of PSR to the latest version.
10+
11+
.. important::
12+
If you are upgrading across **more than one** major version, you should incrementally
13+
upgrade through each major version and its configuration update guide to ensure a
14+
smooth transition.
15+
16+
For example, if you are upgrading from v7 to v10, you should first
17+
upgrade to v8 and then to v9, and then lastly to v10 while following the upgrade
18+
guide for each version. At each step you should confirm execution works as expected
19+
before proceeding to the next version.
20+
21+
.. toctree::
22+
:caption: Upgrade Guides
23+
:maxdepth: 1
24+
25+
Upgrading to v9 <09-upgrade>
26+
Upgrading to v8 <08-upgrade>

0 commit comments

Comments
 (0)