Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-python-socks for
openSUSE:Factory checked in at 2024-04-23 18:55:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-python-socks (Old)
and /work/SRC/openSUSE:Factory/.python-python-socks.new.27645 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-socks"
Tue Apr 23 18:55:54 2024 rev:7 rq:1169638 version:2.4.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-python-socks/python-python-socks.changes
2024-01-03 12:28:06.474314409 +0100
+++
/work/SRC/openSUSE:Factory/.python-python-socks.new.27645/python-python-socks.changes
2024-04-23 18:56:16.662904846 +0200
@@ -1,0 +2,7 @@
+Mon Apr 22 06:46:07 UTC 2024 - Matej Cepl <[email protected]>
+
+- Use tarball from GitHub (gh#romis2012/python-socks#30) to make
+ running the test suite possible.
+- Fix dependencies (bsc#1223181).
+
+-------------------------------------------------------------------
New:
----
_multibuild
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-python-socks.spec ++++++
--- /var/tmp/diff_new_pack.CD15bC/_old 2024-04-23 18:56:17.210924583 +0200
+++ /var/tmp/diff_new_pack.CD15bC/_new 2024-04-23 18:56:17.210924583 +0200
@@ -16,20 +16,46 @@
#
+%global flavor @BUILD_FLAVOR@%{nil}
+%if "%{flavor}" == "test"
+%define psuffix -test
+%bcond_without test
+%else
+%define psuffix %{nil}
+%bcond_with test
+%endif
%{?sle15_python_module_pythons}
-Name: python-python-socks
+Name: python-python-socks%{psuffix}
Version: 2.4.4
Release: 0
Summary: Core proxy client functionality for Python
License: Apache-2.0
URL: https://github.com/romis2012/python-socks
-Source:
https://files.pythonhosted.org/packages/source/p/python-socks/python-socks-%{version}.tar.gz
+# gh#romis2012/python-socks#30
+Source:
https://github.com/romis2012/python-socks/archive/refs/tags/v%{version}.tar.gz#/python-socks-%{version}.tar.gz
+BuildRequires: %{python_module anyio}
+BuildRequires: %{python_module async-timeout}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
+# Source:
https://files.pythonhosted.org/packages/source/p/python-socks/python-socks-%%{version}.tar.gz
BuildRequires: %{python_module wheel}
+# SECTION test requirements
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
+%if %{with test}
+BuildRequires: %{python_module Flask}
+BuildRequires: %{python_module async_timeout}
+BuildRequires: %{python_module attrs}
+BuildRequires: %{python_module flake8}
+BuildRequires: %{python_module pytest-asyncio}
+BuildRequires: %{python_module pytest-trio}
+BuildRequires: %{python_module pytest}
+BuildRequires: %{python_module tiny-proxy}
+BuildRequires: %{python_module trio}
+BuildRequires: %{python_module trustme}
+BuildRequires: %{python_module yarl}
+%endif
%python_subpackages
%description
@@ -42,19 +68,27 @@
%autosetup -p1 -n python-socks-%{version}
%build
+%if %{without test}
%pyproject_wheel
+%endif
%install
+%if %{without test}
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
+%endif
%check
+%if %{with test}
# try at least a simple import
-%python_exec -c 'from python_socks import ProxyType'
+%pytest
+%endif
+%if %{without test}
%files %{python_files}
%doc README.md
%license LICENSE.txt
%{python_sitelib}/python_socks
%{python_sitelib}/python_socks-%{version}.dist-info
+%endif
++++++ _multibuild ++++++
<multibuild>
<package>test</package>
</multibuild>
++++++ python-socks-2.4.4.tar.gz ++++++
++++ 3713 lines of diff (skipped)