Notification time stamped 2023-07-01 06:35:46 UTC
From a6fcf602081576f0a3665b2a2e7b11d87c27ddb5 Mon Sep 17 00:00:00 2001
From: Roman Inflianskas <rominf(a)aiven.io>
Date: Jul 01 2023 06:24:37 +0000
Subject: Update to 0.7.1 (resolve rhbz#2162933)
---
diff --git a/.gitignore b/.gitignore
index a82a900..f657869 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/pytest-localserver-0.5.1.post0.tar.gz
/pytest-localserver-0.6.0.tar.gz
/pytest-localserver-0.7.0.tar.gz
+/pytest-localserver-0.7.1.tar.gz
diff --git a/0002-pytest-localserver-0.6.0-replace-aiosmtpd.Controller._stop.patch
b/0002-pytest-localserver-0.6.0-replace-aiosmtpd.Controller._stop.patch
deleted file mode 100644
index a999780..0000000
--- a/0002-pytest-localserver-0.6.0-replace-aiosmtpd.Controller._stop.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-From 27f3586438835aa002ba9bb2dac6aba5fe225f17 Mon Sep 17 00:00:00 2001
-From: Roman Inflianskas <rominf(a)aiven.io>
-Date: Mon, 27 Jun 2022 11:27:08 +0300
-Subject: [PATCH] pytest-localserver-0.6.0. rename aiosmtpd.Controller._stop
-
----
- pytest_localserver/smtp.py | 2 +-
- 1 file changed, 1 insertion(+), 1 deletion(-)
-
-diff --git a/pytest_localserver/smtp.py b/pytest_localserver/smtp.py
-index 3beb9f5..7e026c4 100644
---- a/pytest_localserver/smtp.py
-+++ b/pytest_localserver/smtp.py
-@@ -131,7 +131,7 @@ class Server(aiosmtpd.controller.Controller):
- # be called more than once safely
- # - It passes the timeout argument to Thread.join()
- if self.loop.is_running():
-- self.loop.call_soon_threadsafe(self._stop)
-+ self.loop.call_soon_threadsafe(self.cancel_tasks)
- if self._thread is not None:
- self._thread.join(timeout)
- self._thread = None
---
-2.36.1
-
diff --git a/python-pytest-localserver.spec b/python-pytest-localserver.spec
index 4260f90..c5410c9 100644
--- a/python-pytest-localserver.spec
+++ b/python-pytest-localserver.spec
@@ -1,19 +1,15 @@
Name: python-pytest-localserver
-Version: 0.7.0
-Release: 3%{?dist}
-Summary: py.test plugin to test server connections locally
+Version: 0.7.1
+Release: 1%{?dist}
+Summary: pytest plugin to test server connections locally
License: MIT
URL:
https://github.com/pytest-dev/pytest-localserver
# The package uses setuptools_scm, GitHub tarball will not work
Source0: %{pypi_source pytest-localserver}
-# aiosmtpd.Controller._stop is replaced with aiosmtpd.Controller.cancel_tasks in
-# Fedora python-aiosmtpd::0001-Implement-Unthreaded-Controller-256.patch
-Patch1: 0002-pytest-localserver-0.6.0-replace-aiosmtpd.Controller._stop.patch
BuildArch: noarch
BuildRequires: python3-devel
-BuildRequires: python3-werkzeug
%global _description %{expand:
pytest-localserver is a plugin for the pytest testing framework which enables
@@ -26,6 +22,8 @@ Summary: %{summary}
%description -n python3-pytest-localserver %_description
+%pyproject_extras_subpkg -n python3-pytest-localserver smtp
+
%prep
%autosetup -p1 -n pytest-localserver-%{version}
@@ -53,6 +51,10 @@ Summary: %{summary}
%license LICENSE
%changelog
+* Sat Jul 01 2023 Roman Inflianskas <rominf(a)aiven.io> - 0.7.1-1
+- Update to 0.7.1 (resolve rhbz#2162933)
+- Add smtp extra
+
* Fri Jun 16 2023 Python Maint <python-maint(a)redhat.com> - 0.7.0-3
- Rebuilt for Python 3.12
diff --git a/sources b/sources
index 8870544..b9b3f3d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (pytest-localserver-0.7.0.tar.gz) =
1fb1acaeb190d35ebd05cdd63ce15e4a9138802901cef8c25c1fa6dd177d8af2b6b2749f5a052942bf655ffd2ff6105de8a652d73faab369ce6dcf3219bb2394
+SHA512 (pytest-localserver-0.7.1.tar.gz) =
fd32ea020152a17fb1dcfe3f5cccd5c2a26eed18b711f51c5c7cb8534862706e6738651c275e88f3cbad54ecdb59e4b5588e67eed0ff3bbf20c3636e97990ed6
https://src.fedoraproject.org/rpms/python-pytest-localserver/c/a6fcf60208...