From e098725e0e0168a7f90199a22c985169fce9bbb7 Mon Sep 17 00:00:00 2001 From: p1c2u Date: Fri, 2 Sep 2022 18:15:12 +0100 Subject: [PATCH] openapi-spec-validator strict requirement fix --- .github/workflows/python-test.yml | 7 +++---- setup.cfg | 31 ++++++++++++++++++++----------- 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index 9d22fb30..64db07a4 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -23,10 +23,9 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install -r requirements.txt - pip install -r requirements_dev.txt - pip install -e . + python -m pip install --upgrade pip setuptools + python -m pip install -r requirements_dev.txt + python -m pip install -e .[django,flask,requests] - name: Test run: python setup.py test - name: Upload coverage diff --git a/setup.cfg b/setup.cfg index 8a5f1b41..3b4a559b 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,8 +28,8 @@ setup_requires = install_requires = isodate dictpath - openapi-spec-validator < 0.4.0 - openapi-schema-validator < 0.2.0 + openapi-spec-validator < 0.5.0 + openapi-schema-validator < 0.3.0 six lazy-object-proxy attrs @@ -39,15 +39,19 @@ install_requires = backports.functools-lru-cache; python_version<"3.0" backports.functools-partialmethod; python_version<"3.0" tests_require = - mock; python_version<"3.0" - pytest - pytest-flake8 < 1.1.0 - pytest-cov - flake8 < 4.0.0 + mock == 2.0.0 + pytest == 3.5.0 + pytest-flake8 == 1.0.7 + pytest-cov == 2.5.1 + coverage == 5.5 + djangorestframework == 3.9.4 + flake8 == 3.9.2 falcon - flask + falcon == 2.0.0; python_version<"3.0" responses + responses < 0.18.0; python_version<"3.0" webob + strict-rfc3339 == 0.7 [options.packages.find] exclude = @@ -55,9 +59,14 @@ exclude = [options.extras_require] django = - django>=2.2; python_version>="3.0" -flask = flask -requests = requests + django < 2.0; python_version<"3.0" + django >= 2.2; python_version>="3.0" +flask = + flask + flask < 2.0.0; python_version<"3.0" +requests = + requests + requests < 2.28.0; python_version<"3.0" [tool:pytest] addopts = -sv --flake8 --junitxml reports/junit.xml --cov openapi_core --cov-report term-missing --cov-report xml:reports/coverage.xml