From 40fcea12b4c61154ca8815d0b0915781af03b0c0ea181ee0d5591a9aca09d76c Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Tue, 22 Oct 2024 06:10:44 +0000 Subject: [PATCH] - 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. - Modify python-pytest-pyramid-server-no-six.patch to remove the requirement completly. - No more greedy globs in %files. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-pyramid-server?expand=0&rev=5 --- .gitattributes | 23 ++++++++ .gitignore | 1 + pytest-pyramid-server-1.7.0.tar.gz | 3 + pytest-pyramid-server-1.8.0.tar.gz | 3 + python-pytest-pyramid-server-no-six.patch | 25 ++++++++ python-pytest-pyramid-server.changes | 28 +++++++++ python-pytest-pyramid-server.spec | 72 +++++++++++++++++++++++ 7 files changed, 155 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 pytest-pyramid-server-1.7.0.tar.gz create mode 100644 pytest-pyramid-server-1.8.0.tar.gz create mode 100644 python-pytest-pyramid-server-no-six.patch create mode 100644 python-pytest-pyramid-server.changes create mode 100644 python-pytest-pyramid-server.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pytest-pyramid-server-1.7.0.tar.gz b/pytest-pyramid-server-1.7.0.tar.gz new file mode 100644 index 0000000..504796f --- /dev/null +++ b/pytest-pyramid-server-1.7.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:28ced2e7b943c59610491ada0b07abc814b15cd3e14e8cdd676b3d2f66bfb905 +size 15511 diff --git a/pytest-pyramid-server-1.8.0.tar.gz b/pytest-pyramid-server-1.8.0.tar.gz new file mode 100644 index 0000000..79cf206 --- /dev/null +++ b/pytest-pyramid-server-1.8.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a8be30902e5966715a2f537e19c9a7198656c081820bafd79003b8bb9cd0407b +size 11604 diff --git a/python-pytest-pyramid-server-no-six.patch b/python-pytest-pyramid-server-no-six.patch new file mode 100644 index 0000000..9fcaa7c --- /dev/null +++ b/python-pytest-pyramid-server-no-six.patch @@ -0,0 +1,25 @@ +Index: pytest-pyramid-server-1.8.0/pytest_pyramid_server.py +=================================================================== +--- pytest-pyramid-server-1.8.0.orig/pytest_pyramid_server.py ++++ pytest-pyramid-server-1.8.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 +Index: pytest-pyramid-server-1.8.0/setup.py +=================================================================== +--- pytest-pyramid-server-1.8.0.orig/setup.py ++++ pytest-pyramid-server-1.8.0/setup.py +@@ -23,7 +23,6 @@ install_requires = ['pytest-server-fixtu + 'pytest', + 'pyramid', + 'waitress', +- 'six', + ] + + tests_require = [ diff --git a/python-pytest-pyramid-server.changes b/python-pytest-pyramid-server.changes new file mode 100644 index 0000000..81f20a8 --- /dev/null +++ b/python-pytest-pyramid-server.changes @@ -0,0 +1,28 @@ +------------------------------------------------------------------- +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. +- Modify python-pytest-pyramid-server-no-six.patch to remove the + requirement completly. +- No more greedy globs in %files. + +------------------------------------------------------------------- +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 + +- Update to v1.7.0 + +------------------------------------------------------------------- +Thu Mar 21 01:41:56 AM UTC 2019 - John Vandenberg + +- Initial spec for v1.6.0 diff --git a/python-pytest-pyramid-server.spec b/python-pytest-pyramid-server.spec new file mode 100644 index 0000000..a4db390 --- /dev/null +++ b/python-pytest-pyramid-server.spec @@ -0,0 +1,72 @@ +# +# spec file for package python-pytest-pyramid-server +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +Name: python-pytest-pyramid-server +Version: 1.8.0 +Release: 0 +Summary: Pyramid server fixture for py.test +License: MIT +URL: https://github.com/man-group/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 pip} +BuildRequires: %{python_module setuptools-git} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-pyramid +Requires: python-pytest +Requires: python-pytest-server-fixtures +Requires: python-waitress +BuildArch: noarch +# SECTION test requirements +BuildRequires: %{python_module pyramid-debugtoolbar} +BuildRequires: %{python_module pyramid} +BuildRequires: %{python_module pytest-server-fixtures} +BuildRequires: %{python_module waitress} +# /SECTION +%python_subpackages + +%description +Pyramid server fixture for py.test. + +%prep +%autosetup -p1 -n pytest-pyramid-server-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} + +%check +%pytest + +%files %{python_files} +%doc CHANGES.md README.md +%license LICENSE +%{python_sitelib}/pytest_pyramid_server.py +%{python_sitelib}/pyramid_server_test.py +%pycache_only %{python_sitelib}/__pycache__/pytest_pyramid_server*.pyc +%pycache_only %{python_sitelib}/__pycache__/pyramid_server_test*.pyc +%{python_sitelib}/pytest_pyramid_server-%{version}.dist-info + +%changelog