11
0

- update to 1.14.3:

* update for deprecation of `twisted.internet.defer.returnValue
  * refactor project layout

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-twisted?expand=0&rev=20
This commit is contained in:
2024-10-24 09:31:52 +00:00
committed by Git OBS Bridge
commit 7769362270
8 changed files with 223 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:a5872cfe08037590dbb0346a6dc6b35b3e4d7bd50d21f8499ddd2d98eeea87a7
size 17114

View File

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

View File

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

View File

@@ -0,0 +1,39 @@
Index: pytest-twisted-1.13.4/pytest.ini
===================================================================
--- pytest-twisted-1.13.4.orig/pytest.ini
+++ pytest-twisted-1.13.4/pytest.ini
@@ -1,3 +1,5 @@
[pytest]
addopts = --verbose
-filterwarnings = error
+filterwarnings =
+ error
+ ignore:currentThread:DeprecationWarning
Index: pytest-twisted-1.13.4/testing/test_basic.py
===================================================================
--- pytest-twisted-1.13.4.orig/testing/test_basic.py
+++ pytest-twisted-1.13.4/testing/test_basic.py
@@ -94,8 +94,13 @@ def skip_if_no_async_generators():
@pytest.fixture
-def cmd_opts(request):
+def cmd_opts(request, testdir):
reactor = request.config.getoption("reactor", "default")
+ pytest_ini_file = """
+ [pytest]
+ filterwarnings = ignore:currentThread:DeprecationWarning
+ """
+ testdir.makefile(".ini", pytest=pytest_ini_file)
return (
sys.executable,
"-m",
@@ -370,6 +375,8 @@ def test_async_fixture(testdir, cmd_opts
[pytest]
markers =
redgreenblue
+ filterwarnings =
+ ignore:currentThread:DeprecationWarning
"""
testdir.makefile('.ini', pytest=pytest_ini_file)
test_file = """

View File

@@ -0,0 +1,82 @@
-------------------------------------------------------------------
Thu Oct 24 09:31:43 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 1.14.3:
* update for deprecation of `twisted.internet.defer.returnValue
* refactor project layout
-------------------------------------------------------------------
Sun Aug 18 17:12:41 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 1.14.2:
* Correct a bug exposed by pytest 8.2.0+.
-------------------------------------------------------------------
Tue May 7 04:52:44 UTC 2024 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
- Skip a broken test with pytest >= 8.1.
-------------------------------------------------------------------
Thu Mar 21 17:06:30 UTC 2024 - Dirk Müller <dmueller@suse.com>
- update to 1.14.1:
* Drop pypy 2.7
* add pypy 3.9
* add python 3.11
* CI fixes
-------------------------------------------------------------------
Wed May 17 16:45:17 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 1.8:
* Drop support for EOL Python 2.6
* Fix assertion in tests, add new test for blockon usage in
fixture
* Fixed blockon lock #24
* Added ``qt5reactor`` support
- drop pytest-twisted-pr148-pytest7.patch (upstream)
-------------------------------------------------------------------
Mon Mar 28 21:41:17 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Add add pytest-twisted-pr148-pytest7.patch
* gh#pytest-dev/pytest-twisted#148
-------------------------------------------------------------------
Thu Jan 6 17:21:12 UTC 2022 - Ben Greiner <code@bnavigator.de>
- Update to 1.13.4
* no release notes
- Add pytest-twisted-ignorepy310DeprecationWarnings.patch
gh#pytest-dev/pytest-twisted/146
-------------------------------------------------------------------
Thu Nov 5 13:51:00 UTC 2020 - Marketa Machova <mmachova@suse.com>
- Update to 1.13.2
* code improvements, bugfixes and cleanup
-------------------------------------------------------------------
Mon Mar 2 09:30:14 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>
- Skip tests that fail with pytest 5.x series
-------------------------------------------------------------------
Thu Nov 14 14:52:41 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
- Update to 1.12:
* Various bugfixes and updates
- Update spec file to match up reality
-------------------------------------------------------------------
Tue Jul 11 06:04:53 UTC 2017 - tbechtold@suse.com
- update to 1.5
- convert to singlespec
-------------------------------------------------------------------
Sat Jan 18 19:49:37 UTC 2014 - toms@opensuse.org
- Initial version 1.4

View File

@@ -0,0 +1,69 @@
#
# spec file for package python-pytest-twisted
#
# 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-twisted
Version: 1.14.3
Release: 0
Summary: Pytest Plugin for Twisted
License: BSD-2-Clause
URL: https://github.com/pytest-dev/pytest-twisted
Source: https://github.com/pytest-dev/pytest-twisted/archive/v%{version}.tar.gz#/pytest-twisted-%{version}-gh.tar.gz
# PATCH-FIX-OPENSUSE pytest-twisted-ignorepy310DeprecationWarnings.patch -- upstream wants this fixed in twisted itself -- gh#pytest-dev/pytest-twisted/146
Patch0: pytest-twisted-ignorepy310DeprecationWarnings.patch
BuildRequires: %{python_module Twisted}
BuildRequires: %{python_module decorator}
BuildRequires: %{python_module greenlet}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 2.3}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: unzip
Requires: python-Twisted
Requires: python-decorator
Requires: python-greenlet
Requires: python-pytest >= 2.3
BuildArch: noarch
%python_subpackages
%description
pytest-twisted is a plugin for pytest, which allows to test code,
which uses the twisted framework. test functions can return Deferred
objects and pytest will wait for their completion with this plugin.
%prep
%autosetup -p1 -n pytest-twisted-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest -k 'not test_async_fixture_module_scope'
%files %{python_files}
%license LICENSE
%doc README.rst
%{python_sitelib}/pytest_twisted
%{python_sitelib}/pytest_twisted-%{version}.dist-info
%changelog