From 9af915779dd4334cdef697b30213184f7d36add1 Mon Sep 17 00:00:00 2001 From: chenhaixing Date: Thu, 21 Jul 2022 16:48:09 +0800 Subject: [PATCH] modify RECENT_DATE to adapt time change --- python-urllib3.spec | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/python-urllib3.spec b/python-urllib3.spec index 9729bf5..71e4ccc 100644 --- a/python-urllib3.spec +++ b/python-urllib3.spec @@ -3,7 +3,7 @@ Name: python-%{srcname} Version: 1.26.7 -Release: 2 +Release: 3 Summary: Sanity-friendly HTTP client for Python License: MIT URL: https://urllib3.readthedocs.io @@ -37,6 +37,10 @@ Python3 HTTP module with connection pooling and file POST abilities. %prep %autosetup -n %{srcname}-%{version} -p1 + +recent_date=$(date --date "7 month ago" +"%y, %_m, %_d") +sed -i "s/^RECENT_DATE = datetime.date(.*)/RECENT_DATE = datetime.date($recent_date)/" src/urllib3/connection.py + #Failure use case circumvention rm -rf test/with_dummyserver/ rm -rf test/appengine/ @@ -74,6 +78,9 @@ PYTHONPATH=%{buildroot}%{python3_sitelib}:%{python3_sitelib} %{__python3} -m pyt %{python3_sitelib}/urllib3-*.egg-info %changelog +* Thu Jul 21 2022 chenhaixing - 1.26.7-3 +- modify RECENT_DATE to adapt time change + * Wed Jul 06 2022 chenhaixing - 1.26.7-2 - add patch Bump RECENT_DATE and solve test case test_recent_date failed -- Gitee