[packages/python-pytest-easy-server: 1/2] - new
qboosh
qboosh at pld-linux.org
Sun Feb 15 14:06:56 CET 2026
commit 44956694382abb9d8e6e1bdadc0f5d3b12f26683
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Feb 15 14:06:31 2026 +0100
- new
pytest-easy-server-requirements.patch | 14 ++++
python-pytest-easy-server.spec | 134 ++++++++++++++++++++++++++++++++++
2 files changed, 148 insertions(+)
---
diff --git a/python-pytest-easy-server.spec b/python-pytest-easy-server.spec
new file mode 100644
index 0000000..0c5ae6b
--- /dev/null
+++ b/python-pytest-easy-server.spec
@@ -0,0 +1,134 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+%bcond_without python2 # CPython 2.x module
+%bcond_without python3 # CPython 3.x module
+
+Summary: Pytest plugin for easy testing against servers
+Summary(pl.UTF-8): Wtyczka pytesta do łatwego testowania względem serwerów
+Name: python-pytest-easy-server
+Version: 0.8.0
+Release: 1
+License: Apache v2.0
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/pytest-easy-server/
+Source0: https://files.pythonhosted.org/packages/source/p/pytest-easy-server/pytest-easy-server-%{version}.tar.gz
+# Source0-md5: 396051d7bee49d043c503f5e75655d81
+Patch0: pytest-easy-server-requirements.patch
+URL: https://pypi.org/project/pytest-easy-server/
+%if %{with python2}
+BuildRequires: python-modules >= 1:2.7
+BuildRequires: python-setuptools
+%if %{with tests}
+BuildRequires: python-PyYAML >= 5.3.1
+BuildRequires: python-easy-server >= 0.8.0
+BuildRequires: python-easy-vault >= 0.7.0
+BuildRequires: python-jsonschema >= 2.6.0
+BuildRequires: python-pluggy >= 0.7.1
+BuildRequires: python-pyrsistent >= 0.14.0
+BuildRequires: python-pytest >= 4.3.1
+BuildRequires: python-yamlloader >= 0.5.5
+%endif
+%endif
+%if %{with python3}
+BuildRequires: python3-modules >= 1:3.4
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python3-PyYAML >= 5.2
+BuildRequires: python3-easy-server >= 0.8.0
+BuildRequires: python3-easy-vault >= 0.7.0
+BuildRequires: python3-jsonschema >= 2.6.0
+BuildRequires: python3-pluggy >= 0.7.1
+BuildRequires: python3-pyrsistent >= 0.14.0
+BuildRequires: python3-pytest >= 4.3.1
+BuildRequires: python3-yamlloader >= 0.5.5
+%endif
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python-modules >= 1:2.7
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The pytest-easy-server package is a Pytest plugin that provides a
+Pytest fixture es_server that resolves to the set of servers the tests
+should run against.
+
+%description -l pl.UTF-8
+Ten pakiet to wtyczka Pytesta udostępniąjąca wyposażenie Pytesta
+es_server, które rozwija się do zbioru serwerów, na których testy
+powinny być uruchomione.
+
+%package -n python3-pytest-easy-server
+Summary: Pytest plugin for easy testing against servers
+Summary(pl.UTF-8): Wtyczka pytesta do łatwego testowania względem serwerów
+Group: Libraries/Python
+Requires: python3-modules >= 1:3.4
+
+%description -n python3-pytest-easy-server
+The pytest-easy-server package is a Pytest plugin that provides a
+Pytest fixture es_server that resolves to the set of servers the tests
+should run against.
+
+%description -n python3-pytest-easy-server -l pl.UTF-8
+Ten pakiet to wtyczka Pytesta udostępniąjąca wyposażenie Pytesta
+es_server, które rozwija się do zbioru serwerów, na których testy
+powinny być uruchomione.
+
+%prep
+%setup -q -n pytest-easy-server-%{version}
+%patch -P0 -p1
+
+%build
+%if %{with python2}
+%py_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_easy_server.plugin \
+%{__python} -m pytest tests --es-file=$(pwd)/tests/unittest/es_server.yml
+%endif
+%endif
+
+%if %{with python3}
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS=pytest_easy_server.plugin \
+%{__python3} -m pytest tests --es-file=$(pwd)/tests/unittest/es_server.yml
+%endif
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%py_install
+
+%py_postclean
+%endif
+
+%if %{with python3}
+%py3_install
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with python2}
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%{py_sitescriptdir}/pytest_easy_server
+%{py_sitescriptdir}/pytest_easy_server-%{version}-py*.egg-info
+%endif
+
+%if %{with python3}
+%files -n python3-pytest-easy-server
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/pytest_easy_server
+%{py3_sitescriptdir}/pytest_easy_server-%{version}-py*.egg-info
+%endif
diff --git a/pytest-easy-server-requirements.patch b/pytest-easy-server-requirements.patch
new file mode 100644
index 0000000..a232b7a
--- /dev/null
+++ b/pytest-easy-server-requirements.patch
@@ -0,0 +1,14 @@
+--- pytest-easy-server-0.8.0/requirements.txt.orig 2021-05-01 12:49:25.000000000 +0200
++++ pytest-easy-server-0.8.0/requirements.txt 2026-02-15 14:03:03.532932843 +0100
+@@ -44,9 +44,9 @@ jsonschema>=2.6.0
+ # pyrsistent is pulled in by jsonschema.
+ # Before its version 0.17.0, pyrsistent did not or not correctly declare its
+ # required Python versions in the package metadata.
+-# pyrsistent 0.16.0 removed support for Python 2.7.
++# pyrsistent 0.17.0 removed support for Python 2.7.
+ # pyrsistent 0.15.0 removed support for Python 3.4.
+-pyrsistent>=0.14.0,<0.16.0; python_version == '2.7'
++pyrsistent>=0.14.0,<0.17.0; python_version == '2.7'
+ pyrsistent>=0.14.0,<0.15.0; python_version == '3.4'
+ pyrsistent>=0.14.0; python_version >= '3.5'
+
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python-pytest-easy-server.git/commitdiff/646be85d13bcdf124ba216a9c8aed9099bc7e340
More information about the pld-cvs-commit
mailing list