From a2ec5bb16f1fa4e178140282d2f4519557b15913068162d2209f57c59d51ced9 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sun, 16 May 2021 20:46:51 +0000 Subject: [PATCH] Accepting request 893293 from home:bnavigator:branches:devel:languages:python:pytest - Fix a prolem with our version of setuptools not finding the single module. OBS-URL: https://build.opensuse.org/request/show/893293 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-listener?expand=0&rev=5 --- python-pytest-listener.changes | 6 ++++++ python-pytest-listener.spec | 10 +++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/python-pytest-listener.changes b/python-pytest-listener.changes index e908d88..d2b8754 100644 --- a/python-pytest-listener.changes +++ b/python-pytest-listener.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat May 15 10:08:31 UTC 2021 - Ben Greiner + +- Fix a prolem with our version of setuptools not finding the + single module. + ------------------------------------------------------------------- Sat Dec 28 17:17:37 UTC 2019 - Ondřej Súkup diff --git a/python-pytest-listener.spec b/python-pytest-listener.spec index 8e65148..84a555f 100644 --- a/python-pytest-listener.spec +++ b/python-pytest-listener.spec @@ -1,7 +1,7 @@ # # spec file for package python-pytest-listener # -# Copyright (c) 2019 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -39,10 +39,12 @@ BuildRequires: %{python_module six} %python_subpackages %description -A simple network listener for py.test. +Simple JSON listener using TCP that listens for data and stores it in a queue for later retrieval. %prep %setup -q -n pytest-listener-%{version} +# required to find the one file in the topdir +sed -i "/packages=find_packages/ a \ py_modules=['pytest_listener']," setup.py %build %python_build @@ -57,6 +59,8 @@ A simple network listener for py.test. %files %{python_files} %doc CHANGES.md README.md %license LICENSE -%{python_sitelib}/* +%{python_sitelib}/pytest_listener.py* +%{python_sitelib}/pytest_listener-%{version}*-info +%pycache_only %{python_sitelib}/__pycache__/pytest_listener*.pyc %changelog