Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pytest-server-fixtures for
openSUSE:Factory checked in at 2023-08-30 10:22:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-server-fixtures (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-server-fixtures.new.1766
(New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-server-fixtures"
Wed Aug 30 10:22:16 2023 rev:9 rq:1108019 version:1.7.0
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-server-fixtures/python-pytest-server-fixtures.changes
2022-12-10 21:18:18.349724006 +0100
+++
/work/SRC/openSUSE:Factory/.python-pytest-server-fixtures.new.1766/python-pytest-server-fixtures.changes
2023-08-30 10:24:38.873066959 +0200
@@ -1,0 +2,8 @@
+Wed Aug 30 05:26:54 UTC 2023 - Steve Kowalik <[email protected]>
+
+- Add patch remove-six-and-future.patch:
+ * Remove use of six and future.
+- Remove patch python-pytest-server-fixtures-no-six.patch, covered by above.
+- Switch to pyproject macros.
+
+-------------------------------------------------------------------
Old:
----
python-pytest-server-fixtures-no-six.patch
New:
----
remove-six-and-future.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-server-fixtures.spec ++++++
--- /var/tmp/diff_new_pack.sqYZ2G/_old 2023-08-30 10:24:40.185113792 +0200
+++ /var/tmp/diff_new_pack.sqYZ2G/_new 2023-08-30 10:24:40.185113792 +0200
@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-server-fixtures
#
-# Copyright (c) 2022 SUSE LLC
+# Copyright (c) 2023 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,30 +16,29 @@
#
-%bcond_without python2
Name: python-pytest-server-fixtures
Version: 1.7.0
Release: 0
Summary: Extensible server fixtures for pytest
License: MIT
-Group: Development/Languages/Python
URL: https://github.com/man-group/pytest-plugins
Source:
https://files.pythonhosted.org/packages/source/p/pytest-server-fixtures/pytest-server-fixtures-%{version}.tar.gz
# PATCH-FIX-UPSTREAM pytest-plugins-pr186-fix-psycopg29.patch --
gh#man-group/pytest-plugins#186
Patch0: pytest-plugins-pr186-fix-psycopg29.patch
-# PATCH-FEATURE-UPSTREAM remove-mock.patch -- gh#man-group#pytest-plugins#171
+# PATCH-FIX-UPSTREAM remove-mock.patch -- gh#man-group#pytest-plugins#171
Patch1: remove-mock.patch
-# https://github.com/man-group/pytest-plugins/issues/209
-Patch2: python-pytest-server-fixtures-no-six.patch
+# PATCH-FIX-UPSTREAM gh#github.com/man-group/pytest-plugins#221
+Patch2: remove-six-and-future.patch
+BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools-git}
BuildRequires: %{python_module setuptools}
+BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: redis
# net-tools-deprecated's netstat and lsof needed internally
Requires: lsof
Requires: net-tools-deprecated
-Requires: python-future
Requires: python-psutil
Requires: python-pytest
Requires: python-pytest-fixture-config
@@ -64,7 +63,6 @@
# SECTION test requirements
BuildRequires: %{python_module boto3}
BuildRequires: %{python_module docker}
-BuildRequires: %{python_module future}
BuildRequires: %{python_module kubernetes}
BuildRequires: %{python_module psutil}
BuildRequires: %{python_module psycopg2}
@@ -77,9 +75,6 @@
BuildRequires: %{python_module requests}
BuildRequires: %{python_module rethinkdb}
BuildRequires: %{python_module retry}
-%if %{with python2}
-BuildRequires: python2-mock
-%endif
BuildRequires: apache2
BuildRequires: lsof
BuildRequires: net-tools-deprecated
@@ -108,10 +103,10 @@
sed -i '/mod_mpm_prefork.so/d' pytest_server_fixtures/httpd.py
%build
-%python_build
+%pyproject_wheel
%install
-%python_install
+%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -126,6 +121,6 @@
%doc CHANGES.md README.md
%license LICENSE
%{python_sitelib}/pytest_server_fixtures
-%{python_sitelib}/pytest_server_fixtures-%{version}*-info
+%{python_sitelib}/pytest_server_fixtures-%{version}.dist-info
%changelog
++++++ remove-six-and-future.patch ++++++
>From da6e8ccb688b3755285ba42a3d5518f1f3a5f6ff Mon Sep 17 00:00:00 2001
From: Steve Kowalik <[email protected]>
Date: Wed, 30 Aug 2023 14:08:03 +1000
Subject: [PATCH] pytest-server-fixtures: Remove six and future
Now that we only support Python 3.6 and above, we can stop using
crutches like six and future.
---
pytest-server-fixtures/pytest_server_fixtures/base.py | 6 ++----
pytest-server-fixtures/pytest_server_fixtures/http.py | 8 +++-----
pytest-server-fixtures/pytest_server_fixtures/jenkins.py | 3 +--
pytest-server-fixtures/pytest_server_fixtures/postgres.py | 5 ++---
pytest-server-fixtures/pytest_server_fixtures/s3.py | 5 ++---
pytest-server-fixtures/setup.py | 2 --
6 files changed, 10 insertions(+), 19 deletions(-)
Index: pytest-server-fixtures-1.7.0/pytest_server_fixtures/base.py
===================================================================
--- pytest-server-fixtures-1.7.0.orig/pytest_server_fixtures/base.py
+++ pytest-server-fixtures-1.7.0/pytest_server_fixtures/base.py
@@ -14,8 +14,6 @@ import logging
import random
import errno
-from six import string_types
-
from pytest_server_fixtures import CONFIG
from pytest_shutil.workspace import Workspace
@@ -103,13 +101,13 @@ class ProcessReader(threading.Thread):
self.stderr = stderr
self.process = process
self.stream = stream
- super(ProcessReader, self).__init__()
+ super().__init__()
self.setDaemon(True)
def run(self):
while self.process.poll() is None:
l = self.stream.readline()
- if not isinstance(l, string_types):
+ if not isinstance(l, six):
l = l.decode('utf-8')
if l.strip():
Index: pytest-server-fixtures-1.7.0/pytest_server_fixtures/http.py
===================================================================
--- pytest-server-fixtures-1.7.0.orig/pytest_server_fixtures/http.py
+++ pytest-server-fixtures-1.7.0/pytest_server_fixtures/http.py
@@ -1,5 +1,4 @@
-from __future__ import print_function
-
+import http.client
import os
import socket
import logging
@@ -9,7 +8,6 @@ import sys
import pytest
import requests
from contextlib import contextmanager
-from six.moves import http_client
from pytest_shutil.env import unset_env
from pytest_server_fixtures import CONFIG
@@ -83,7 +81,7 @@ class HTTPTestServer(TestServer):
with self.handle_proxy():
returned = requests.get('http://%s:%d/%s' %
(self.hostname, self.port, path))
return returned.json() if as_json else returned
- except (http_client.BadStatusLine, requests.ConnectionError) as e:
+ except (http.client.BadStatusLine, requests.ConnectionError) as e:
time.sleep(int(i) / 10)
pass
raise e
@@ -107,7 +105,7 @@ class HTTPTestServer(TestServer):
with self.handle_proxy():
returned = requests.post('http://%s:%d/%s' %
(self.hostname, self.port, path), data=data)
return returned.json() if as_json else returned
- except (http_client.BadStatusLine, requests.ConnectionError) as e:
+ except (http.client.BadStatusLine, requests.ConnectionError) as e:
time.sleep(int(i) / 10)
pass
raise e
Index: pytest-server-fixtures-1.7.0/pytest_server_fixtures/jenkins.py
===================================================================
--- pytest-server-fixtures-1.7.0.orig/pytest_server_fixtures/jenkins.py
+++ pytest-server-fixtures-1.7.0/pytest_server_fixtures/jenkins.py
@@ -9,7 +9,6 @@ import os.path
import shutil
import pytest
-import six
from pytest_server_fixtures import CONFIG
from pytest_fixture_config import yield_requires_config
@@ -95,7 +94,7 @@ class JenkinsTestServer(HTTPTestServer):
if plugins is None:
plugins = available_plugins.keys()
else:
- if isinstance(plugins, six.string_types):
+ if isinstance(plugins, str):
plugins = [plugins]
errors = []
Index: pytest-server-fixtures-1.7.0/pytest_server_fixtures/postgres.py
===================================================================
--- pytest-server-fixtures-1.7.0.orig/pytest_server_fixtures/postgres.py
+++ pytest-server-fixtures-1.7.0/pytest_server_fixtures/postgres.py
@@ -8,7 +8,6 @@ import subprocess
import errno
import pytest
-from six import text_type
from pytest_server_fixtures import CONFIG
from pytest_fixture_config import requires_config
@@ -65,7 +64,7 @@ class PostgresServer(TestServer):
try:
self.pg_bin =
subprocess.check_output([CONFIG.pg_config_executable,
"--bindir"]).decode('utf-8').rstrip()
except OSError as e:
- msg = "Failed to get pg_config --bindir: " + text_type(e)
+ msg = "Failed to get pg_config --bindir: " + str(e)
print(msg)
self._fail(msg)
initdb_path = self.pg_bin + '/initdb'
@@ -76,7 +75,7 @@ class PostgresServer(TestServer):
try:
subprocess.check_call([initdb_path, str(self.workspace / 'db')])
except OSError as e:
- msg = "Failed to launch postgres: " + text_type(e)
+ msg = "Failed to launch postgres: " + str(e)
print(msg)
self._fail(msg)
Index: pytest-server-fixtures-1.7.0/pytest_server_fixtures/s3.py
===================================================================
--- pytest-server-fixtures-1.7.0.orig/pytest_server_fixtures/s3.py
+++ pytest-server-fixtures-1.7.0/pytest_server_fixtures/s3.py
@@ -11,7 +11,6 @@ import logging
import os
import pytest
-from future.utils import text_type
from pytest_fixture_config import requires_config
from . import CONFIG
@@ -47,7 +46,7 @@ def s3_bucket(s3_server): # pylint: dis
returning a BucketInfo namedtuple with `s3_bucket.client` and
`s3_bucket.name` fields
"""
client = s3_server.get_s3_client()
- bucket_name = text_type(uuid.uuid4())
+ bucket_name = str(uuid.uuid4())
client.create_bucket(Bucket=bucket_name)
return BucketInfo(client, bucket_name)
@@ -96,6 +95,6 @@ class MinioServer(HTTPTestServer):
"server",
"--address",
"{}:{}".format(self.hostname, self.port),
- text_type(self.datadir),
+ str(self.datadir),
]
return cmdargs
Index: pytest-server-fixtures-1.7.0/setup.py
===================================================================
--- pytest-server-fixtures-1.7.0.orig/setup.py
+++ pytest-server-fixtures-1.7.0/setup.py
@@ -25,8 +25,6 @@ classifiers = [
install_requires = ['pytest',
'pytest-shutil',
'pytest-fixture-config',
- 'six',
- 'future',
'requests',
'retry',
'psutil',