From b4c1de12a9ccef2771ab85434559bc10e068a5df Mon Sep 17 00:00:00 2001
From: Leonardo Fagundes Luz Serrano
 <Leonardo.FagundesLuzSerrano@windriver.com>
Date: Tue, 24 Oct 2023 10:20:53 -0300
Subject: [PATCH] tox: Pin ruamel.yaml version to <0.18.0

Some functions have become deprecated on 0.18.0 [1],
such as yaml safe_load() and safe_load_all()

Pinned the version to allow commits to merge while
these API calls are updated.

[1] https://pypi.org/project/ruamel.yaml/0.18.0/

Test Plan:
pass: tox -epylint -vv --skip-missing-interpreters=false
pass: tox

Closes-Bug: 2040283

Change-Id: I83f1319ea99106be0d3c712c68d2c12d7b9646d9
Signed-off-by: Leonardo Fagundes Luz Serrano <Leonardo.FagundesLuzSerrano@windriver.com>
---
 requirements.txt | 2 +-
 tox.ini          | 1 -
 2 files changed, 1 insertion(+), 2 deletions(-)

diff --git a/requirements.txt b/requirements.txt
index c01ade299..5729afcea 100644
--- a/requirements.txt
+++ b/requirements.txt
@@ -1 +1 @@
-# Nothing
+ruamel.yaml<0.18.0
diff --git a/tox.ini b/tox.ini
index afe35bdd9..37539c1d7 100644
--- a/tox.ini
+++ b/tox.ini
@@ -148,7 +148,6 @@ basepython = python3
 sitepackages = False
 
 deps = {[testenv]deps}
-       ruamel.yaml
        requests
        pylint<2.5.0
 commands =