Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37615639
en ru br
ALT Linux repositórios
S:0.9.0-alt2

Group :: Development/Python3
RPM: python3-module-http-parser

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname http-parser

%def_with check

Name: python3-module-%oname
Version: 0.9.0
Release: alt2
Summary: http request/response parser
License: MIT
Group: Development/Python3
Url: https://pypi.org/project/http-parser/

# https://github.com/benoitc/http-parser.git

Source: %name-%version.tar

BuildRequires(pre): rpm-build-python3
BuildRequires: python3(Cython)

%if_with check
BuildRequires: python3(pytest)
BuildRequires: python3(tox)
BuildRequires: python3(tox_no_deps)
BuildRequires: python3(tox_console_scripts)
%endif

%py3_provides %oname

%description
HTTP request/response parser for Python compatible with Python 2.x
(>=2.6), Python 3 and Pypy. If possible a C parser based on http-parser
from Ryan Dahl will be used.

%prep
%setup

# regenerate with cython later

rm -f http_parser/parser.c

%build
%add_optflags -fno-strict-aliasing
%python3_build_debug

%install
%python3_install

%check
export PIP_NO_BUILD_ISOLATION=no
export PIP_NO_INDEX=YES
export TOXENV=py3
tox.py3 --sitepackages --console-scripts --no-deps -vvr -s false

%files
%doc NOTICE *.rst *.md THANKS examples
%python3_sitelibdir/*

%changelog

Todas as alterações você pod ver aqui

 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009