1
0

7 Commits

Author SHA256 Message Date
fbc5230362 Accepting request 1285325 from devel:languages:python
- Switch to pyproject macros.

OBS-URL: https://build.opensuse.org/request/show/1285325
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aioresponses?expand=0&rev=17
2025-06-13 16:43:30 +00:00
366d8b6aa2 - Switch to pyproject macros.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aioresponses?expand=0&rev=36
2025-06-13 05:40:28 +00:00
ac1ab85661 Accepting request 1267655 from devel:languages:python
OBS-URL: https://build.opensuse.org/request/show/1267655
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aioresponses?expand=0&rev=16
2025-04-08 15:51:04 +00:00
6f690483a9 - Update to 0.7.8
* feat: integer repeat
  * fix: case repeat=1
  * docs: elaborate on meaning in documentation of repeat argument
  * use ClientSession base_url and headers
  * Refactor usage of session base_url and headers
  * Add tests for base_url and headers from session
  * Add __repr__ to RequestMatch
  * Upgrade yarl to be compatible with Python 3.12
  * fix: review suggestion
  * fix: fix test
  * fix: added condition on py3.8 while supporting ClientSession.base_url
  * fix: flake8
- from version 0.7.7
  * added passthrough_unmatched flag for aioresponses class
  * test for passing unmatched requests
  * add a readme description about passthrough_unmatched flag
  * feat: support raise_for_status as callable
  * Add packaging to requirements.txt
  * Update ``__version__`` to latest released version
  * Fix compat with aiohttp 3.11.0+
  * fix: invalid rst code
- Add test_pass_through_unmatched_requests to skipped tests
- Update Requires from requirements.txt

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aioresponses?expand=0&rev=34
2025-04-07 12:16:38 +00:00
a4e0b6b071 Accepting request 1221236 from devel:languages:python
- Add %{?sle15_python_module_pythons}

OBS-URL: https://build.opensuse.org/request/show/1221236
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-aioresponses?expand=0&rev=15
2024-11-05 14:39:45 +00:00
914a0db3f5 Clean up the SPEC
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aioresponses?expand=0&rev=32
2024-11-04 20:10:36 +00:00
fd4f19b103 - Add %{?sle15_python_module_pythons}
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aioresponses?expand=0&rev=31
2024-11-04 20:09:04 +00:00
4 changed files with 52 additions and 10 deletions

Binary file not shown.

BIN
aioresponses-0.7.8.tar.gz LFS Normal file

Binary file not shown.

View File

@@ -1,3 +1,41 @@
-------------------------------------------------------------------
Fri Jun 13 05:35:05 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Switch to pyproject macros.
-------------------------------------------------------------------
Mon Apr 7 10:28:58 UTC 2025 - John Paul Adrian Glaubitz <adrian.glaubitz@suse.com>
- Update to 0.7.8
* feat: integer repeat
* fix: case repeat=1
* docs: elaborate on meaning in documentation of repeat argument
* use ClientSession base_url and headers
* Refactor usage of session base_url and headers
* Add tests for base_url and headers from session
* Add __repr__ to RequestMatch
* Upgrade yarl to be compatible with Python 3.12
* fix: review suggestion
* fix: fix test
* fix: added condition on py3.8 while supporting ClientSession.base_url
* fix: flake8
- from version 0.7.7
* added passthrough_unmatched flag for aioresponses class
* test for passing unmatched requests
* add a readme description about passthrough_unmatched flag
* feat: support raise_for_status as callable
* Add packaging to requirements.txt
* Update ``__version__`` to latest released version
* Fix compat with aiohttp 3.11.0+
* fix: invalid rst code
- Add test_pass_through_unmatched_requests to skipped tests
- Update Requires from requirements.txt
-------------------------------------------------------------------
Sun Nov 3 14:47:54 UTC 2024 - ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
-------------------------------------------------------------------
Sat Nov 25 14:08:40 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-aioresponses
#
# Copyright (c) 2023 SUSE LLC
# 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
@@ -16,10 +16,10 @@
#
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
%{?sle15_python_module_pythons}
Name: python-aioresponses
Version: 0.7.6
Version: 0.7.8
Release: 0
Summary: Python module for mocking out requests made by ClientSession from aiohttp
License: MIT
@@ -28,15 +28,18 @@ Source: https://files.pythonhosted.org/packages/source/a/aioresponses/ai
BuildRequires: %{python_module aiohttp >= 2.0.0}
BuildRequires: %{python_module ddt >= 1.1.0}
BuildRequires: %{python_module pbr}
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest >= 3.8.1}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module typing}
BuildRequires: %{python_module wheel}
BuildRequires: %{python_module yarl}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: (python3-asynctest if python3-base < 3.8)
BuildRequires: (python36-asynctest if python36-base)
Requires: python-aiohttp >= 2.0.0
Requires: python-aiohttp >= 3.3.0
Requires: python-packaging >= 22.0
BuildArch: noarch
%python_subpackages
@@ -49,11 +52,11 @@ from the aiohttp package.
%build
export LC_ALL=en_US.UTF-8
%python_build
%pyproject_wheel
%install
export LC_ALL=en_US.UTF-8
%python_install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
@@ -61,12 +64,13 @@ export LC_ALL=en_US.UTF-8
# disable tests which try to access external network
skiptests+="test_address_as_instance_of_url_combined_with_pass_through"
skiptests+=" or test_pass_through_with_origin_params"
skiptests+=" or test_pass_through_unmatched_requests"
%pytest -k "not ($skiptests)"
%files %{python_files}
%doc AUTHORS AUTHORS.rst ChangeLog README.rst
%license LICENSE
%{python_sitelib}/aioresponses
%{python_sitelib}/aioresponses-%{version}-py*.egg-info
%{python_sitelib}/aioresponses-%{version}.dist-info
%changelog