summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorWong Hoi Sing Edison <hswong3i@pantarei-design.com>2023-03-27 22:19:23 +0800
committerGitHub <noreply@github.com>2023-03-27 16:19:23 +0200
commit016b7f71b10539c90ddbb3246f19f9cbf0e65428 (patch)
tree3dedc58b1c164f533b9df69ffb0c29c9a1371a40 /test
parentb3986131207266e682029f361e6c7daa87e1d7eb (diff)
downloadansible-016b7f71b10539c90ddbb3246f19f9cbf0e65428.tar.gz
ansible-galaxy - support `resolvelib >= 0.5.3, < 1.1.0` (#80196)
* ansible-galaxy - support `resolvelib >= 0.5.3, < 1.1.0` <https://pypi.org/project/resolvelib/1.0.1> released on 2023-03-09: - <https://github.com/sarugaku/resolvelib/blob/main/CHANGELOG.rst#101-2023-03-09> - <https://github.com/sarugaku/resolvelib/releases/tag/1.0.1> Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com> * Trigger CI by pinning resolvelib with latest version Since resolvelib is pre-installed in our test containers, we should temporarily pin the latest version allowed to force the tests to run with that version. Once the tests have passed that commit can be reverted. Please make those changes without force pushing, so that we keep the reference to the passing CI run. We can squash the commits when merging the PR so the temporary commits won't be in the final commit merged to the devel branch. Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com> * https://github.com/ansible/ansible/pull/80196#discussion_r1136003637 Also test resolvelib with multiple supported versions. Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com> * Revert "Trigger CI by pinning resolvelib with latest version" This reverts commit 5518e5dbca01b87d13850cee9ccdbdc1ee49188f. --------- Signed-off-by: Wong Hoi Sing Edison <hswong3i@pantarei-design.com>
Diffstat (limited to 'test')
-rw-r--r--test/integration/targets/ansible-galaxy-collection/vars/main.yml2
-rw-r--r--test/lib/ansible_test/_data/requirements/ansible.txt2
-rw-r--r--test/sanity/code-smell/docs-build.requirements.in2
-rw-r--r--test/sanity/code-smell/docs-build.requirements.txt2
-rw-r--r--test/sanity/code-smell/package-data.requirements.in2
-rw-r--r--test/sanity/code-smell/package-data.requirements.txt2
6 files changed, 7 insertions, 5 deletions
diff --git a/test/integration/targets/ansible-galaxy-collection/vars/main.yml b/test/integration/targets/ansible-galaxy-collection/vars/main.yml
index 175d6696ef..d3f188b906 100644
--- a/test/integration/targets/ansible-galaxy-collection/vars/main.yml
+++ b/test/integration/targets/ansible-galaxy-collection/vars/main.yml
@@ -9,6 +9,8 @@ supported_resolvelib_versions:
- "0.6.0"
- "0.7.0"
- "0.8.0"
+ - "0.9.0"
+ - "1.0.1"
unsupported_resolvelib_versions:
- "0.2.0" # Fails on import
diff --git a/test/lib/ansible_test/_data/requirements/ansible.txt b/test/lib/ansible_test/_data/requirements/ansible.txt
index d096901ec2..a07aa98506 100644
--- a/test/lib/ansible_test/_data/requirements/ansible.txt
+++ b/test/lib/ansible_test/_data/requirements/ansible.txt
@@ -15,4 +15,4 @@ importlib_resources >= 5.0, < 5.1; python_version < '3.10'
# NOTE: Ref: https://github.com/sarugaku/resolvelib/issues/69
# NOTE: When updating the upper bound, also update the latest version used
# NOTE: in the ansible-galaxy-collection test suite.
-resolvelib >= 0.5.3, < 0.10.0 # dependency resolver used by ansible-galaxy
+resolvelib >= 0.5.3, < 1.1.0 # dependency resolver used by ansible-galaxy
diff --git a/test/sanity/code-smell/docs-build.requirements.in b/test/sanity/code-smell/docs-build.requirements.in
index 738f7560bf..c788827218 100644
--- a/test/sanity/code-smell/docs-build.requirements.in
+++ b/test/sanity/code-smell/docs-build.requirements.in
@@ -1,6 +1,6 @@
jinja2
pyyaml
-resolvelib < 0.10.0
+resolvelib < 1.1.0
sphinx == 5.3.0
sphinx-notfound-page
sphinx-ansible-theme
diff --git a/test/sanity/code-smell/docs-build.requirements.txt b/test/sanity/code-smell/docs-build.requirements.txt
index d9eebf3b5e..b1222322fb 100644
--- a/test/sanity/code-smell/docs-build.requirements.txt
+++ b/test/sanity/code-smell/docs-build.requirements.txt
@@ -27,7 +27,7 @@ Pygments==2.14.0
pytz==2022.7.1
PyYAML==6.0
requests==2.28.2
-resolvelib==0.9.0
+resolvelib==1.0.1
rstcheck==5.0.0
semantic-version==2.10.0
sh==1.14.3
diff --git a/test/sanity/code-smell/package-data.requirements.in b/test/sanity/code-smell/package-data.requirements.in
index acec62eff9..50e8568c5c 100644
--- a/test/sanity/code-smell/package-data.requirements.in
+++ b/test/sanity/code-smell/package-data.requirements.in
@@ -1,6 +1,6 @@
docutils < 0.18 # match version required by sphinx in the docs-build sanity test
jinja2
pyyaml # ansible-core requirement
-resolvelib < 0.10.0
+resolvelib < 1.1.0
rstcheck < 6 # match version used in other sanity tests
antsibull-changelog
diff --git a/test/sanity/code-smell/package-data.requirements.txt b/test/sanity/code-smell/package-data.requirements.txt
index 4f2cc4e8ef..8821e4cc15 100644
--- a/test/sanity/code-smell/package-data.requirements.txt
+++ b/test/sanity/code-smell/package-data.requirements.txt
@@ -5,7 +5,7 @@ Jinja2==3.1.2
MarkupSafe==2.1.2
packaging==23.0
PyYAML==6.0
-resolvelib==0.9.0
+resolvelib==1.0.1
rstcheck==5.0.0
semantic-version==2.10.0
types-docutils==0.18.3