Skip to content

Commit 1ebbdb8

Browse files
Merge pull request #821 from linode/dev
Release v5.63.0
2 parents 4f0bf48 + 4d94db1 commit 1ebbdb8

File tree

22 files changed

+165
-53
lines changed

22 files changed

+165
-53
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
uses: actions/checkout@v5
2121

2222
- name: setup python 3
23-
uses: actions/setup-python@v5
23+
uses: actions/setup-python@v6
2424
with:
2525
python-version: '3.x'
2626

@@ -40,7 +40,7 @@ jobs:
4040
uses: actions/checkout@v5
4141

4242
- name: Setup Python
43-
uses: actions/setup-python@v5
43+
uses: actions/setup-python@v6
4444
with:
4545
python-version: ${{ matrix.python-version }}
4646

@@ -62,7 +62,7 @@ jobs:
6262
uses: actions/checkout@v5
6363

6464
- name: Setup Python
65-
uses: actions/setup-python@v5
65+
uses: actions/setup-python@v6
6666
with:
6767
python-version: "3.x"
6868

.github/workflows/e2e-suite-windows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ jobs:
6161
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6262

6363
- name: Setup Python
64-
uses: actions/setup-python@v5
64+
uses: actions/setup-python@v6
6565
with:
6666
python-version: '3.x'
6767

@@ -74,7 +74,7 @@ jobs:
7474
env:
7575
LINODE_CLI_TOKEN: ${{ secrets.LINODE_TOKEN_2 }}
7676

77-
- uses: actions/github-script@v7
77+
- uses: actions/github-script@v8
7878
id: update-check-run
7979
if: ${{ inputs.pull_request_number != '' && fromJson(steps.commit-hash.outputs.data).repository.pullRequest.headRef.target.oid == inputs.sha }}
8080
env:
@@ -135,7 +135,7 @@ jobs:
135135

136136
steps:
137137
- name: Set up Python
138-
uses: actions/setup-python@v5
138+
uses: actions/setup-python@v6
139139
with:
140140
python-version: '3.x'
141141

.github/workflows/e2e-suite.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9999

100100
- name: Setup Python
101-
uses: actions/setup-python@v5
101+
uses: actions/setup-python@v6
102102
with:
103103
python-version: ${{ inputs.run-eol-python-version == 'true' && env.EOL_PYTHON_VERSION || inputs.python-version || env.DEFAULT_PYTHON_VERSION }}
104104

@@ -135,7 +135,7 @@ jobs:
135135
retention-days: 1
136136

137137
- name: Update PR Check Run
138-
uses: actions/github-script@v7
138+
uses: actions/github-script@v8
139139
id: update-check-run
140140
if: ${{ inputs.pull_request_number != '' && fromJson(steps.commit-hash.outputs.data).repository.pullRequest.headRef.target.oid == inputs.sha }}
141141
env:
@@ -200,7 +200,7 @@ jobs:
200200

201201
steps:
202202
- name: Set up Python
203-
uses: actions/setup-python@v5
203+
uses: actions/setup-python@v6
204204
with:
205205
python-version: '3.x'
206206

@@ -248,7 +248,7 @@ jobs:
248248
name: test-report-file
249249

250250
- name: Set up Python
251-
uses: actions/setup-python@v5
251+
uses: actions/setup-python@v6
252252
with:
253253
python-version: '3.x'
254254

.github/workflows/nightly-smoke-tests.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
ref: ${{ github.event.inputs.sha || github.ref }}
2626

2727
- name: Set up Python
28-
uses: actions/setup-python@v5
28+
uses: actions/setup-python@v6
2929
with:
3030
python-version: '3.x'
3131

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: actions/checkout@v5
3232

3333
- name: setup python 3
34-
uses: actions/setup-python@v5
34+
uses: actions/setup-python@v6
3535
with:
3636
python-version: '3.x'
3737

@@ -45,15 +45,15 @@ jobs:
4545
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # [email protected]
4646

4747
- name: Login to Docker Hub
48-
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # pin@v3.5.0
48+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # pin@v3.6.0
4949
with:
5050
username: ${{ secrets.DOCKERHUB_USERNAME }}
5151
password: ${{ secrets.DOCKERHUB_TOKEN }}
5252

