From f55e5514f8f530d55c44363b91f26d1bbf318c92 Mon Sep 17 00:00:00 2001
From: mcalabkova <>
Date: Jun 04 2025 18:58:22 +0000
Subject: Update python-phply to version 1.2.6 / rev 6 via SR 1282263
https://build.opensuse.org/request/show/1282263
by user mcalabkova + dimstar_suse
- Convert to pip-based build
---
diff --git a/.files b/.files
index 42c9329..1e8ae65 100644
Binary files a/.files and b/.files differ
diff --git a/.rev b/.rev
index e877238..616d7d4 100644
--- a/.rev
+++ b/.rev
@@ -43,4 +43,13 @@
- drop remove-nose.patch (upstream)
1073577
+
+ f629481667c110e61e62837a32574f64
+ 1.2.6
+
+ dimstar_suse
+ - Convert to pip-based build
+
+ 1282263
+
diff --git a/python-phply.changes b/python-phply.changes
index 9c39f04..1e724c1 100644
--- a/python-phply.changes
+++ b/python-phply.changes
@@ -1,4 +1,9 @@
-------------------------------------------------------------------
+Tue Jun 3 11:12:29 UTC 2025 - Markéta Machová
+
+- Convert to pip-based build
+
+-------------------------------------------------------------------
Tue Mar 21 15:24:57 UTC 2023 - Dirk Müller
- update to 1.2.6:
diff --git a/python-phply.spec b/python-phply.spec
index f2ae90d..9d93209 100644
--- a/python-phply.spec
+++ b/python-phply.spec
@@ -1,7 +1,7 @@
#
# spec file for package python-phply
#
-# Copyright (c) 2023 SUSE LLC
+# Copyright (c) 2025 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,7 +16,6 @@
#
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-phply
Version: 1.2.6
Release: 0
@@ -25,14 +24,16 @@ 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
+BuildRequires: %{python_module pip}
BuildRequires: %{python_module ply}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-ply
-Requires(post): update-alternatives
-Requires(postun):update-alternatives
+Requires(post): alts
+Requires(postun): alts
BuildArch: noarch
%python_subpackages
@@ -43,10 +44,10 @@ phply is a parser for the PHP programming language written using PLY, a Lex/YACC
%autosetup -p1 -n phply-%{version}
%build
-%python_build
+%pyproject_wheel
%install
-%python_install
+%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/phpparse
%python_clone -a %{buildroot}%{_bindir}/phplex
%python_expand %fdupes %{buildroot}%{$python_sitelib}
@@ -68,6 +69,8 @@ phply is a parser for the PHP programming language written using PLY, a Lex/YACC
%doc README.md
%python_alternative %{_bindir}/phplex
%python_alternative %{_bindir}/phpparse
-%{python_sitelib}/*
+%{python_sitelib}/phply
+%{python_sitelib}/phply-%{version}*-info
+%{python_sitelib}/phply-%{version}*nspkg.pth
%changelog