|
 |
ae8baa |
%global srcname aiohttp-cors
|
|
 |
ae8baa |
%global common_desc aiohttp_cors library implements Cross Origin Resource Sharing (CORS) support \
|
|
 |
ae8baa |
for aiohttp asyncio-powered asynchronous HTTP server.
|
|
 |
ae8baa |
|
|
 |
ae8baa |
Name: python-%{srcname}
|
|
 |
ae8baa |
Version: 0.7.0
|
|
 |
ae8baa |
Release: 26%{?dist}
|
|
 |
ae8baa |
Summary: CORS (Cross Origin Resource Sharing) support for aiohttp
|
|
 |
ae8baa |
|
|
 |
ae8baa |
# Automatically converted from old format: ASL 2.0 - review is highly recommended.
|
|
 |
ae8baa |
License: Apache-2.0
|
|
 |
ae8baa |
URL: https://github.com/aio-libs/aiohttp-cors
|
|
 |
ae8baa |
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
|
 |
ae8baa |
|
|
 |
ae8baa |
# Fix test failure of test_add_options_route
|
|
 |
ae8baa |
Patch1: %{url}/commit/eb4f5a4bb28f8260d4edc32969e838d9abace051.patch
|
|
 |
ae8baa |
|
|
 |
ae8baa |
# Fix test failure of test_static_resource
|
|
 |
ae8baa |
Patch2: %{url}/pull/278/commits/e64b95848f3253157d831f4934841fceeaf9b2e3.patch
|
|
 |
ae8baa |
|
|
 |
ae8baa |
# Python 3.11 compatibility
|
|
 |
ae8baa |
# Replace @asyncio.coroutine decorator with async def
|
|
 |
ae8baa |
Patch3: %{url}/pull/412/commits/1eb2226aaf664d0be746753a32f82ee2e04c2f0b.patch
|
|
 |
ae8baa |
|
|
 |
ae8baa |
# pytest 8 compatibility
|
|
 |
ae8baa |
# We don't care about python 3.5 in Fedora, hence just removing
|
|
 |
ae8baa |
# the problematic function
|
|
 |
ae8baa |
Patch4: Remove-the-usage-of-pytest_cmdline_preparse-hook-rem.patch
|
|
 |
ae8baa |
|
|
 |
ae8baa |
BuildArch: noarch
|
|
 |
ae8baa |
|
|
 |
ae8baa |
%description
|
|
 |
ae8baa |
%{common_desc}
|
|
 |
ae8baa |
|
|
 |
ae8baa |
|
|
 |
ae8baa |
%package -n python3-%{srcname}
|
|
 |
ae8baa |
Summary: %{summary}
|
|
 |
ae8baa |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
 |
ae8baa |
BuildRequires: python3-devel
|
|
 |
ae8baa |
BuildRequires: python3-setuptools
|
|
 |
ae8baa |
|
|
 |
ae8baa |
# For tes suite
|
|
 |
ae8baa |
BuildRequires: python3-pytest
|
|
 |
ae8baa |
BuildRequires: python3-pytest-aiohttp
|
|
 |
ae8baa |
BuildRequires: python3-aiohttp >= 1.1
|
|
 |
ae8baa |
|
|
 |
ae8baa |
# Browser tests not possible yet
|
|
 |
ae8baa |
# BuildRequires: python3-selenium
|
|
 |
ae8baa |
#
|
|
 |
ae8baa |
# ifarch on noarch?
|
|
 |
ae8baa |
# BuildRequires: chromium
|
|
 |
ae8baa |
# BuildRequires: chromedriver
|
|
 |
ae8baa |
# Chrome failed to start: exited abnormally
|
|
 |
ae8baa |
# (unknown error: DevToolsActivePort file doesn't exist)
|
|
 |
ae8baa |
#
|
|
 |
ae8baa |
# BuildRequires: firefox
|
|
 |
ae8baa |
# BuildRequires: geckodriver -- not available
|
|
 |
ae8baa |
|
|
 |
ae8baa |
%description -n python3-%{srcname}
|
|
 |
ae8baa |
%{common_desc}
|
|
 |
ae8baa |
|
|
 |
ae8baa |
|
|
 |
ae8baa |
%prep
|
|
 |
ae8baa |
%autosetup -n %{srcname}-%{version} -p1
|
|
 |
ae8baa |
|
|
 |
ae8baa |
# remove non-essential pytest plugins
|
|
 |
