From 6520251bdabffd7fb3cd10592b93d3b7b08ce853 Mon Sep 17 00:00:00 2001 From: tigro Date: Sun, 5 Jan 2025 22:23:10 +0300 Subject: [PATCH] import python-pytest-httpserver-1.0.8-5.el10 --- .gitignore | 1 + .python-pytest-httpserver.metadata | 1 + SOURCES/pyproject.patch | 16 +++++ SPECS/python-pytest-httpserver.spec | 94 +++++++++++++++++++++++++++++ 4 files changed, 112 insertions(+) create mode 100644 .gitignore create mode 100644 .python-pytest-httpserver.metadata create mode 100644 SOURCES/pyproject.patch create mode 100644 SPECS/python-pytest-httpserver.spec diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..f964ea1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/pytest-httpserver-1.0.8.tar.gz diff --git a/.python-pytest-httpserver.metadata b/.python-pytest-httpserver.metadata new file mode 100644 index 0000000..2b6ddcc --- /dev/null +++ b/.python-pytest-httpserver.metadata @@ -0,0 +1 @@ +41652ab4a5719ad40c183b9f282eb117b7045a59 SOURCES/pytest-httpserver-1.0.8.tar.gz diff --git a/SOURCES/pyproject.patch b/SOURCES/pyproject.patch new file mode 100644 index 0000000..164622d --- /dev/null +++ b/SOURCES/pyproject.patch @@ -0,0 +1,16 @@ +--- a/pyproject.toml 2022-06-30 14:59:14.129513366 +0300 ++++ b/pyproject.toml 2022-06-30 14:59:48.066496449 +0300 +@@ -15,13 +15,6 @@ classifiers = [ + ] + repository = "https://github.com/csernazs/pytest-httpserver" + +-include = [ +- { path = "tests", format = "sdist" }, +- { path = "CHANGES.rst", format = "sdist" }, +- { path = "CONTRIBUTION.md", format = "sdist" }, +- { path = "example*.py", format = "sdist" }, +- { path = "doc", format = "sdist" }, +-] + + [tool.poetry.dependencies] + python = ">=3.8,<4.0" diff --git a/SPECS/python-pytest-httpserver.spec b/SPECS/python-pytest-httpserver.spec new file mode 100644 index 0000000..c63cd4a --- /dev/null +++ b/SPECS/python-pytest-httpserver.spec @@ -0,0 +1,94 @@ +%global srcname pytest-httpserver + +%global desc %{expand: \ +This library is designed to help to test http clients without contacting +the real http server. In other words, it is a fake http server which is +accessible via localhost can be started with the pre-defined expected +http requests and their responses.} + +Name: python-%{srcname} +Version: 1.0.8 +Release: 5%{?dist} +Summary: HTTP server for pytest + +License: MIT +URL: https://github.com/csernazs/pytest-httpserver +Source0: %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz + +Patch0: pyproject.patch + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-pytest +BuildRequires: python3-requests +BuildRequires: python3-toml +BuildRequires: pyproject-rpm-macros + +%description +%{desc} + +%package -n python3-%{srcname} +Summary: %{summary} + +%description -n python3-%{srcname} %desc + +%prep +%autosetup -p1 -n %{srcname}-%{version} + +# Remove unnecessary dependencies +sed -i '/flake8/d' pyproject.toml +sed -i '/pytest-cov/d' pyproject.toml +sed -i '/coverage/d' pyproject.toml +sed -i '/mypy/d' pyproject.toml +sed -i '/types-requests/d' pyproject.toml + +%generate_buildrequires +%pyproject_buildrequires -x test + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files pytest_httpserver + +%check +%pytest + +%files -n python3-%{srcname} -f %{pyproject_files} +%doc README.md CHANGES.rst CONTRIBUTION.md + +%changelog +* Sun Jan 05 2025 Arkady L. Shane - 1.0.8-5 +- Rebuilt for MSVSphere 10 + +* Fri Jul 19 2024 Fedora Release Engineering - 1.0.8-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild + +* Sat Jun 08 2024 Python Maint - 1.0.8-4 +- Rebuilt for Python 3.13 + +* Fri Jan 26 2024 Fedora Release Engineering - 1.0.8-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Mon Jan 22 2024 Fedora Release Engineering - 1.0.8-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild + +* Thu Dec 07 2023 Frantisek Zatloukal - 1.0.8-1 +- pytest-httpserver 1.0.8 + +* Fri Jul 21 2023 Fedora Release Engineering - 1.0.4-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild + +* Thu Jun 22 2023 Python Maint - 1.0.4-4 +- Rebuilt for Python 3.12 + +* Fri Jan 20 2023 Fedora Release Engineering - 1.0.4-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild + +* Fri Jul 22 2022 Fedora Release Engineering - 1.0.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Thu Jun 30 2022 Ali Erdinc Koroglu - 1.0.4-1 +- Initial package