Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pydyf for openSUSE:Factory 
checked in at 2022-08-17 18:17:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pydyf (Old)
 and      /work/SRC/openSUSE:Factory/.python-pydyf.new.1521 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pydyf"

Wed Aug 17 18:17:10 2022 rev:4 rq:997530 version:0.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pydyf/python-pydyf.changes        
2022-08-16 17:58:12.930924582 +0200
+++ /work/SRC/openSUSE:Factory/.python-pydyf.new.1521/python-pydyf.changes      
2022-08-17 18:25:35.123499967 +0200
@@ -1,0 +2,6 @@
+Tue Aug 16 20:25:37 UTC 2022 - Ben Greiner <[email protected]>
+
+- Implement python packaging best practices for build requirements,
+  testing and files section
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pydyf.spec ++++++
--- /var/tmp/diff_new_pack.Aw45Hk/_old  2022-08-17 18:25:35.583501103 +0200
+++ /var/tmp/diff_new_pack.Aw45Hk/_new  2022-08-17 18:25:35.587501113 +0200
@@ -17,9 +17,6 @@
 #
 
 
-%{?!python_module:%define python_module() python-%{**} python3-%{**}}
-%define         skip_python2 1
-
 Name:           python-pydyf
 Version:        0.2.0
 Release:        0
@@ -27,19 +24,18 @@
 License:        BSD-3-Clause
 URL:            https://www.courtbouillon.org/pydyf
 Source:         
https://files.pythonhosted.org/packages/source/p/pydyf/pydyf-%{version}.tar.gz
-BuildRequires:  %{python_module flit}
+BuildRequires:  %{python_module base >= 3.7}
+BuildRequires:  %{python_module flit-core}
 BuildRequires:  %{python_module pip}
-BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
-
 BuildArch:      noarch
-## Testing
+# SECTION Testing
 BuildRequires:  %{python_module Pillow}
-BuildRequires:  %{python_module pytest-isort}
+BuildRequires:  %{python_module pytest-xdist}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  gs
-
+# /SECTION
 %python_subpackages
 
 %description
@@ -47,6 +43,8 @@
 
 %prep
 %setup -q -n pydyf-%{version}
+sed -i 's:--isort --flake8::' pyproject.toml
+chmod -x pydyf/__init__.py
 
 %build
 %pyproject_wheel
@@ -56,12 +54,12 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-sed -i 's:--flake8 --numprocesses=auto::' pyproject.toml
-%pytest tests/test_pydyf.py
+%pytest
 
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%{python_sitelib}/*
+%{python_sitelib}/pydyf
+%{python_sitelib}/pydyf-%{version}*-info
 
 %changelog

Reply via email to