ae8baa |
sed -i '/pytest-cov/d' setup.py
|
|
 |
ae8baa |
sed -i '/pytest-pylint/d' setup.py
|
|
 |
ae8baa |
|
|
 |
ae8baa |
# Don't treat warnings as errors, that's what upstream testing is for
|
|
 |
ae8baa |
# In 0.7.0, nothing else is in this config
|
|
 |
ae8baa |
rm pytest.ini
|
|
 |
ae8baa |
|
|
 |
ae8baa |
# Don't add --cov options to pytest
|
|
 |
ae8baa |
# In 0.7.0, nothing else is in this config
|
|
 |
ae8baa |
rm setup.cfg
|
|
 |
ae8baa |
# tox.ini has this repeated, but we don't need it
|
|
 |
ae8baa |
rm tox.ini
|
|
 |
ae8baa |
|
|
 |
ae8baa |
%build
|
|
 |
ae8baa |
%py3_build
|
|
 |
ae8baa |
|
|
 |
ae8baa |
%install
|
|
 |
ae8baa |
%py3_install
|
|
 |
ae8baa |
|
|
 |
ae8baa |
%check
|
|
 |
ae8baa |
%{python3} -m pytest -v --ignore tests/integration/test_real_browser.py
|
|
 |
ae8baa |
|
|
 |
ae8baa |
%files -n python3-%{srcname}
|
|
 |
ae8baa |
%license LICENSE
|
|
 |
ae8baa |
%doc README.rst CHANGES.rst
|
|
 |
ae8baa |
%{python3_sitelib}/aiohttp_cors
|
|
 |
ae8baa |
%{python3_sitelib}/aiohttp_cors-*.egg-info/
|
|
 |
ae8baa |
|
|
 |
ae8baa |
%changelog
|
|
 |
ae8baa |
* Sat Jan 18 2025 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-26
|
|
 |
ae8baa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Wed Jul 24 2024 Miroslav Suchý <msuchy@redhat.com> - 0.7.0-25
|
|
 |
ae8baa |
- convert license to SPDX
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-24
|
|
 |
ae8baa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.7.0-23
|
|
 |
ae8baa |
- Rebuilt for Python 3.13
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-22
|
|
 |
ae8baa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Sun Jan 21 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-21
|
|
 |
ae8baa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-20
|
|
 |
ae8baa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Thu Jun 29 2023 Python Maint <python-maint@redhat.com> - 0.7.0-19
|
|
 |
ae8baa |
- Rebuilt for Python 3.12
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-18
|
|
 |
ae8baa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-17
|
|
 |
ae8baa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Tue Jun 14 2022 Python Maint <python-maint@redhat.com> - 0.7.0-16
|
|
 |
ae8baa |
- Rebuilt for Python 3.11
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-15
|
|
 |
ae8baa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-14
|
|
 |
ae8baa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.7.0-13
|
|
 |
ae8baa |
- Rebuilt for Python 3.10
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-12
|
|
 |
ae8baa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-11
|
|
 |
ae8baa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-10
|
|
 |
ae8baa |
- Rebuilt for Python 3.9
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-9
|
|
 |
ae8baa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Thu Nov 14 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-8
|
|
 |
ae8baa |
- Run the tests
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-7
|
|
 |
ae8baa |
- Rebuilt for Python 3.8.0rc1 (#1748018)
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-6
|
|
 |
ae8baa |
- Rebuilt for Python 3.8
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-5
|
|
 |
ae8baa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-4
|
|
 |
ae8baa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.7.0-3
|
|
 |
ae8baa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.7.0-2
|
|
 |
ae8baa |
- Rebuilt for Python 3.7
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Sun Apr 22 2018 Athmane Madjoudj <athmane@fedoraproject.org> - 0.7.0-1
|
|
 |
ae8baa |
- Update to 0.7.0 (rhbz #1554157)
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.0-2
|
|
 |
ae8baa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Sat Dec 30 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 0.6.0-1
|
|
 |
ae8baa |
- Update to 0.6.0 (rhbz #1528479)
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.5.3-2
|
|
 |
ae8baa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Sat Apr 29 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 0.5.3-1
|
|
 |
ae8baa |
- Update to 0.5.3
|
|
 |
ae8baa |
|
|
 |
ae8baa |
* Fri Feb 10 2017 Athmane Madjoudj <athmane@fedoraproject.org> - 0.5.0-1
|
|
 |
ae8baa |
- Initial spec.
|