[packages/python3-pytest-httpbin] - python-pytest-httpbin.spec updated to 2.1.0 for python 3.8+
qboosh
qboosh at pld-linux.org
Thu Jan 1 00:38:37 CET 2026
commit 28d620d934ec01bc3f1b751d535bf8b53ca7a27e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Thu Jan 1 00:39:12 2026 +0100
- python-pytest-httpbin.spec updated to 2.1.0 for python 3.8+
python-pytest-httpbin.spec | 119 --------------------------------------------
python3-pytest-httpbin.spec | 62 +++++++++++++++++++++++
2 files changed, 62 insertions(+), 119 deletions(-)
---
diff --git a/python-pytest-httpbin.spec b/python-pytest-httpbin.spec
deleted file mode 100644
index 89a22db..0000000
--- a/python-pytest-httpbin.spec
+++ /dev/null
@@ -1,119 +0,0 @@
-#
-# Conditional build:
-%bcond_without tests # unit tests
-%bcond_without python2 # CPython 2.x module
-%bcond_with python3 # CPython 3.x module (built from python3-pytest-httpbin.spec)
-
-Summary: py.test plugin to test HTTP libraries against a local copy of httpbin
-Summary(pl.UTF-8): Wtyczka py.test do testowania bibliotek HTTP względem lokalnej kopii httpbin
-Name: python-pytest-httpbin
-# keep 1.x here for python2 support
-Version: 1.0.2
-Release: 1
-License: MIT
-Group: Libraries/Python
-#Source0Download: https://pypi.python.org/simple/pytest-httpbin/
-Source0: https://files.pythonhosted.org/packages/source/p/pytest-httpbin/pytest-httpbin-%{version}.tar.gz
-# Source0-md5: cd17b8252c4e88d0372d6286663ce6d9
-URL: https://github.com/kevin1024/pytest-httpbin
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.6
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-httpbin
-BuildRequires: python-pytest
-BuildRequires: python-requests
-BuildRequires: python-six
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.4
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python3-httpbin
-BuildRequires: python3-pytest
-BuildRequires: python3-requests
-BuildRequires: python3-six
-%endif
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-modules >= 1:2.6
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-py.test plugin to test HTTP libraries against a local copy of httpbin.
-
-%description -l pl.UTF-8
-Wtyczka py.test do testowania bibliotek HTTP względem lokalnej kopii
-httpbin.
-
-%package -n python3-pytest-httpbin
-Summary: py.test plugin to test HTTP libraries against a local copy of httpbin
-Summary(pl.UTF-8): Wtyczka py.test do testowania bibliotek HTTP względem lokalnej kopii httpbin
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.4
-
-%description -n python3-pytest-httpbin
-py.test plugin to test HTTP libraries against a local copy of httpbin.
-
-%description -n python3-pytest-httpbin -l pl.UTF-8
-Wtyczka py.test do testowania bibliotek HTTP względem lokalnej kopii
-httpbin.
-
-%prep
-%setup -q -n pytest-httpbin-%{version}
-
-%build
-%if %{with python2}
-%py_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS=pytest_httpbin.plugin \
-%{__python} -m pytest tests -k 'not test_redirect_location_is_https_for_secure_server'
-%endif
-%endif
-
-%if %{with python3}
-%py3_build
-
-%if %{with tests}
-PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
-PYTEST_PLUGINS=pytest_httpbin.plugin \
-%{__python3} -m pytest tests
-%endif
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean -x version.py
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc DESCRIPTION.rst README.md
-%{py_sitescriptdir}/pytest_httpbin
-%{py_sitescriptdir}/pytest_httpbin-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-pytest-httpbin
-%defattr(644,root,root,755)
-%doc DESCRIPTION.rst README.md
-%{py3_sitescriptdir}/pytest_httpbin
-%{py3_sitescriptdir}/pytest_httpbin-%{version}-py*.egg-info
-%endif
diff --git a/python3-pytest-httpbin.spec b/python3-pytest-httpbin.spec
new file mode 100644
index 0000000..50a4eca
--- /dev/null
+++ b/python3-pytest-httpbin.spec
@@ -0,0 +1,62 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: py.test plugin to test HTTP libraries against a local copy of httpbin
+Summary(pl.UTF-8): Wtyczka py.test do testowania bibliotek HTTP względem lokalnej kopii httpbin
+Name: python3-pytest-httpbin
+Version: 2.1.0
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.python.org/simple/pytest-httpbin/
+Source0: https://files.pythonhosted.org/packages/source/p/pytest-httpbin/pytest_httpbin-%{version}.tar.gz
+# Source0-md5: 1397b53a60b10c5a8393a450583847c8
+URL: https://github.com/kevin1024/pytest-httpbin
+BuildRequires: python3-build
+BuildRequires: python3-installer
+BuildRequires: python3-modules >= 1:3.8
+BuildRequires: python3-setuptools >= 1:61.2
+%if %{with tests}
+BuildRequires: python3-httpbin
+BuildRequires: python3-pytest
+BuildRequires: python3-requests
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 2.044
+Requires: python3-modules >= 1:3.8
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+py.test plugin to test HTTP libraries against a local copy of httpbin.
+
+%description -l pl.UTF-8
+Wtyczka py.test do testowania bibliotek HTTP względem lokalnej kopii
+httpbin.
+
+%prep
+%setup -q -n pytest_httpbin-%{version}
+
+%build
+%py3_build_pyproject
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_httpbin.plugin \
+%{__python3} -m pytest tests
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install_pyproject
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc DESCRIPTION.rst LICENSE README.md
+%{py3_sitescriptdir}/pytest_httpbin
+%{py3_sitescriptdir}/pytest_httpbin-%{version}.dist-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-httpbin.git/commitdiff/28d620d934ec01bc3f1b751d535bf8b53ca7a27e
More information about the pld-cvs-commit
mailing list