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
This commit is contained in:
2021-05-16 20:46:51 +00:00
committed by Git OBS Bridge
parent ddd7634a31
commit a2ec5bb16f
2 changed files with 13 additions and 3 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat May 15 10:08:31 UTC 2021 - Ben Greiner <code@bnavigator.de>
- 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 <mimi.vx@gmail.com>

View File

@@ -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