Accepting request 1041389 from home:pgajdos:python

- do not require six
- added patches
  fix https://github.com/man-group/pytest-plugins/issues/209
  + python-pytest-pyramid-server-no-six.patch

OBS-URL: https://build.opensuse.org/request/show/1041389
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-pyramid-server?expand=0&rev=3
This commit is contained in:
2022-12-09 10:52:10 +00:00
committed by Git OBS Bridge
parent cf0b8cc5de
commit ae1a1144bf
3 changed files with 25 additions and 2 deletions

View File

@@ -0,0 +1,13 @@
Index: pytest-pyramid-server-1.7.0/pytest_pyramid_server.py
===================================================================
--- pytest-pyramid-server-1.7.0.orig/pytest_pyramid_server.py
+++ pytest-pyramid-server-1.7.0/pytest_pyramid_server.py
@@ -4,7 +4,7 @@ Created on 25 Apr 2012
@author: eeaston
'''
import os
-from six.moves import configparser
+import configparser
import sys
import socket
import glob

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Thu Dec 8 12:05:36 UTC 2022 - pgajdos@suse.com
- do not require six
- added patches
fix https://github.com/man-group/pytest-plugins/issues/209
+ python-pytest-pyramid-server-no-six.patch
-------------------------------------------------------------------
Wed Sep 18 12:06:12 UTC 2019 - John Vandenberg <jayvdb@gmail.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-pytest-pyramid-server
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -25,6 +25,8 @@ License: MIT
Group: Development/Languages/Python
URL: https://github.com/manahl/pytest-plugins
Source: https://files.pythonhosted.org/packages/source/p/pytest-pyramid-server/pytest-pyramid-server-%{version}.tar.gz
# https://github.com/man-group/pytest-plugins/issues/209
Patch0: python-pytest-pyramid-server-no-six.patch
BuildRequires: %{python_module setuptools-git}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
@@ -47,7 +49,7 @@ BuildRequires: %{python_module waitress}
Pyramid server fixture for py.test.
%prep
%setup -q -n pytest-pyramid-server-%{version}
%autosetup -p1 -n pytest-pyramid-server-%{version}
%build
%python_build