Hello community, here is the log from the commit of package python-urllib3 for openSUSE:Factory checked in at 2020-09-18 14:23:16 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-urllib3 (Old) and /work/SRC/openSUSE:Factory/.python-urllib3.new.4249 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-urllib3" Fri Sep 18 14:23:16 2020 rev:41 rq:833356 version:1.25.10 Changes: -------- --- /work/SRC/openSUSE:Factory/python-urllib3/python-urllib3.changes 2020-08-06 17:32:43.597102899 +0200 +++ /work/SRC/openSUSE:Factory/.python-urllib3.new.4249/python-urllib3.changes 2020-09-18 14:24:56.843081710 +0200 @@ -1,0 +2,5 @@ +Wed Sep 9 16:49:22 UTC 2020 - Alberto Planas Dominguez <[email protected]> + +- Generate pyc for ssl_match_hostname too + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-urllib3.spec ++++++ --- /var/tmp/diff_new_pack.4rv7L4/_old 2020-09-18 14:24:59.003083886 +0200 +++ /var/tmp/diff_new_pack.4rv7L4/_new 2020-09-18 14:24:59.007083889 +0200 @@ -105,22 +105,22 @@ %if !%{with test} %python_install +# Unbundle the Python 3 build +rm %{buildroot}/%{python3_sitelib}/urllib3/packages/six.py +rm -r %{buildroot}/%{python3_sitelib}/urllib3/packages/ssl_match_hostname/ + +# Copy ssl_match_hostname.py before compilation, so we can have a pyc too +cp -a %{SOURCE1} %{buildroot}/%{python3_sitelib}/urllib3/packages/ssl_match_hostname.py + %{python_expand \ $python -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/urllib3/ $python -O -m compileall -d %{$python_sitelib} %{buildroot}%{$python_sitelib}/urllib3/ } -# Unbundle the Python 3 build -rm -rf %{buildroot}/%{python3_sitelib}/urllib3/packages/six.py* -rm -rf %{buildroot}/%{python3_sitelib}/urllib3/packages/__pycache__/six* -rm -rf %{buildroot}/%{python3_sitelib}/urllib3/packages/ssl_match_hostname/ - -mkdir -p %{buildroot}/%{python3_sitelib}/urllib3/packages/ -cp -a %{SOURCE1} %{buildroot}/%{python3_sitelib}/urllib3/packages/ssl_match_hostname.py 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 \ +ln -sf %{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 \ +ln -sf %{python3_sitelib}/__pycache__/six.cpython-%{python3_version_nodots}.pyc \ %{buildroot}/%{python3_sitelib}/urllib3/packages/__pycache__/ %python_expand %fdupes %{buildroot}%{$python_sitelib}
