-
-
Notifications
You must be signed in to change notification settings - Fork 769
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: CVE fixes, update werkzeug #1967
base: v2
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ def read_version(package): | |
'PyYAML>=5.1,<7', | ||
'requests>=2.9.1,<3', | ||
'inflection>=0.3.1,<0.6', | ||
'werkzeug>=1.0,<2.3', | ||
'werkzeug>=1.0,<4.0', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. since werkzeug versions below 3.x have security vulnerabilities, I suggest:
That change brings the next challenge:
|
||
'importlib-metadata>=1 ; python_version<"3.8"', | ||
'packaging>=20', | ||
] | ||
|
@@ -44,9 +44,10 @@ def read_version(package): | |
|
||
tests_require = [ | ||
'decorator>=5,<6', | ||
'pytest>=6,<7', | ||
'pytest>=6,<9', | ||
'pytest-cov>=2,<3', | ||
'testfixtures>=6,<7', | ||
'pytest', | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Three lines above the pytest dependency is set to |
||
*flask_require, | ||
swagger_ui_require | ||
] | ||
|
@@ -100,7 +101,7 @@ def readme(): | |
url='https://github.com/zalando/connexion', | ||
keywords='openapi oai swagger rest api oauth flask microservice framework', | ||
license='Apache License Version 2.0', | ||
setup_requires=['flake8'], | ||
setup_requires=['flake8', 'pytest-runner'], | ||
python_requires=">=3.6", | ||
install_requires=install_requires + flask_require, | ||
tests_require=tests_require, | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,17 +8,20 @@ envlist = | |
{py37}-{min,pypi,dev} | ||
{py38}-{min,pypi,dev} | ||
{py39}-{min,pypi,dev} | ||
{py310}-{min,pypi,dev} | ||
isort-check | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Probably should add py311 also, please. I tried that, and that brings new problems. In Py3.11 the collections module had some breaking (?) changes
|
||
isort-check-examples | ||
isort-check-tests | ||
flake8 | ||
mypy | ||
pytest | ||
|
||
[gh-actions] | ||
python = | ||
3.7: py37-min,py37-pypi | ||
3.8: py38-min,py38-pypi | ||
3.9: py39-min,py39-pypi,flake8,isort-check,isort-check-examples,isort-check-tests,mypy | ||
3.10: py310-min,py310-pypi,flake8,isort-check,isort-check-examples,isort-check-tests,mypy | ||
|
||
[testenv] | ||
setenv=PYTHONPATH = {toxinidir}:{toxinidir} | ||
|
@@ -31,7 +34,10 @@ commands= | |
pypi: pip install --upgrade -r {toxworkdir}/requirements-pypi.txt | ||
dev: requirements-builder --level=dev --extras aiohttp --req=requirements-devel.txt -o {toxworkdir}/requirements-dev.txt setup.py | ||
dev: pip install --upgrade -r {toxworkdir}/requirements-dev.txt | ||
python setup.py test | ||
python setup.py pytest {posargs} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. There's a /lot/ going on in the tox setup/run commands that I don't understand, like dynamically creating requirements files such as
|
||
|
||
[testenv:pytest] | ||
commands=python -m pytest | ||
|
||
[testenv:flake8] | ||
deps= | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think adding this import on this line causes the check for properly sorted imports to fail ("isort"). Still trying to figure it out tho.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok will move that around.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool, this is the position that isort accepted for me: