- Update to 1.8.0:

* Drop support for Python 2 and <3.6, removing compatibility code.
  * Use stdlib unittest.mock instead of mock package.
  * Removed usage of path.py and path in favour of pathlib.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-listener?expand=0&rev=9
This commit is contained in:
2024-10-22 06:10:20 +00:00
committed by Git OBS Bridge
parent 0a2905bfb5
commit 7b8013aa37
5 changed files with 37 additions and 15 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:e5582c34bcbd19143a2df75a9dda5da44a08c48c528276c0a8049a33afbc3baa
size 10509

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:37c9014d7d5df596bbaf1ee1e53b9480e999a420a15fa24dc3b0b52bd6a2b297
size 9017

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Tue Oct 22 06:08:51 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Update to 1.8.0:
* Drop support for Python 2 and <3.6, removing compatibility code.
* Use stdlib unittest.mock instead of mock package.
* Removed usage of path.py and path in favour of pathlib.
-------------------------------------------------------------------
Thu Dec 8 11:30:00 UTC 2022 - pgajdos@suse.com

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-listener
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,21 +16,24 @@
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-pytest-listener
Version: 1.7.0
Version: 1.8.0
Release: 0
Summary: A simple network listener for py.test
Summary: A simple network listener for pytest
License: MIT
Group: Development/Languages/Python
URL: https://github.com/manahl/pytest-plugins
URL: https://github.com/man-group/pytest-plugins
Source: https://files.pythonhosted.org/packages/source/p/pytest-listener/pytest-listener-%{version}.tar.gz
# https://github.com/man-group/pytest-plugins/issues/209
Patch0: python-pytest-listener-no-six.patch
# PATCH-FIX-UPSTREAM gh#man-group/pytest-plugins#248
Patch1: specify-modules-correctly.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools-git}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-pytest
Requires: python-pytest-server-fixtures
BuildArch: noarch
# SECTION test requirements
@@ -43,14 +46,12 @@ Simple JSON listener using TCP that listens for data and stores it in a queue fo
%prep
%autosetup -p1 -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
%pyproject_wheel
%install
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -59,8 +60,8 @@ sed -i "/packages=find_packages/ a \ py_modules=['pytest_listener']," set
%files %{python_files}
%doc CHANGES.md README.md
%license LICENSE
%{python_sitelib}/pytest_listener.py*
%{python_sitelib}/pytest_listener-%{version}*-info
%{python_sitelib}/pytest_listener.py
%pycache_only %{python_sitelib}/__pycache__/pytest_listener*.pyc
%{python_sitelib}/pytest_listener-%{version}.dist-info
%changelog

View File

@@ -0,0 +1,13 @@
Index: pytest-listener-1.8.0/setup.py
===================================================================
--- pytest-listener-1.8.0.orig/setup.py
+++ pytest-listener-1.8.0/setup.py
@@ -41,7 +41,7 @@ if __name__ == '__main__':
classifiers=classifiers,
install_requires=install_requires,
tests_require=tests_require,
- packages=find_packages(exclude='tests'),
+ py_modules=['pytest_listener'],
entry_points=entry_points,
))
setup(**kwargs)