Hello community,

here is the log from the commit of package python-setproctitle for 
openSUSE:Factory checked in at 2020-08-25 12:36:47
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-setproctitle (Old)
 and      /work/SRC/openSUSE:Factory/.python-setproctitle.new.3399 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-setproctitle"

Tue Aug 25 12:36:47 2020 rev:25 rq:826981 version:1.1.10

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-setproctitle/python-setproctitle.changes  
2020-03-10 13:26:01.882388134 +0100
+++ 
/work/SRC/openSUSE:Factory/.python-setproctitle.new.3399/python-setproctitle.changes
        2020-08-25 12:36:54.737381059 +0200
@@ -1,0 +2,6 @@
+Sun Aug 16 07:30:43 UTC 2020 - John Vandenberg <[email protected]>
+
+- Revert to working test suite, re-adding use-pkg-config.patch,
+  and replace nose with pytest
+
+-------------------------------------------------------------------

New:
----
  use-pkg-config.patch

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

Other differences:
------------------
++++++ python-setproctitle.spec ++++++
--- /var/tmp/diff_new_pack.aTZ2sE/_old  2020-08-25 12:36:56.181381770 +0200
+++ /var/tmp/diff_new_pack.aTZ2sE/_new  2020-08-25 12:36:56.185381772 +0200
@@ -24,9 +24,13 @@
 License:        BSD-3-Clause
 URL:            https://github.com/dvarrazzo/py-setproctitle/
 Source:         
https://files.pythonhosted.org/packages/source/s/setproctitle/setproctitle-%{version}.tar.gz
+# PATCH-FIX-UPSTREAM Test build/harness helper; heavily revised in next 
release [email protected]
+Patch0:         use-pkg-config.patch
 BuildRequires:  %{python_module devel}
-BuildRequires:  %{python_module nose}
+BuildRequires:  %{python_module modernize}
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  pkg-config
 BuildRequires:  procps
 BuildRequires:  python-rpm-macros
 BuildRequires:  python3-tools
@@ -40,6 +44,8 @@
 
 %prep
 %setup -q -n setproctitle-%{version}
+%autopatch -p1
+python-modernize -nw tests
 
 %build
 export CFLAGS="%{optflags}"
@@ -50,11 +56,11 @@
 
 %check
 export LANG=en_US.UTF-8
-# The tests actually fail under python3 and upstream does load of magic to get
-# them operational, lets wait a bit for them to sort it out
-#%%{python_expand export PYTHONPATH=$(pwd):%{buildroot}%{$python_sitearch}
-#%%make_build PYTHON=$python check
-#}
+%{python_expand export PYTHON=$python
+PYTHON_MAJOR=${PYTHON:6:1}
+make tests/pyrun${PYTHON_MAJOR}
+PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m pytest -v
+}
 
 %files %{python_files}
 %doc HISTORY.rst README.rst

++++++ use-pkg-config.patch ++++++
@@ -1,21 +0,0 @@
--- a/Makefile.orig        2019-09-15 17:13:27.656631109 +0700
+++ b/Makefile        2019-09-15 17:16:00.458264928 +0700
@@ -7,15 +7,15 @@
 
 # Customize these to select the Python to build/test
 PYTHON ?= python
-PYCONFIG ?= python-config
+PYCONFIG ?= pkg-config
 PY2TO3 ?= 2to3
 
 # PYVER value is 2 or 3
 PYVER := $(shell $(PYTHON) -c "import sys; print(sys.version_info[0])")
 ROOT_PATH := $(shell pwd)
 
-PYINC := $(shell $(PYCONFIG) --includes)
-PYLIB := $(shell $(PYCONFIG) --ldflags) -L$(shell $(PYCONFIG) --prefix)/lib
+PYINC := $(shell $(PYCONFIG) python$(PYVER)-embed --cflags) $(shell 
$(PYCONFIG) python$(PYVER) --cflags)
+PYLIB := $(shell $(PYCONFIG) python$(PYVER)-embed --libs) $(shell $(PYCONFIG) 
python$(PYVER) --libs)
 
 BUILD_DIR = build/lib.$(PYVER)
 

Reply via email to