!4 Package upgrade

From: @wk333 
Reviewed-by: @shinwell_hu 
Signed-off-by: @shinwell_hu
This commit is contained in:
openeuler-ci-bot 2022-06-30 02:14:12 +00:00 committed by Gitee
commit f14a603f48
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 6 additions and 26 deletions

View File

@ -1,22 +0,0 @@
From bab31e085f355dd73858fd3715f7ed71849656da Mon Sep 17 00:00:00 2001
From: ziirish <ziirish@ziirish.info>
Date: Wed, 1 Sep 2021 21:53:02 +0200
Subject: [PATCH] optimize email regex (credits: @kevinbackhouse, fix: #372)
---
flask_restx/inputs.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/flask_restx/inputs.py b/flask_restx/inputs.py
index b05532f3..9c76d8a0 100644
--- a/flask_restx/inputs.py
+++ b/flask_restx/inputs.py
@@ -48,7 +48,7 @@ def my_type(value):
email_regex = re.compile(
- r"^" "(?P<local>[^@]*[^@.])" r"@" r"(?P<server>[^@]+(?:\.[^@]+)*)" r"$",
+ r"^" "(?P<local>[^@]*[^@.])" r"@" r"(?P<server>[^@\.]+(?:\.[^@\.]+)*)" r"$",
re.IGNORECASE,
)

Binary file not shown.

BIN
flask-restx-0.5.1.tar.gz Normal file

Binary file not shown.

View File

@ -1,12 +1,11 @@
%global _empty_manifest_terminate_build 0 %global _empty_manifest_terminate_build 0
Name: python-flask-restx Name: python-flask-restx
Version: 0.2.0 Version: 0.5.1
Release: 2 Release: 1
Summary: Fully featured framework for fast, easy and documented API development with Flask Summary: Fully featured framework for fast, easy and documented API development with Flask
License: BSD-3-Clause License: BSD-3-Clause
URL: https://github.com/python-restx/flask-restx URL: https://github.com/python-restx/flask-restx
Source0: https://files.pythonhosted.org/packages/5f/6e/f71db883f6228e09e7e8c7bf5f1068c0a853db992bcaebd105005b70c959/flask-restx-%{version}.tar.gz Source0: https://files.pythonhosted.org/packages/71/f2/ffca4b36b2888d3445e3ee9494cb8efe2af0d8ac96feb0f08a0fb04304b9/flask-restx-0.5.1.tar.gz
Patch1: CVE-2021-32838.patch
BuildArch: noarch BuildArch: noarch
Requires: python3-aniso8601 Requires: python3-aniso8601
@ -74,6 +73,9 @@ mv %{buildroot}/doclist.lst .
%{_pkgdocdir} %{_pkgdocdir}
%changelog %changelog
* Wed Jun 29 2022 SimpleUpdate Robot <tc@openeuler.org> - 0.5.1-1
- Upgrade to version 0.5.1
* Sat Oct 9 2021 liwu <liwu13@huawei.com> - 0.2.0-2 * Sat Oct 9 2021 liwu <liwu13@huawei.com> - 0.2.0-2
* Fix CVE-2021-32838 * Fix CVE-2021-32838