diff --git a/pytest-listener-1.7.0.tar.gz b/pytest-listener-1.7.0.tar.gz deleted file mode 100644 index e558bd8..0000000 --- a/pytest-listener-1.7.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e5582c34bcbd19143a2df75a9dda5da44a08c48c528276c0a8049a33afbc3baa -size 10509 diff --git a/pytest-listener-1.8.0.tar.gz b/pytest-listener-1.8.0.tar.gz new file mode 100644 index 0000000..dc471e5 --- /dev/null +++ b/pytest-listener-1.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:37c9014d7d5df596bbaf1ee1e53b9480e999a420a15fa24dc3b0b52bd6a2b297 +size 9017 diff --git a/python-pytest-listener.changes b/python-pytest-listener.changes index feaceac..539ddab 100644 --- a/python-pytest-listener.changes +++ b/python-pytest-listener.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Tue Oct 22 06:08:51 UTC 2024 - Steve Kowalik + +- 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 diff --git a/python-pytest-listener.spec b/python-pytest-listener.spec index b2d1d92..5207d3f 100644 --- a/python-pytest-listener.spec +++ b/python-pytest-listener.spec @@ -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 diff --git a/specify-modules-correctly.patch b/specify-modules-correctly.patch new file mode 100644 index 0000000..d38efcb --- /dev/null +++ b/specify-modules-correctly.patch @@ -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)