commit 89a102bc131ff45dcbac872906fec4febd518d2d319ffffb227c2a7fc380dd50 Author: Steve Kowalik Date: Tue Jul 1 02:43:13 2025 +0000 - Update to 1.1.0: * Drop Python 3.8 (#57) * Export the plugin types at top-level (#60, #61) * Add host parameter to aiohttp_server fixture (#63) - Write out a pytest.ini file to support Pytest 8.4. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-aiohttp?expand=0&rev=14 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-aiohttp-1.0.5.tar.gz b/pytest-aiohttp-1.0.5.tar.gz new file mode 100644 index 0000000..14e7f0d --- /dev/null +++ b/pytest-aiohttp-1.0.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:880262bc5951e934463b15e3af8bb298f11f7d4d3ebac970aab425aff10a780a +size 12209 diff --git a/pytest_aiohttp-1.1.0.tar.gz b/pytest_aiohttp-1.1.0.tar.gz new file mode 100644 index 0000000..8a83fc0 --- /dev/null +++ b/pytest_aiohttp-1.1.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:147de8cb164f3fc9d7196967f109ab3c0b93ea3463ab50631e56438eab7b5adc +size 12842 diff --git a/python-pytest-aiohttp.changes b/python-pytest-aiohttp.changes new file mode 100644 index 0000000..eae9d53 --- /dev/null +++ b/python-pytest-aiohttp.changes @@ -0,0 +1,54 @@ +------------------------------------------------------------------- +Tue Jul 1 02:42:12 UTC 2025 - Steve Kowalik + +- Update to 1.1.0: + * Drop Python 3.8 (#57) + * Export the plugin types at top-level (#60, #61) + * Add host parameter to aiohttp_server fixture (#63) +- Write out a pytest.ini file to support Pytest 8.4. + +------------------------------------------------------------------- +Mon Oct 2 14:49:24 UTC 2023 - Dirk Müller + +- update to 1.0.5: + * Fix some compatibility with Pytest 7. +- pytest72.patch dropped (upstream) + +------------------------------------------------------------------- +Tue Jul 4 11:34:16 UTC 2023 - ecsos + +- Add %{?sle15_python_module_pythons} + +------------------------------------------------------------------- +Wed Nov 30 07:21:17 UTC 2022 - Daniel Garcia + +- Add pytest72.patch to make it compatible with pytest 7.2.0 + gh#aio-libs/pytest-aiohttp#49 + +------------------------------------------------------------------- +Sat Oct 15 09:17:10 UTC 2022 - Ben Greiner + +- Fix dependencies: pytest-asyncio missing +- Enable test suite + +------------------------------------------------------------------- +Mon Oct 10 09:23:41 UTC 2022 - Daniel Garcia + +- Update to 1.0.4 + * Fix failure with aiohttp_client fixture usage when asyncio_mode=strict. #25 +- 1.0.3 (2022-01-03) + * Fix loop and proactor_loop fixtures. #22 +- 1.0.2 (2022-01-20) + * Restore implicit switch to asyncio_mode = auto if legacy mode is detected. +- 1.0.1 (2022-01-20) + * Don't implicitly switch from legacy to auto asyncio_mode, the integration + doesn't work well. +- 1.0.0 (2022-1-20) + * The plugin is compatible with pytest-asyncio now. It uses pytest-asyncio + for async tests running and async fixtures support, providing by itself + only fixtures for creating aiohttp test server and client. + +------------------------------------------------------------------- +Tue Mar 26 12:28:14 UTC 2019 - Tomáš Chvátal + +- Initial commit, needed by autobahn diff --git a/python-pytest-aiohttp.spec b/python-pytest-aiohttp.spec new file mode 100644 index 0000000..ffbadda --- /dev/null +++ b/python-pytest-aiohttp.spec @@ -0,0 +1,70 @@ +# +# spec file for package python-pytest-aiohttp +# +# Copyright (c) 2025 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/ +# + + +%{?sle15_python_module_pythons} +Name: python-pytest-aiohttp +Version: 1.1.0 +Release: 0 +Summary: Python pytest plugin for aiohttp support +License: Apache-2.0 +URL: https://github.com/aio-libs/pytest-aiohttp +Source: https://files.pythonhosted.org/packages/source/p/pytest-aiohttp/pytest_aiohttp-%{version}.tar.gz +BuildRequires: %{python_module aiohttp >= 3.8.1} +BuildRequires: %{python_module base >= 3.9} +BuildRequires: %{python_module pip} +BuildRequires: %{python_module pytest >= 6.1.0} +BuildRequires: %{python_module pytest-asyncio >= 0.20.2} +BuildRequires: %{python_module setuptools_scm >= 6.2} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module wheel} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +Requires: python-aiohttp >= 3.8.1 +Requires: python-pytest >= 6.1.0 +Requires: python-pytest-asyncio >= 0.20.2 +BuildArch: noarch +%python_subpackages + +%description +A library that provides fixtures for creation test aiohttp server and client. + +%prep +%autosetup -p1 -n pytest_aiohttp-%{version} +cat >pytest.ini <