Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-phabricator for 
openSUSE:Factory checked in at 2026-10-03 20:13:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-phabricator (Old)
 and      /work/SRC/openSUSE:Factory/.python-phabricator.new.1631729 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-phabricator"

Sat Oct  3 20:13:30 2026 rev:5 rq:1381982 version:0.9.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-phabricator/python-phabricator.changes    
2025-06-03 17:56:19.952554873 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-phabricator.new.1631729/python-phabricator.changes
       2026-10-03 20:14:30.550053322 +0200
@@ -1,0 +2,6 @@
+Fri Oct  2 02:04:32 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-pkg-resources.patch:
+  * Use importlib.metadata and importlib.resources for discovery.
+
+-------------------------------------------------------------------

New:
----
  no-more-pkg-resources.patch

----------(New B)----------
  New:
- Add patch no-more-pkg-resources.patch:
  * Use importlib.metadata and importlib.resources for discovery.
----------(New E)----------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-phabricator.spec ++++++
--- /var/tmp/diff_new_pack.l33uqf/_old  2026-10-03 20:14:31.181079743 +0200
+++ /var/tmp/diff_new_pack.l33uqf/_new  2026-10-03 20:14:31.183079827 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-phabricator
 #
-# 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
@@ -21,9 +21,10 @@
 Release:        0
 Summary:        Phabricator API Bindings
 License:        Apache-2.0
-Group:          Development/Languages/Python
 URL:            https://github.com/disqus/python-phabricator
 Source:         
https://github.com/disqus/python-phabricator/archive/refs/tags/%{version}.tar.gz#/phabricator-%{version}.tar.gz
+# PATCH-FIX-OPENSUSE Use importlib.{metadata,resources}
+Patch0:         no-more-pkg-resources.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  %{python_module wheel}
@@ -41,7 +42,7 @@
 Phabricator API Bindings
 
 %prep
-%setup -q -n python-phabricator-%{version}
+%autosetup -p1 -n python-phabricator-%{version}
 
 %build
 %pyproject_wheel
@@ -57,5 +58,5 @@
 %doc README.rst
 %license LICENSE
 %{python_sitelib}/phabricator
-%{python_sitelib}/phabricator-%{version}*-info
+%{python_sitelib}/phabricator-%{version}.dist-info
 

++++++ no-more-pkg-resources.patch ++++++
Index: python-phabricator-0.9.1/phabricator/__init__.py
===================================================================
--- python-phabricator-0.9.1.orig/phabricator/__init__.py
+++ python-phabricator-0.9.1/phabricator/__init__.py
@@ -9,8 +9,8 @@ For more endpoints, see https://secure.p
 
 """
 try:
-    __version__ = __import__('pkg_resources') \
-        .get_distribution('phabricator').version
+    import importlib.metadata
+    __version__ = importlib.metadata.version('phabricator')
 except:
     __version__ = 'unknown'
 
Index: python-phabricator-0.9.1/phabricator/tests/test_phabricator.py
===================================================================
--- python-phabricator-0.9.1.orig/phabricator/tests/test_phabricator.py
+++ python-phabricator-0.9.1/phabricator/tests/test_phabricator.py
@@ -6,23 +6,19 @@ except ImportError:
 import requests
 import responses
 
-from pkg_resources import resource_string
+from importlib.resources import files
 import json
 
 import phabricator
 phabricator.ARCRC = {}  # overwrite any arcrc that might be read
 
+resources_dir = files('phabricator.tests.resources')
 
 RESPONSES = json.loads(
-    resource_string(
-        'phabricator.tests.resources',
-        'responses.json'
-    ).decode('utf8')
+    resources_dir.joinpath('responses.json').read_text(encoding='utf-8')
 )
-CERTIFICATE = resource_string(
-    'phabricator.tests.resources',
-    'certificate.txt'
-).decode('utf8').strip()
+CERTIFICATE = resources_dir.joinpath('certificate.txt'
+).read_text(encoding='utf-8').strip()
 
 
 # Protect against local user's .arcrc interference.

Reply via email to