Skip to content

Commit

Permalink
Merge pull request #406 from p1c2u/fix/openapi-spec-validator-strict-…
Browse files Browse the repository at this point in the history
…requirement-fix

openapi-spec-validator strict requirement fix
  • Loading branch information
p1c2u authored Sep 2, 2022
2 parents c368978 + e098725 commit c1b65a5
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 15 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
31 changes: 20 additions & 11 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -39,25 +39,34 @@ 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 =
tests

[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

0 comments on commit c1b65a5

Please sign in to comment.