Skip to content

Commit 601b690

Browse files
authored
Add platform version check (#548)
1 parent f8de21d commit 601b690

4 files changed

Lines changed: 60 additions & 9 deletions

File tree

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,3 +108,7 @@ repos:
108108
- PyYAML
109109
- pytest
110110
- typing_extensions
111+
- repo: https://github.com/ansible/team-devtools
112+
rev: v25.12.8
113+
hooks:
114+
- id: check-platform-constraints

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ classifiers = [
3333
dependencies = [
3434
"ansible-core>=2.16",
3535
"jsonschema>=4.6.0",
36-
"packaging>=25.0",
37-
"pyyaml>=6.0.2",
36+
"packaging>=22.0",
37+
"pyyaml>=6.0.1",
3838
"subprocess-tee>=0.4.1",
3939
]
4040
dynamic = ["version"]
@@ -50,15 +50,15 @@ dev = [
5050
"ansible-core>=2.16",
5151
"coverage[toml]>=7.10.6",
5252
"jsonschema>=4.6.0",
53-
"packaging>=25.0",
53+
"packaging>=22.0",
5454
"pip>=25.2",
5555
"pytest>=7.2.0",
5656
"pytest-instafail>=0.5.0",
5757
"pytest-mock>=3.14.1",
5858
"pytest-plus>=0.6.1",
5959
"pytest-sugar>=1.1.1",
6060
"pytest-xdist>=3.8.0",
61-
"pyyaml>=6.0.2",
61+
"pyyaml>=6.0.1",
6262
"subprocess-tee>=0.4.1",
6363
"uv>=0.4.30",
6464
]

renovate.json

Lines changed: 48 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,51 @@
11
{
22
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
3-
"extends": ["github>ansible/actions//config/renovate.json"]
3+
"extends": ["github>ansible/actions//config/renovate.json"],
4+
"packageRules": [
5+
{
6+
"allowedVersions": "<2.17",
7+
"description": "Platform compatibility constraint",
8+
"matchPackageNames": ["ansible-core"]
9+
},
10+
{
11+
"allowedVersions": "<1.16",
12+
"description": "Platform compatibility constraint",
13+
"matchPackageNames": ["cffi"]
14+
},
15+
{
16+
"allowedVersions": "<4.3",
17+
"description": "Platform compatibility constraint",
18+
"matchPackageNames": ["django"]
19+
},
20+
{
21+
"allowedVersions": "<6.1",
22+
"description": "Platform compatibility constraint",
23+
"matchPackageNames": ["importlib-metadata"]
24+
},
25+
{
26+
"allowedVersions": "<4.22",
27+
"description": "Platform compatibility constraint",
28+
"matchPackageNames": ["jsonschema"]
29+
},
30+
{
31+
"allowedVersions": "<25.0",
32+
"description": "Platform compatibility constraint",
33+
"matchPackageNames": ["packaging"]
34+
},
35+
{
36+
"allowedVersions": "<6.0.2",
37+
"description": "Platform compatibility constraint",
38+
"matchPackageNames": ["pyyaml"]
39+
},
40+
{
41+
"allowedVersions": "<0.5.3",
42+
"description": "Platform compatibility constraint",
43+
"matchPackageNames": ["python-gnupg"]
44+
},
45+
{
46+
"allowedVersions": "<65.6",
47+
"description": "Platform compatibility constraint",
48+
"matchPackageNames": ["setuptools"]
49+
}
50+
]
451
}

uv.lock

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)