Skip to content

Commit

Permalink
Remove new syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Hook25 committed Nov 1, 2024
1 parent ec5aaf5 commit a047244
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 22 deletions.
8 changes: 0 additions & 8 deletions .github/workflows/armhf_lxd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,6 @@ jobs:
runs-on: ${{ matrix.runner_os }}
name: "Build: ${{ matrix.series }} (Snapcraft ${{ matrix.snapcraft_channel }})"
steps:
- name: Ubuntu 18.04 upgrade Python
if: ${{ matrix.runner_os == 'ubuntu-20.04' }}
run: |
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt -y update
sudo apt install -y -qq python3.10
sudo update-alternatives --install /usr/bin/python python /usr/bin/python3.10 1
sudo update-alternatives --set python /usr/bin/python3.10
- uses: actions/checkout@v4
with:
fetch-depth: 0
Expand Down
27 changes: 13 additions & 14 deletions tools/release/get_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,20 +188,19 @@ def bump_version(
"""
version_no_v = version.replace("v", "")
major, minor, patch = (int(n) for n in version_no_v.split("."))
match needed_bump:
case TraceabilityEnum.BREAKING:
major += 1
minor = 0
patch = 0
case TraceabilityEnum.NEW:
minor += 1
patch = 0
case TraceabilityEnum.BUGFIX:
patch += 1
case TraceabilityEnum.INFRA:
pass
case _:
raise ValueError(f"Unknown traceability marker {needed_bump}")
if needed_bump == TraceabilityEnum.BREAKING:
major += 1
minor = 0
patch = 0
elif needed_bump == TraceabilityEnum.NEW:
minor += 1
patch = 0
elif needed_bump == TraceabilityEnum.BUGFIX:
patch += 1
elif needed_bump == TraceabilityEnum.INFRA:
pass
else:
raise ValueError(f"Unknown traceability marker {needed_bump}")

prefix = ""
if output_format == OutputFormats.TAG:
Expand Down

0 comments on commit a047244

Please sign in to comment.