Skip to content

Commit 62b5f72

Browse files
authored
Added missing ansible-compat runtime dependency (#246)
1 parent d7e6e56 commit 62b5f72

File tree

9 files changed

+116
-101
lines changed

9 files changed

+116
-101
lines changed

.config/constraints.txt

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
#
2+
# This file is autogenerated by pip-compile with Python 3.10
3+
# by the following command:
4+
#
5+
# pip-compile --extra=docs --extra=test --no-annotate --output-file=.config/constraints.txt --strip-extras --unsafe-package=ruamel-yaml-clib pyproject.toml
6+
#
7+
ansible-compat==4.1.11
8+
ansible-core==2.16.2
9+
attrs==23.2.0
10+
babel==2.14.0
11+
beautifulsoup4==4.12.2
12+
bracex==2.4
13+
cairocffi==1.6.1
14+
cairosvg==2.7.1
15+
certifi==2023.11.17
16+
cffi==1.16.0
17+
charset-normalizer==3.3.2
18+
click==8.1.7
19+
click-help-colors==0.9.4
20+
colorama==0.4.6
21+
coverage==7.4.0
22+
cryptography==41.0.7
23+
csscompressor==0.9.5
24+
cssselect2==0.7.0
25+
defusedxml==0.7.1
26+
dnspython==2.4.2
27+
enrich==1.2.7
28+
exceptiongroup==1.2.0
29+
ghp-import==2.1.0
30+
griffe==0.38.1
31+
htmlmin2==0.1.13
32+
idna==3.6
33+
iniconfig==2.0.0
34+
jinja2==3.1.2
35+
jsmin==3.0.1
36+
jsonschema==4.20.0
37+
jsonschema-specifications==2023.12.1
38+
linkchecker==10.4.0
39+
markdown==3.5.1
40+
markdown-exec==1.8.0
41+
markdown-include==0.8.1
42+
markdown-it-py==3.0.0
43+
markupsafe==2.1.3
44+
mdurl==0.1.2
45+
mergedeep==1.3.4
46+
mkdocs==1.5.3
47+
mkdocs-ansible==0.2.1
48+
mkdocs-autorefs==0.5.0
49+
mkdocs-gen-files==0.5.0
50+
mkdocs-htmlproofer-plugin==1.0.0
51+
mkdocs-material==9.5.3
52+
mkdocs-material-extensions==1.3.1
53+
mkdocs-minify-plugin==0.7.2
54+
mkdocs-monorepo-plugin==1.1.0
55+
mkdocstrings==0.24.0
56+
mkdocstrings-python==1.8.0
57+
molecule==6.0.3
58+
packaging==23.2
59+
paginate==0.5.6
60+
pathspec==0.12.1
61+
pillow==10.2.0
62+
pipdeptree==2.13.1
63+
platformdirs==4.1.0
64+
pluggy==1.3.0
65+
pycparser==2.21
66+
pygments==2.17.2
67+
pymdown-extensions==10.7
68+
pytest==7.4.4
69+
pytest-plus==0.6.1
70+
python-dateutil==2.8.2
71+
python-slugify==8.0.1
72+
pyyaml==6.0.1
73+
pyyaml-env-tag==0.1
74+
referencing==0.32.1
75+
regex==2023.12.25
76+
requests==2.31.0
77+
resolvelib==1.0.1
78+
rich==13.7.0
79+
rpds-py==0.16.2
80+
six==1.16.0
81+
soupsieve==2.5
82+
subprocess-tee==0.4.1
83+
text-unidecode==1.3
84+
tinycss2==1.2.1
85+
tomli==2.0.1
86+
urllib3==2.1.0
87+
watchdog==3.0.0
88+
wcmatch==8.5
89+
webencodings==0.5.1

.config/lock-requirements.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,24 @@
44
#
55
# pip-compile --no-annotate --output-file=.config/lock-requirements.txt --strip-extras --unsafe-package=ruamel-yaml-clib pyproject.toml
66
#
7+
ansible-compat==4.1.11
78
ansible-core==2.16.2
9+
attrs==23.2.0
810
cffi==1.16.0
911
cryptography==41.0.7
1012
exceptiongroup==1.2.0
11-
importlib-resources==6.1.1
1213
iniconfig==2.0.0
1314
jinja2==3.1.2
15+
jsonschema==4.20.0
16+
jsonschema-specifications==2023.12.1
1417
markupsafe==2.1.3
1518
packaging==23.2
1619
pluggy==1.3.0
1720
pycparser==2.21
1821
pytest==7.4.4
1922
pyyaml==6.0.1
23+
referencing==0.32.1
2024
resolvelib==1.0.1
25+
rpds-py==0.16.2
26+
subprocess-tee==0.4.1
2127
tomli==2.0.1

.config/requirements.in

Lines changed: 0 additions & 3 deletions
This file was deleted.

.config/requirements.txt

Lines changed: 4 additions & 87 deletions
Original file line numberDiff line numberDiff line change
@@ -1,87 +1,4 @@
1-
#
2-
# This file is autogenerated by pip-compile with Python 3.10
3-
# by the following command:
4-
#
5-
# pip-compile --extra=docs --extra=test --no-annotate --output-file=.config/requirements.txt --strip-extras --unsafe-package=ruamel-yaml-clib pyproject.toml
6-
#
7-
ansible-compat==4.1.10
8-
ansible-core==2.16.2
9-
attrs==23.2.0
10-
babel==2.14.0
11-
beautifulsoup4==4.12.2
12-
bracex==2.4
13-
cairocffi==1.6.1
14-
cairosvg==2.7.1
15-
certifi==2023.11.17
16-
cffi==1.16.0
17-
charset-normalizer==3.3.2
18-
click==8.1.7
19-
click-help-colors==0.9.4
20-
colorama==0.4.6
21-
coverage==7.4.0
22-
cryptography==41.0.7
23-
csscompressor==0.9.5
24-
cssselect2==0.7.0
25-
defusedxml==0.7.1
26-
enrich==1.2.7
27-
exceptiongroup==1.2.0
28-
ghp-import==2.1.0
29-
griffe==0.38.1
30-
htmlmin2==0.1.13
31-
idna==3.6
32-
iniconfig==2.0.0
33-
jinja2==3.1.2
34-
jsmin==3.0.1
35-
jsonschema==4.20.0
36-
jsonschema-specifications==2023.12.1
37-
markdown==3.5.1
38-
markdown-exec==1.8.0
39-
markdown-include==0.8.1
40-
markdown-it-py==3.0.0
41-
markupsafe==2.1.3
42-
mdurl==0.1.2
43-
mergedeep==1.3.4
44-
mkdocs==1.5.3
45-
mkdocs-ansible==0.2.0
46-
mkdocs-autorefs==0.5.0
47-
mkdocs-gen-files==0.5.0
48-
mkdocs-htmlproofer-plugin==1.0.0
49-
mkdocs-material==9.5.3
50-
mkdocs-material-extensions==1.3.1
51-
mkdocs-minify-plugin==0.7.2
52-
mkdocs-monorepo-plugin==1.1.0
53-
mkdocstrings==0.24.0
54-
mkdocstrings-python==1.7.5
55-
molecule==6.0.3
56-
packaging==23.2
57-
paginate==0.5.6
58-
pathspec==0.12.1
59-
pillow==10.2.0
60-
pipdeptree==2.13.1
61-
platformdirs==4.1.0
62-
pluggy==1.3.0
63-
pycparser==2.21
64-
pygments==2.17.2
65-
pymdown-extensions==10.7
66-
pytest==7.4.4
67-
pytest-plus==0.6.0
68-
python-dateutil==2.8.2
69-
python-slugify==8.0.1
70-
pyyaml==6.0.1
71-
pyyaml-env-tag==0.1
72-
referencing==0.32.1
73-
regex==2023.12.25
74-
requests==2.31.0
75-
resolvelib==1.0.1
76-
rich==13.7.0
77-
rpds-py==0.16.2
78-
six==1.16.0
79-
soupsieve==2.5
80-
subprocess-tee==0.4.1
81-
text-unidecode==1.3
82-
tinycss2==1.2.1
83-
tomli==2.0.1
84-
urllib3==2.1.0
85-
watchdog==3.0.0
86-
wcmatch==8.5
87-
webencodings==0.5.1
1+
ansible-core>=2.14
2+
ansible-compat>=4.1.11
3+
pytest>=6
4+
packaging

.config/test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
ansible-core
22
coverage
33
molecule
4-
pytest-plus>=0.6.0
4+
pytest-plus>=0.6.1

.pre-commit-config.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ repos:
3131
hooks:
3232
- id: remove-tabs
3333
- repo: https://github.com/astral-sh/ruff-pre-commit
34-
rev: "v0.1.9"
34+
rev: "v0.1.11"
3535
hooks:
3636
- id: ruff
3737
args: [--fix, --exit-non-zero-on-fix]
@@ -51,7 +51,7 @@ repos:
5151
- id: black
5252
language_version: python3
5353
- repo: https://github.com/streetsidesoftware/cspell-cli
54-
rev: v8.2.1
54+
rev: v8.3.0
5555
hooks:
5656
- id: cspell
5757
name: Spell check with cspell
@@ -104,19 +104,19 @@ repos:
104104
name: deps
105105
alias: deps
106106
always_run: true
107-
entry: pip-compile --resolver=backtracking -q --no-annotate --output-file=.config/requirements.txt pyproject.toml --extra docs --extra test --strip-extras --unsafe-package ruamel-yaml-clib
108-
files: ^.config\/.*requirements.*$
107+
entry: pip-compile --resolver=backtracking -q --no-annotate --output-file=.config/constraints.txt pyproject.toml --extra docs --extra test --strip-extras --unsafe-package ruamel-yaml-clib
108+
files: ^.config\/.*(requirements|constraints).*$
109109
language: python
110110
language_version: "3.10" # minimal we support officially
111111
pass_filenames: false
112112
additional_dependencies:
113113
- pip>=22.3.1
114114
- id: pip-compile
115-
entry: pip-compile --resolver=backtracking -q --no-annotate --output-file=.config/requirements.txt pyproject.toml --extra docs --extra test --strip-extras --unsafe-package ruamel-yaml-clib --upgrade
115+
entry: pip-compile --resolver=backtracking -q --no-annotate --output-file=.config/constraints.txt pyproject.toml --extra docs --extra test --strip-extras --unsafe-package ruamel-yaml-clib --upgrade
116116
language: python
117117
always_run: true
118118
pass_filenames: false
119-
files: ^.config\/.*requirements.*$
119+
files: ^.config\/.*(requirements|constraints).*$
120120
alias: up
121121
stages: [manual]
122122
language_version: "3.10" # minimal we support officially

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"[python]": {
33
"editor.codeActionsOnSave": {
4-
"source.organizeImports": true
4+
"source.organizeImports": "explicit"
55
}
66
},
77
"editor.formatOnSave": true,

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ lines-between-types = 1 # Separate import/from with 1 line
169169
optional-dependencies.docs = { file = [".config/docs-requirements.txt"] }
170170
optional-dependencies.test = { file = [".config/test-requirements.txt"] }
171171
optional-dependencies.lock = { file = [".config/lock-requirements.txt"] }
172-
dependencies = { file = [".config/requirements.in"] }
172+
dependencies = { file = [".config/requirements.txt"] }
173173

174174
[tool.setuptools_scm]
175175
local_scheme = "no-local-version"

tox.ini

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ setenv =
3838
COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}}
3939
COVERAGE_PROCESS_START={toxinidir}/pyproject.toml
4040
FORCE_COLOR = 1
41-
PIP_CONSTRAINT = {toxinidir}/.config/requirements.txt
41+
PIP_CONSTRAINT = {toxinidir}/.config/constraints.txt
4242
devel: PIP_CONSTRAINT = /dev/null
4343
extras =
4444
test
@@ -105,6 +105,12 @@ commands =
105105
{toxinidir}
106106
# metadata validation
107107
sh -c "python -m twine check --strict {toxinidir}/dist/*"
108+
# testing installation of the wheel
109+
sh -c 'python3 -m pip install "pytest-ansible @ file://$(echo {toxinidir}/dist/*.whl)"'
110+
# minimal test that pytest finds the plugin:
111+
pytest --inventory=/dev/null --version
112+
# testing uninstallation
113+
python3 -m pip uninstall -y pytest-ansible
108114

109115
[testenv:coverage]
110116
description = Combines and displays coverage results

0 commit comments

Comments
 (0)