-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update python-pytest-server-fixtures to version 1.7.0 / rev 8 via SR …
…1041859 https://build.opensuse.org/request/show/1041859 by user dgarcia + dimstar_suse - Remove remote path for pytest-plugins-pr186-fix-psycopg29.patch to avoid download that patch from github - Update source pytest-plugins-pr186-fix-psycopg29.patch - do not require six - use -p1 as quilt does not like higher - modified patches % pytest-plugins-pr186-fix-psycopg29.patch (refreshed) % remove-mock.patch (refreshed) - added patches fix man-group/pytest-plugins#209 + python-pytest-server-fixtures-no-six.patch
- Loading branch information
1 parent
3491d44
commit 9e6e4a3
Showing
7 changed files
with
167 additions
and
23 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
103 changes: 103 additions & 0 deletions
103
packages/p/python-pytest-server-fixtures/python-pytest-server-fixtures-no-six.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
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 | ||
|
||
@@ -109,7 +107,7 @@ class ProcessReader(threading.Thread): | ||
def run(self): | ||
while self.process.poll() is None: | ||
l = self.stream.readline() | ||
- if not isinstance(l, string_types): | ||
+ if not isinstance(l, str): | ||
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 | ||
@@ -9,7 +9,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 +82,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 +106,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) | ||
|
23 changes: 23 additions & 0 deletions
23
packages/p/python-pytest-server-fixtures/python-pytest-server-fixtures.changes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,26 @@ | ||
------------------------------------------------------------------- | ||
Fri Dec 9 12:03:36 UTC 2022 - Daniel Garcia <[email protected]> | ||
|
||
- Remove remote path for pytest-plugins-pr186-fix-psycopg29.patch to avoid | ||
download that patch from github | ||
|
||
------------------------------------------------------------------- | ||
Fri Dec 9 11:57:05 UTC 2022 - Daniel Garcia <[email protected]> | ||
|
||
- Update source pytest-plugins-pr186-fix-psycopg29.patch | ||
|
||
------------------------------------------------------------------- | ||
Thu Dec 8 12:33:38 UTC 2022 - [email protected] | ||
|
||
- do not require six | ||
- use -p1 as quilt does not like higher | ||
- modified patches | ||
% pytest-plugins-pr186-fix-psycopg29.patch (refreshed) | ||
% remove-mock.patch (refreshed) | ||
- added patches | ||
fix https://github.com/man-group/pytest-plugins/issues/209 | ||
+ python-pytest-server-fixtures-no-six.patch | ||
|
||
------------------------------------------------------------------- | ||
Thu Apr 21 20:21:33 UTC 2022 - Ben Greiner <[email protected]> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters