Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-ua-parser for
openSUSE:Factory checked in at 2026-02-03 21:33:23
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-ua-parser (Old)
and /work/SRC/openSUSE:Factory/.python-ua-parser.new.1995 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-ua-parser"
Tue Feb 3 21:33:23 2026 rev:8 rq:1330654 version:1.0.1
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-ua-parser/python-ua-parser.changes
2026-01-30 18:33:43.954355534 +0100
+++
/work/SRC/openSUSE:Factory/.python-ua-parser.new.1995/python-ua-parser.changes
2026-02-03 21:34:26.696039753 +0100
@@ -1,0 +2,7 @@
+Tue Feb 3 01:25:21 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Grab the source tarball for uap-core, so we can build and install
+ ua-parser-builtins.
+- Run the testsuite.
+
+-------------------------------------------------------------------
New:
----
uap-core.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-ua-parser.spec ++++++
--- /var/tmp/diff_new_pack.WG2wwA/_old 2026-02-03 21:34:27.920091122 +0100
+++ /var/tmp/diff_new_pack.WG2wwA/_new 2026-02-03 21:34:27.920091122 +0100
@@ -23,10 +23,15 @@
Summary: Python Implementation of UA Parser
License: Apache-2.0
URL: https://github.com/ua-parser/uap-python
-Source:
https://files.pythonhosted.org/packages/source/u/ua-parser/ua_parser-%{version}.tar.gz
+Source0:
https://files.pythonhosted.org/packages/source/u/ua-parser/ua_parser-%{version}.tar.gz
+# Current submodule commit for uap-core, required to build ua-parser-builtins
+Source1:
https://github.com/ua-parser/uap-core/archive/d668d6c6157db7737edfc0280adc6610c1b88029.tar.gz#/uap-core.tar.gz
BuildRequires: %{python_module PyYAML}
+BuildRequires: %{python_module hatchling}
BuildRequires: %{python_module pip}
+BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module versioningit}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
@@ -39,19 +44,33 @@
%prep
%autosetup -n ua_parser-%{version}
+mkdir uap-core
+tar zx --strip-components=1 -C uap-core -f %{SOURCE1}
+echo "Version: %{version}" > uap-core/PKG-INFO
+pushd ua-parser-builtins
+ln -s ../uap-core .
+popd
%build
%pyproject_wheel
+# Also build the builtins
+pushd ua-parser-builtins
+%pyproject_wheel
+popd
%install
%pyproject_install
+pushd ua-parser-builtins
+%pyproject_install
+popd
%python_expand %fdupes %{buildroot}/%{$python_sitelib}
%check
-# Tests lack fixtures in the released tarball
-#%%python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}" $python
ua_parser/user_agent_parser_test.py
+%pytest
%files %{python_files}
%{python_sitelib}/ua_parser
+%{python_sitelib}/ua_parser_builtins
%{python_sitelib}/ua_parser-%{version}.dist-info
+%{python_sitelib}/ua_parser_builtins-%{version}.dist-info