!1 Init package with version 2.0.0

From: @desert-sailor 
Reviewed-by: @yangzhao_kl 
Signed-off-by: @yangzhao_kl
This commit is contained in:
openeuler-ci-bot 2023-11-14 06:39:27 +00:00 committed by Gitee
commit 5a9c1bf4e1
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 62 additions and 0 deletions

BIN
pytest-httpbin-2.0.0.tar.gz Normal file

Binary file not shown.

View File

@ -0,0 +1,62 @@
%global _empty_manifest_terminate_build 0
Name: python-pytest-httpbin
Version: 2.0.0
Release: 1
Summary: Easily test your HTTP library against a local copy of httpbin.
License: MIT
URL: https://github.com/kevin1024/pytest-httpbin
Source0: https://github.com/kevin1024/pytest-httpbin/archive/v2.0.0/pytest-httpbin-2.0.0.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr
BuildRequires: python3-pip
BuildRequires: python3-wheel
BuildRequires: python3-hatchling
%description
Easily test your HTTP library against a local copy of httpbin.
%package -n python3-pytest-httpbin
Summary: Easily test your HTTP library against a local copy of httpbin
Provides: python-pytest-httpbin
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-hatchling
%description -n python3-pytest-httpbin
Easily test your HTTP library against a local copy of httpbin.
%package help
Summary: Easily test your HTTP library against a local copy of httpbin
Provides: python3-pytest-httpbin-doc
%description help
Easily test your HTTP library against a local copy of httpbin.
%prep
%autosetup -n pytest-httpbin-%{version}
%build
%pyproject_build
%install
%pyproject_install
install -d -m755 %{buildroot}/%{_pkgdocdir}
if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
%files -n python3-pytest-httpbin
%doc README.md
%{python3_sitelib}/pytest_httpbin
%{python3_sitelib}/pytest_httpbin*.dist-info/
%files help
%{_docdir}/*
%changelog
* Tue Oct 31 2023 Dongxing Wang <dxwangk@isoftstone.com> - 2.0.0-1
- Init package.