Skip to content

Commit 8419f19

Browse files
committed
openapi-spec-validator strict requirement fix
1 parent c368978 commit 8419f19

File tree

2 files changed

+22
-13
lines changed

2 files changed

+22
-13
lines changed

.github/workflows/python-test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,7 @@ jobs:
2424
- name: Install dependencies
2525
run: |
2626
python -m pip install --upgrade pip
27-
pip install -r requirements.txt
28-
pip install -r requirements_dev.txt
29-
pip install -e .
27+
pip install -e .[django,flask,requests]
3028
- name: Test
3129
run: python setup.py test
3230
- name: Upload coverage

setup.cfg

Lines changed: 21 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ setup_requires =
2828
install_requires =
2929
isodate
3030
dictpath
31-
openapi-spec-validator < 0.4.0
32-
openapi-schema-validator < 0.2.0
31+
openapi-spec-validator < 0.5.0
32+
openapi-schema-validator < 0.3.0
3333
six
3434
lazy-object-proxy
3535
attrs
@@ -39,25 +39,36 @@ install_requires =
3939
backports.functools-lru-cache; python_version<"3.0"
4040
backports.functools-partialmethod; python_version<"3.0"
4141
tests_require =
42-
mock; python_version<"3.0"
43-
pytest
44-
pytest-flake8 < 1.1.0
45-
pytest-cov
46-
flake8 < 4.0.0
42+
mock == 2.0.0
43+
pytest == 3.5.0
44+
pytest-flake8 == 1.0.7
45+
pytest-cov == 2.5.1
46+
coverage == 5.5
47+
flake8 == 3.9.2
4748
falcon
49+
falcon == 2.0.0; python_version<"3.0"
4850
flask
51+
flask < 2.0.0; python_version<"3.0"
52+
requests == 2.22.0
4953
responses
54+
responses < 0.18.0; python_version<"3.0"
5055
webob
56+
strict-rfc3339 == 0.7
5157

5258
[options.packages.find]
5359
exclude =
5460
tests
5561

5662
[options.extras_require]
5763
django =
58-
django>=2.2; python_version>="3.0"
59-
flask = flask
60-
requests = requests
64+
django < 2.0; python_version<"3.0"
65+
django >= 2.2; python_version>="3.0"
66+
flask =
67+
flask
68+
flask < 2.0.0; python_version<"3.0"
69+
requests =
70+
requests
71+
requests < 2.28.0; python_version<"3.0"
6172

6273
[tool:pytest]
6374
addopts = -sv --flake8 --junitxml reports/junit.xml --cov openapi_core --cov-report term-missing --cov-report xml:reports/coverage.xml

0 commit comments

Comments
 (0)