5353
# This is necessary as we want to ensure that version tags
5454
# are properly formatted before passing them into the
5555
# DockerFile.
56-
- uses: actions/github-script@v7
56+
- uses: actions/github-script@v8
5757
id: cli_version
5858
with:
5959
script: |
@@ -89,7 +89,7 @@ jobs:
8989
uses: actions/checkout@v5
9090

9191
- name: Setup Python
92-
uses: actions/setup-python@v5
92+
uses: actions/setup-python@v6
9393
with:
9494
python-version: '3.x'
9595

@@ -106,4 +106,4 @@ jobs:
106106
LINODE_CLI_VERSION: ${{ github.event.release.tag_name }}
107107

108108
- name: Publish the release artifacts to PyPI
109-
uses: pypa/gh-action-pypi-publish@76f52bc884231f62b9a034ebfe128415bbaabdfc # pin@release/v1.12.4
109+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # pin@release/v1.13.0

.github/workflows/remote-release-trigger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
- name: Calculate the desired release version
3131
id: calculate_version
32-
uses: actions/github-script@v7
32+
uses: actions/github-script@v8
3333
env:
3434
SPEC_VERSION: ${{ github.event.client_payload.spec_version }}
3535
PREVIOUS_CLI_VERSION: ${{ steps.previoustag.outputs.tag }}
@@ -66,7 +66,7 @@ jobs:
6666
commit_sha: ${{ steps.calculate_head_sha.outputs.commit_sha }}
6767

6868
- name: Release
69-
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # [email protected].2
69+
uses: softprops/action-gh-release@6cbd405e2c4e67a21c47fa9e383d020e4e28b836 # [email protected].3
7070
with:
7171
target_commitish: 'main'
7272
token: ${{ steps.generate_token.outputs.token }}

linodecli/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from .cli import CLI
2121
from .completion import get_completions
2222
from .configuration import ENV_TOKEN_NAME
23+
from .help_formatter import SortingHelpFormatter
2324
from .help_pages import (
2425
HELP_TOPICS,
2526
print_help_action,
@@ -64,6 +65,7 @@ def main(): # pylint: disable=too-many-branches,too-many-statements
6465
parser = argparse.ArgumentParser(
6566
"linode-cli",
6667
add_help=False,
68+
formatter_class=SortingHelpFormatter,
6769
description="The Linode Command Line Interface.\n\nAliases: lin, linode",
6870
)
6971
parsed, args = register_args(parser).parse_known_args()

linodecli/baked/operation.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
from linodecli.baked.response import OpenAPIResponse
3030
from linodecli.baked.util import unescape_arg_segment
3131
from linodecli.exit_codes import ExitCodes
32+
from linodecli.help_formatter import SortingHelpFormatter
3233
from linodecli.output.output_handler import OutputHandler
3334
from linodecli.overrides import OUTPUT_OVERRIDES
3435

@@ -831,6 +832,7 @@ def parse_args(self, args: Any) -> argparse.Namespace:
831832
# build an argparse
832833
parser = argparse.ArgumentParser(
833834
prog=f"linode-cli {self.command} {self.action}",
835+
formatter_class=SortingHelpFormatter,
834836
description=self.summary,
835837
)
836838
for param in self.params:

linodecli/cli.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from json import JSONDecodeError
1111
from logging import getLogger
1212
from sys import version_info
13-
from typing import IO, Any, ContextManager, Dict
13+
from typing import IO, Any, Dict
1414

1515
import requests
1616
import yaml
@@ -311,7 +311,7 @@ def _load_openapi_spec(spec_location: str) -> OpenAPI:
311311
@contextlib.contextmanager
312312
def _get_spec_file_reader(
313313
spec_location: str,
314-
) -> ContextManager[IO]:
314+
):
315315
"""
316316
Returns a reader for an OpenAPI spec file from the given location.
317317

linodecli/configuration/config.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -364,7 +364,7 @@ def configure(
364364
if _check_browsers() and not self.configure_with_pat:
365365
print(
366366
"The CLI will use its web-based authentication to log you in.\n"
367-
"If you prefer to supply a Personal Access Token,"
367+
"If you prefer to supply a Personal Access Token, "
368368
"use `linode-cli configure --token`."
369369
)
370370
input(

0 commit comments

Comments
 (0)