Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37818756
en ru br
ALT Linux repos
S:0.7.0-alt3

Group :: Development/Python3
RPM: python3-module-httpbin

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _unpackaged_files_terminate_build 1
%define oname httpbin

%def_enable check

Name: python3-module-%oname
Version: 0.7.0
Release: alt3
Summary: HTTP Request and Response Service
License: MIT
Group: Development/Python3
Url: https://pypi.python.org/pypi/httpbin/
# https://github.com/postmanlabs/httpbin
BuildArch: noarch

Source: %oname-%version.tar

BuildRequires(pre): rpm-build-python3

%if_enabled check
BuildRequires: python3-module-flask
BuildRequires: python3-module-six
BuildRequires: python3-module-werkzeug
BuildRequires: python3-module-raven
BuildRequires: python3-module-brotlipy
%endif


%py3_provides %oname

%description
Testing an HTTP Library can become difficult sometimes. PostBin.org is
fantastic for testing POST requests, but not much else. This exists to
cover all kinds of HTTP scenarios. Additional endpoints are being
considered.

All endpoint responses are JSON-encoded.

%prep
%setup -n %oname-%version

%build
%python3_build_debug

%install
%python3_install

%check
export PYTHONPATH=%buildroot%python3_sitelibdir/
python3 test_httpbin.py

%files
%doc AUTHORS *.md LICENSE
%python3_sitelibdir/*

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin