Skip to content

Commit

Permalink
Drop Salt 3004 support
Browse files Browse the repository at this point in the history
  • Loading branch information
gediminasz committed Jul 1, 2023
1 parent 272ba4f commit 69518a9
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]
salt-version: ["3004.*", "3005.*", "3006.*"]
salt-version: ["3005.*", "3006.*"]
fail-fast: false
steps:
- uses: actions/checkout@v3
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

- Added `--salt-output` parameter.
- Added Salt 3006 support.
- Removed Salt 3004 support.

## 2022.10.0

Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ snapshot:
poetry run slskit highstate > highstate.snap

update:
poetry add "salt>=3004.0"
poetry add "salt>=3005.0"
poetry add click@latest colorlog@latest funcy@latest jsonschema@latest
poetry add --group=dev black@latest GitPython@latest mypy@latest pytest@latest pytest-snapshot@latest types-PyYAML@latest
poetry lock
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Commands:
```

- Supported Python versions: 3.8, 3.9, 3.10
- Supported Salt versions: 3004, 3005, 3006
- Supported Salt versions: 3005, 3006

---

Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ click = "^8.1.3"
colorlog = "^6.7.0"
funcy = "^2.0"
jsonschema = "^4.17.3"
salt = ">=3004.0"
salt = ">=3005.0"

[tool.poetry.group.dev.dependencies]
black = "^23.3.0"
Expand Down
2 changes: 1 addition & 1 deletion slskit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@ slskit:
os: Ubuntu
os_family: Debian
kernel: Linux
saltversioninfo: [3004, 2, 0, 0]
saltversioninfo: [3005, 2, 0, 0]
9 changes: 1 addition & 8 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,6 @@

SALT_VERSION = salt.version.__version_info__[0]

skip_3004 = pytest.mark.skipif(
SALT_VERSION == 3004, reason="requires Salt 3005 or higher"
)


@pytest.mark.parametrize(
"command",
Expand All @@ -34,10 +30,7 @@ def test_successful_command_output_snapshot(command, snapshot):
"command",
(
"poetry run slskit sls errors.missing_colon tester",
pytest.param(
"poetry run slskit sls errors.undefined_variable tester",
marks=[skip_3004],
),
"poetry run slskit sls errors.undefined_variable tester",
),
)
def test_failed_command_output_snapshot(command, snapshot):
Expand Down

0 comments on commit 69518a9

Please sign in to comment.