Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37528332
en ru br
Репозитории ALT

Группа :: Development/Python3
Пакет: python3-module-aiohttp

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define oname aiohttp

%def_with python3
# def_with docs needed package python3-modile-sphinxcontrib-blockdiag (missing in Sisyphus)
%def_without docs
%def_without check

Name: python3-module-%oname
Version: 3.8.4
Release: alt1
Summary: http client/server for asyncio
License: Apache-2.0
Group: Development/Python3
Url: https://github.com/KeepSafe/aiohttp.git
Source: %name-%version.tar
# submodule part from pypi archive with pregenerated c sources
Source1: llhttp.tar

BuildRequires(pre): rpm-build-python3
BuildRequires: python3(wheel)
BuildRequires: python3-devel python3-module-setuptools python3-module-Cython
BuildRequires: python3-module-multidict
%if_with check
BuildRequires: python3-module-yarl python3-module-async-timeout python3-module-pytest-mock
%endif
%if_with docs
BuildRequires(pre): python3-module-sphinx-devel
BuildRequires: python3-module-sphinxcontrib-asyncio python3-module-sphinxcontrib-newsfeed
%endif

# conditional imports

%py3_requires charset_normalizer idna_ssl

%description
http client/server for asyncio (PEP-3156).

%package tests
Summary: Tests for %oname
Group: Development/Python3
Requires: python3-module-%oname = %EVR

%description tests
http client/server for asyncio (PEP-3156).

This package contains tests for %oname.

%package docs
Summary: Documentation for %oname
Group: Development/Documentation
BuildArch: noarch

%description docs
http client/server for asyncio (PEP-3156).

This package contains documentation for %oname.

%prep
%setup -a1
# gen.py expects to find .git in project root, cheat a bit
sed -i 's,".git",".gitmodules",' tools/gen.py
# use system cython
sed -i '/^cythonize:/ s,.install-cython,,' Makefile
find tools -type f -name \*.py | xargs sed -ri '/env python$/ s,$,3,'
%if_with docs
%prepare_sphinx3 .
ln -s ../objects.inv docs/
%endif

%build
make cythonize
%pyproject_build

%if_with docs
%make_build -C docs html SPHINXBUILD=py3_sphinx-build
%endif

%install
%pyproject_install

%if_with check
%check
python3 setup.py test
%endif

%if_with docs
%files docs
%doc docs/_build/html/*
%endif

%files -n python3-module-%oname
%doc *.txt *.rst examples
%python3_sitelibdir/%oname
%python3_sitelibdir/%oname-%version.dist-info
%exclude %python3_sitelibdir/%oname/*test*
%exclude %python3_sitelibdir/%oname/*/*test*

%files -n python3-module-%oname-tests
%python3_sitelibdir/%oname/*test*
%python3_sitelibdir/%oname/*/*test*

%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin