Package: flask-restful / 0.3.10-6

Metadata

Package Version Patches format
flask-restful 0.3.10-6 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
0008_fix AttributeError test api.patch | (download)

tests/test_api.py | 13 4 + 9 - 0 !
1 file changed, 4 insertions(+), 9 deletions(-)

 fix for errors with python 3.12 and flask 3.0.
 Fix for AttributeError in test with Python 3.12 + removed deprecated
 signals_available.
0001 use pytest not nose.patch | (download)

tests/__init__.py | 22 8 + 14 - 0 !
tests/test_api.py | 2 1 + 1 - 0 !
tests/test_api_with_blueprint.py | 3 1 + 2 - 0 !
tests/test_fields.py | 3 1 + 2 - 0 !
tests/test_inputs.py | 27 14 + 13 - 0 !
5 files changed, 25 insertions(+), 32 deletions(-)

 replace nose assert_ with regular assertions or pytest equivalents


remove external image | (download)

docs/_themes/flask_small/layout.html | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 remove externally linked image

Remove an externally linked image that could cause a potential privacy
violation.

Patch-Name: remove-external-image

0003 Use local copies of object.inv for building document.patch | (download)

docs/conf.py | 9 4 + 5 - 0 !
1 file changed, 4 insertions(+), 5 deletions(-)

 use local copies of object.inv for building documentation


0004 Use SOURCE_DATE_EPOCH for copyright year to make bui.patch | (download)

docs/conf.py | 7 5 + 2 - 0 !
1 file changed, 5 insertions(+), 2 deletions(-)

 use source_date_epoch for copyright year to make build reproducible

Fix_the_tests_with_flask_2.1.2.patch | (download)

tests/test_api.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 [patch] fix the tests with flask 2.1.2


replace flask_abort by _aborter.patch | (download)

tests/test_api.py | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 replace flask_abort by _aborter
add missing location when calling add_argument.patch | (download)

tests/test_reqparse.py | 108 49 + 59 - 0 !
1 file changed, 49 insertions(+), 59 deletions(-)

 add missing location= when calling add_argument
 The new werkzeug version 2.2.2 mandates location= when calling
 parser.add_argument().
no pytz timezone.patch | (download)

tests/test_fields.py | 18 9 + 9 - 0 !
1 file changed, 9 insertions(+), 9 deletions(-)

 datetime does not work with non-constant pytz.timezone

This has always been the case (and is explicitly warned about
in the pytz documentation), but became a test fail when
tzdata 2024b changed 'CET' and similar to aliases.

Also, some of these tests expect all-year UTC+1, not CET,
probably because they were written to work around this pytz issue.

remove_mock.patch | (download)

tests/test_fields.py | 2 1 + 1 - 0 !
tests/test_reqparse.py | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

---
remove_six.patch | (download)

docs/conf.py | 1 0 + 1 - 0 !
flask_restful/fields.py | 11 5 + 6 - 0 !
flask_restful/reqparse.py | 10 4 + 6 - 0 !
setup.py | 1 0 + 1 - 0 !
tests/test_api.py | 3 1 + 2 - 0 !
tests/test_inputs.py | 5 2 + 3 - 0 !
tests/test_reqparse.py | 18 5 + 13 - 0 !
7 files changed, 17 insertions(+), 32 deletions(-)

---
pytest_8.4.patch | (download)

tests/test_api.py | 10 5 + 5 - 0 !
tests/test_fields.py | 8 4 + 4 - 0 !
tests/test_inputs.py | 23 11 + 12 - 0 !
3 files changed, 20 insertions(+), 21 deletions(-)

---