代码拉取完成,页面将自动刷新
同步操作将从 OpenCloudOS Stream/python-urllib3 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
%global srcname urllib3
%bcond_with tests
Summary: Python HTTP library with thread-safe connection pooling and file post
Name: python-%{srcname}
Version: 1.26.18
Release: 1%{?dist}
License: MIT
URL: https://github.com/urllib3/urllib3
Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
BuildArch: noarch
%description
Python HTTP library with thread-safe connection pooling, file post support,
user friendly, and more.
%package -n python3-%{srcname}
Summary: Python HTTP library with thread-safe connection pooling and file post
BuildRequires: python3-devel python3-setuptools
%if %{with tests}
BuildRequires: python3-dateutil python3-six python3-pysocks python3-pytest
BuildRequires: python3-pytest-freezegun python3-pytest-timeout
BuildRequires: python3-tornado python3-trustme python3-idna
%endif
Requires: ca-certificates python3-idna python3-pysocks
Requires: python3-six >= 1.16.0
%description -n python3-%{srcname}
Python HTTP library with thread-safe connection pooling, file post support,
user friendly, and more.
%prep
%autosetup -n %{srcname}-%{version}
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
rm -rf test/with_dummyserver/
rm -rf test/appengine/
rm -rf test/contrib/
rm -f test/test_no_ssl.py
sed -i -e 's/^import mock/from unittest import mock/' \
-e 's/^from mock import /from unittest.mock import /' \
test/*.py docs/conf.py
%build
%py3_build
%install
%py3_install
rm -rf %{buildroot}/%{python3_sitelib}/urllib3/packages/six.py
rm -rf %{buildroot}/%{python3_sitelib}/urllib3/packages/__pycache__/six.*
mkdir -p %{buildroot}/%{python3_sitelib}/urllib3/packages/
ln -s %{python3_sitelib}/six.py %{buildroot}/%{python3_sitelib}/urllib3/packages/six.py
ln -s %{python3_sitelib}/__pycache__/six.cpython-%{python3_version_nodots}.opt-1.pyc \
%{buildroot}/%{python3_sitelib}/urllib3/packages/__pycache__/
ln -s %{python3_sitelib}/__pycache__/six.cpython-%{python3_version_nodots}.pyc \
%{buildroot}/%{python3_sitelib}/urllib3/packages/__pycache__/
%if %{with tests}
%check
%pytest -v
%endif
%files -n python3-%{srcname}
%license LICENSE.txt
%doc CHANGES.rst README.rst
%{python3_sitelib}/urllib3/
%{python3_sitelib}/urllib3-*.egg-info/
%changelog
* Mon Oct 23 2023 Zhao Zhen <jeremiazhao@tencent.com> - 1.26.18-1
- fixed CVE-2023-45803 and CVE-2023-43804
* Tue Sep 26 2023 Wang Guodong <gordonwwang@tencent.com> - 1.26.16-1
- Upgrade to version 1.26.16
* Tue Sep 19 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.26.12-5
- Rebuilt for python 3.11
* Fri Sep 08 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.26.12-4
- Rebuilt for OpenCloudOS Stream 23.09
* Fri Apr 28 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.26.12-3
- Rebuilt for OpenCloudOS Stream 23.05
* Fri Mar 31 2023 OpenCloudOS Release Engineering <releng@opencloudos.tech> - 1.26.12-2
- Rebuilt for OpenCloudOS Stream 23
* Fri Sep 16 2022 Xiaojie Chen <jackxjchen@tencent.com> - 1.26.12-1
- Initial build
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。