Skip to content

Commit 23a4480

Browse files
Merge pull request #430 from linode/dev
Release v5.35.0
2 parents 916859c + 351806c commit 23a4480

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+1548
-3062
lines changed

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "pip" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "daily"

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

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

2525
# Check out merge commit
2626
- name: Checkout PR
27-
uses: actions/checkout@v2
27+
uses: actions/checkout@v3
2828
with:
2929
ref: ${{ github.event.client_payload.slash_command.sha }}
3030

@@ -40,7 +40,7 @@ jobs:
4040
python-version: '3.x'
4141

4242
- name: Install Python deps
43-
run: pip install -r requirements.txt -r requirements-dev.txt wheel boto
43+
run: pip install -r requirements.txt -r requirements-dev.txt wheel boto3
4444

4545
- name: Install the CLI
4646
run: make install

.github/workflows/e2e-suite.yml

Lines changed: 15 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,41 @@
1-
name: E2E Test Suite
1+
name: Integration Tests
22
on:
33
workflow_dispatch: null
44
push:
55
branches:
66
- main
77
- dev
88
jobs:
9-
integration_tests:
9+
integration-tests:
1010
name: Run integration tests
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Clone Repository
14-
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # pin@v2
14+
uses: actions/checkout@v3
1515

1616
- name: Update system packages
1717
run: sudo apt-get update -y
1818

19-
- name: Install system deps
20-
run: sudo apt-get install -y build-essential bats parallel netcat
21-
2219
- name: Setup Python
23-
uses: actions/setup-python@75f3110429a8c05be0e1bf360334e4cced2b63fa # pin@v2
20+
uses: actions/setup-python@v4
2421
with:
2522
python-version: '3.x'
2623

2724
- name: Install Python deps
28-
run: pip install wheel
25+
run: pip install wheel boto3
26+
27+
- name: Update cert
28+
run: pip install certifi -U
2929

30-
- name: Install the CLI
30+
- name: Install deps
31+
run: pip install -r requirements.txt -r requirements-dev.txt
32+
33+
- name: Install Package
3134
run: make install
3235
env:
3336
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3437

35-
- name: Download submodules
36-
run: git submodule init && git submodule update
37-
38-
- name: Run the E2E test suite
39-
run: echo "y" | ./test/test-runner.sh --allow-delete-resources --from-env --no-parallel
40-
# We do not have multiple CLI testing accounts at the moment
38+
- name: Run the integration test suite
39+
run: make testint
4140
env:
42-
TOKEN_1: ${{ secrets.LINODE_TOKEN }}
43-
TOKEN_2: ${{ secrets.LINODE_TOKEN }}
41+
LINODE_CLI_TOKEN: ${{ secrets.LINODE_TOKEN }}

.github/workflows/pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- name: checkout repo
10-
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # pin@v2
10+
uses: actions/checkout@v3
1111

1212
- name: setup python 3
13-
uses: actions/setup-python@dc73133d4da04e56a135ae2246682783cc7c7cb6 # pin@v2
13+
uses: actions/setup-python@v4
1414
with:
1515
python-version: '3.x'
1616

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ jobs:
1717
- name: Checkout
1818
uses: actions/checkout@v3
1919
with:
20+
# We want to checkout the main branch
21+
ref: 'main'
2022
fetch-depth: 0
2123

2224
- name: Get previous tag
@@ -38,7 +40,7 @@ jobs:
3840
- name: Release
3941
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # pin@v1
4042
with:
43+
target_commitish: 'main'
4144
token: ${{ steps.generate_token.outputs.token }}
42-
body: Built from Linode OpenAPI spec ${{
43-
github.event.client_payload.spec_version }}
45+
body: Built from Linode OpenAPI spec ${{ github.event.client_payload.spec_version }}
4446
tag_name: ${{ steps.semvers.outputs.v_minor }}

.github/workflows/unit-tests.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,21 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Clone Repository
12-
uses: actions/checkout@5a4ac9002d0be2fb38bd78e4b4dbde5606d7042f # pin@v2
12+
uses: actions/checkout@v3
1313

1414
- name: Update system packages
1515
run: sudo apt-get update -y
1616

1717
- name: Setup Python
18-
uses: actions/setup-python@75f3110429a8c05be0e1bf360334e4cced2b63fa # pin@v2
18+
uses: actions/setup-python@v4
1919
with:
2020
python-version: '3.x'
2121

2222
- name: Install Python wheel
23-
run: pip install wheel
23+
run: pip install wheel boto3
24+
25+
- name: Update cert
26+
run: pip install certifi -U
2427

2528
- name: Install deps
2629
run: pip install -r requirements.txt -r requirements-dev.txt

Dockerfile-release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ FROM python:3.9-slim-buster
1919

2020
COPY --from=builder /src/dist /dist
2121

22-
RUN pip3 install /dist/*.whl boto==2.49.0
22+
RUN pip3 install /dist/*.whl boto3
2323

2424
RUN useradd -ms /bin/bash cli
2525
USER cli:cli

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ testunit:
5252
testint:
5353
pytest tests/integration/${INTEGRATION_TEST_PATH}
5454

55+
.PHONY: testall
56+
testall:
57+
pytest tests
58+
5559

5660
# Alias for unit; integration tests should be explicit
5761
.PHONY: test

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ Upgrading::
6666
Usage
6767
-----
6868

69-
The Linode CLI is invoked with the `linode-cli`. The CLI accepts two primary
70-
arguments, *command* and *action*::
69+
The Linode CLI is invoked with the `linode-cli`. There are two aliases available: `linode` and `lin`.
70+
The CLI accepts two primary arguments, *command* and *action*::
7171

7272
linode-cli <command> <action>
7373

linodecli/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,11 @@ def main(): # pylint: disable=too-many-branches,too-many-statements
5252
"""
5353
Handle incoming command arguments
5454
"""
55-
parser = argparse.ArgumentParser("linode-cli", add_help=False)
55+
parser = argparse.ArgumentParser(
56+
"linode-cli",
57+
add_help=False,
58+
description="The Linode Command Line Interface.\n\nAliases: lin, linode",
59+
)
5660
parsed, args = register_args(parser).parse_known_args()
5761

5862
# output/formatting settings

0 commit comments

Comments
 (0)