Skip to content

Commit a10e248

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

File tree

2 files changed

+23
-13
lines changed

2 files changed

+23
-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: 22 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,37 @@ 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+
djangorestframework == 3.9.4
48+
flake8 == 3.9.2
4749
falcon
50+
falcon == 2.0.0; python_version<"3.0"
4851
flask
52+
flask < 2.0.0; python_version<"3.0"
53+
requests == 2.22.0
4954
responses
55+
responses < 0.18.0; python_version<"3.0"
5056
webob
57+
strict-rfc3339 == 0.7
5158

5259
[options.packages.find]
5360
exclude =
5461
tests
5562

5663
[options.extras_require]
5764
django =
58-
django>=2.2; python_version>="3.0"
59-
flask = flask
60-
requests = requests
65+
django < 2.0; python_version<"3.0"
66+
django >= 2.2; python_version>="3.0"
67+
flask =
68+
flask
69+
flask < 2.0.0; python_version<"3.0"
70+
requests =
71+
requests
72+
requests < 2.28.0; python_version<"3.0"
6173

6274
[tool:pytest]
6375
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)