- 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
This commit is contained in:
2024-10-22 06:10:44 +00:00
committed by Git OBS Bridge
commit 40fcea12b4
7 changed files with 155 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -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

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
.osc

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:28ced2e7b943c59610491ada0b07abc814b15cd3e14e8cdd676b3d2f66bfb905
size 15511

View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a8be30902e5966715a2f537e19c9a7198656c081820bafd79003b8bb9cd0407b
size 11604

View File

@@ -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 = [

View File

@@ -0,0 +1,28 @@
-------------------------------------------------------------------
Tue Oct 22 06:08:51 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- 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 <jayvdb@gmail.com>
- Update to v1.7.0
-------------------------------------------------------------------
Thu Mar 21 01:41:56 AM UTC 2019 - John Vandenberg <jayvdb@gmail.com>
- Initial spec for v1.6.0

View File

@@ -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