Skip to content

Commit 461f1f8

Browse files
authored
Merge pull request #62 from cloudscale-ch/release/1.5.0
Release 1.5.0
2 parents 8bb8f20 + e501d59 commit 461f1f8

20 files changed

+230
-83
lines changed

.github/workflows/flake8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111
- name: GitHub Action for Flake8
1212
uses: cclauss/[email protected]

.github/workflows/publish_docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ jobs:
99
deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313

1414
- name: Setup Python
15-
uses: actions/setup-python@v4
15+
uses: actions/setup-python@v5
1616
with:
1717
python-version: "3.8"
1818

@@ -39,7 +39,7 @@ jobs:
3939
- run: mkdocs build
4040

4141
- name: Deploy
42-
uses: peaceiris/actions-gh-pages@v3
42+
uses: peaceiris/actions-gh-pages@v4
4343
with:
4444
github_token: ${{ secrets.GITHUB_TOKEN }}
4545
publish_dir: ./site

.github/workflows/publish_pypi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
deploy:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v3
12+
- uses: actions/checkout@v4
1313
- name: Set up Python
14-
uses: actions/setup-python@v4
14+
uses: actions/setup-python@v5
1515
with:
1616
python-version: "3.x"
1717
- name: Install dependencies

.github/workflows/test.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ jobs:
99
max-parallel: 4
1010
matrix:
1111
python-version:
12-
- "3.6"
13-
- "3.7"
14-
- "3.8"
12+
- "3.9"
1513
- "3.10"
14+
- "3.11"
15+
- "3.12"
16+
- "3.13"
1617

1718
steps:
18-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@v4
1920
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v4
21+
uses: actions/setup-python@v5
2122
with:
2223
python-version: ${{ matrix.python-version }}
2324
- name: Install dependencies
@@ -28,7 +29,7 @@ jobs:
2829
run: tox
2930

3031
- name: Upload coverage to Codecov
31-
uses: codecov/codecov-action@v3
32+
uses: codecov/codecov-action@v4
3233
with:
3334
token: ${{ secrets.CODECOV_TOKEN }}
3435
file: ./coverage.xml

CHANGELOG.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,20 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## v1.5.0 (2025-06-24)
6+
7+
### Minor changes
8+
9+
- Add qcow2 as supported image import format.
10+
- Drop support for Python <3.9.
11+
12+
### Bug fixes
13+
14+
- Fix some commands not showing up in certain configurations.
15+
516
## v1.4.0 (2021-05-03)
617

7-
### Minor Chages
18+
### Minor changes
819

920
- Implemented interface support.
1021

cloudscale_cli/cli.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,14 @@ def cli(ctx, profile, api_token, debug, output, verbose):
5353
)
5454

5555

56-
cli.add_command(custom_image)
57-
cli.add_command(flavor)
58-
cli.add_command(floating_ip)
59-
cli.add_command(image)
60-
cli.add_command(network)
61-
cli.add_command(objects_user)
62-
cli.add_command(region)
63-
cli.add_command(server_group)
64-
cli.add_command(server)
65-
cli.add_command(subnet)
66-
cli.add_command(volume)
56+
cli.add_command(custom_image, name='custom-image')
57+
cli.add_command(flavor, name='flavor')
58+
cli.add_command(floating_ip, name='floating-ip')
59+
cli.add_command(image, name='image')
60+
cli.add_command(network, name='network')
61+
cli.add_command(objects_user, name='objects-user')
62+
cli.add_command(region, name='region')
63+
cli.add_command(server_group, name='server-group')
64+
cli.add_command(server, name='server')
65+
cli.add_command(subnet, name='subnet')
66+
cli.add_command(volume, name='volume')

cloudscale_cli/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = "1.4.0"
1+
__version__ = "1.5.0"

tests/test_common.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,11 @@
55
def test_list_commands():
66
runner = CliRunner()
77
result = runner.invoke(cli, [])
8+
9+
# Since click 8.2, the exit code is 2, when usage is invoked without
10+
# -h/--help. Since we support older releases as well, it can be one of two.
11+
assert result.exit_code in (0, 2)
12+
13+
# This can be avoided by asking for help
14+
result = runner.invoke(cli, ['--help'])
815
assert result.exit_code == 0

tests/test_custom_image.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ def test_custom_images_delete():
111111
status=200,
112112
)
113113
responses.add(
114-
responses.DELETE, CLOUDSCALE_API_URL + "/custom-images/" + uuid, status=204
114+
responses.DELETE,
115+
CLOUDSCALE_API_URL + "/custom-images/" + uuid,
116+
status=204,
115117
)
116118

117119
runner = CliRunner()
@@ -255,7 +257,6 @@ def test_custom_images_update():
255257
responses.add(
256258
responses.PATCH,
257259
CLOUDSCALE_API_URL + "/custom-images/" + uuid,
258-
json=CUSTOM_IMAGE_RESP,
259260
status=204,
260261
)
261262
responses.add(

tests/test_flavor.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,17 @@
1515
@responses.activate
1616
def test_flavor_get_all():
1717
responses.add(
18-
responses.GET, CLOUDSCALE_API_URL + "/flavors", json=[FLAVOR_RESP], status=200
18+
responses.GET,
19+
CLOUDSCALE_API_URL + "/flavors",
20+
json=[FLAVOR_RESP],
21+
status=200,
22+
)
23+
responses.add(
24+
responses.GET,
25+
CLOUDSCALE_API_URL + "/flavors",
26+
json={},
27+
status=500,
1928
)
20-
responses.add(responses.GET, CLOUDSCALE_API_URL + "/flavors", json={}, status=500)
2129

2230
runner = CliRunner()
2331
result = runner.invoke(

0 commit comments

Comments
 (0)