Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-XStatic for openSUSE:Factory
checked in at 2026-10-08 13:27:31
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-XStatic (Old)
and /work/SRC/openSUSE:Factory/.python-XStatic.new.3698736 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-XStatic"
Thu Oct 8 13:27:31 2026 rev:5 rq:1383151 version:1.0.3
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-XStatic/python-XStatic.changes
2025-05-13 20:08:22.902173216 +0200
+++
/work/SRC/openSUSE:Factory/.python-XStatic.new.3698736/python-XStatic.changes
2026-10-08 13:27:38.393424989 +0200
@@ -1,0 +2,7 @@
+Thu Oct 8 04:43:12 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-pkg-resources.patch:
+ * Do not register pkg_resource-style namespace packages.
+- Sprinkle in fdupes.
+
+-------------------------------------------------------------------
New:
----
no-more-pkg-resources.patch
----------(New B)----------
New:
- Add patch no-more-pkg-resources.patch:
* Do not register pkg_resource-style namespace packages.
----------(New E)----------
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-XStatic.spec ++++++
--- /var/tmp/diff_new_pack.iNIhNB/_old 2026-10-08 13:27:39.117455290 +0200
+++ /var/tmp/diff_new_pack.iNIhNB/_new 2026-10-08 13:27:39.119455373 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-XStatic
#
-# Copyright (c) 2025 SUSE LLC
+# Copyright (c) 2026 SUSE LLC and contributors
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,9 +23,12 @@
License: MIT
URL: https://github.com/xstatic-py/xstatic
Source:
https://files.pythonhosted.org/packages/source/X/XStatic/XStatic-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE Drop pkg_resources usage, can be dropped when 2.0.0 is
released
+Patch0: no-more-pkg-resources.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
+BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%python_subpackages
@@ -35,18 +38,20 @@
static files as a Python package.
%prep
-%setup -q -n XStatic-%{version}
+%autosetup -p1 -n XStatic-%{version}
+# Also needs to be removed due to no-more-pkg-resources.patch
+rm -r xstatic/pkg
%build
%pyproject_wheel
%install
%pyproject_install
+%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc README.txt
%license LICENSE.txt
%{python_sitelib}/[Xx][Ss]tatic
-%{python_sitelib}/[Xx][Ss]tatic-%{version}*-info
-%{python_sitelib}/[Xx][Ss]tatic-%{version}*nspkg.pth
+%{python_sitelib}/[Xx][Ss]tatic-%{version}.dist-info
++++++ no-more-pkg-resources.patch ++++++
Index: XStatic-1.0.3/setup.py
===================================================================
--- XStatic-1.0.3.orig/setup.py
+++ XStatic-1.0.3/setup.py
@@ -7,8 +7,7 @@ XStatic - setup.py
import os
-from setuptools import setup, find_packages
-import pkg_resources
+from setuptools import setup, find_namespace_packages
# The README.txt file should be written in reST so that PyPI can use
# it to generate your project's PyPI page.
@@ -39,8 +38,7 @@ setup(
author_email='[email protected]',
url='https://github.com/xstatic-py/xstatic',
license='MIT license',
- packages=find_packages(),
- namespace_packages=['xstatic', 'xstatic.pkg', ],
+ packages=find_namespace_packages(exclude=['docs*']),
include_package_data=True,
zip_safe=False,
install_requires=[], # there should never be a dependency!
Index: XStatic-1.0.3/xstatic/__init__.py
===================================================================
--- XStatic-1.0.3.orig/xstatic/__init__.py
+++ XStatic-1.0.3/xstatic/__init__.py
@@ -1,4 +1,2 @@
# Copyright: 2011-2018 by the XStatic authors, see AUTHORS.txt for details.
# License: MIT license, see LICENSE.txt for details.
-
-__import__('pkg_resources').declare_namespace(__name__)