Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-phply for openSUSE:Factory 
checked in at 2026-10-06 19:13:07
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-phply (Old)
 and      /work/SRC/openSUSE:Factory/.python-phply.new.3698736 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-phply"

Tue Oct  6 19:13:07 2026 rev:8 rq:1381983 version:1.2.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-phply/python-phply.changes        
2025-06-11 16:20:37.837717370 +0200
+++ /work/SRC/openSUSE:Factory/.python-phply.new.3698736/python-phply.changes   
2026-10-06 19:13:08.784269903 +0200
@@ -1,0 +2,6 @@
+Fri Oct  2 02:27:21 UTC 2026 - Steve Kowalik <[email protected]>
+
+- Add patch no-more-pkg-resources.patch:
+  * Do not use pkg_resources in setup.py.
+
+-------------------------------------------------------------------

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

----------(New B)----------
  New:
- Add patch no-more-pkg-resources.patch:
  * Do not use pkg_resources in setup.py.
----------(New E)----------

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

Other differences:
------------------
++++++ python-phply.spec ++++++
--- /var/tmp/diff_new_pack.UUrLZa/_old  2026-10-06 19:13:09.471298646 +0200
+++ /var/tmp/diff_new_pack.UUrLZa/_new  2026-10-06 19:13:09.473298730 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-phply
 #
-# 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
@@ -22,9 +22,10 @@
 Release:        0
 Summary:        Lexer and parser for PHP source implemented using PLY
 License:        BSD-3-Clause
-Group:          Development/Languages/Python
 URL:            https://github.com/viraptor/phply
 Source:         
https://files.pythonhosted.org/packages/source/p/phply/phply-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM gh#viraptor/phply#59
+Patch0:         no-more-pkg-resources.patch
 BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module ply}
 BuildRequires:  %{python_module pytest}
@@ -67,6 +68,5 @@
 %python_alternative %{_bindir}/phplex
 %python_alternative %{_bindir}/phpparse
 %{python_sitelib}/phply
-%{python_sitelib}/phply-%{version}*-info
-%{python_sitelib}/phply-%{version}*nspkg.pth
+%{python_sitelib}/phply-%{version}.dist-info
 

++++++ no-more-pkg-resources.patch ++++++
>From c68c05f6b1fd5d2d479c8321633daf7e9663b1a2 Mon Sep 17 00:00:00 2001
From: Arthur Taylor <[email protected]>
Date: Mon, 20 Feb 2023 18:02:20 +0100
Subject: [PATCH] Fix deprecation of declare_namespace (per PEP 420)

---
 phply/__init__.py | 1 -
 setup.py          | 5 ++---
 2 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/phply/__init__.py b/phply/__init__.py
index de40ea7..e69de29 100644
--- a/phply/__init__.py
+++ b/phply/__init__.py
@@ -1 +0,0 @@
-__import__('pkg_resources').declare_namespace(__name__)
diff --git a/setup.py b/setup.py
index 61a552a..9beed96 100644
--- a/setup.py
+++ b/setup.py
@@ -1,7 +1,7 @@
 # coding: utf-8
 from __future__ import unicode_literals
 
-from setuptools import setup, find_packages, Command
+from setuptools import setup, Command
 from distutils.command.build import build as distutils_build
 
 distutils_build.sub_commands.insert(0, ('gen_parsetab', lambda _: True))
@@ -22,8 +22,7 @@ def run(self):
 
 setup(name="phply",
       version="1.2.6",
-      packages=find_packages(),
-      namespace_packages=['phply'],
+      packages=['phply'],
       include_package_data=True,
       author='Ramen',
       author_email='',

Reply via email to