[packages/python3-pytest-xprocess] - python-pytest-xprocess.spec updated to 0.23.0 for python 3.8+

qboosh qboosh at pld-linux.org
Thu Oct 12 22:31:14 CEST 2023


commit 179c23d16a47e0d0af85d35a62435746a9554dac
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Oct 12 22:33:11 2023 +0200

    - python-pytest-xprocess.spec updated to 0.23.0 for python 3.8+

 python-pytest-xprocess.spec  | 118 -------------------------------------------
 python3-pytest-xprocess.spec |  92 +++++++++++++++++++++++++++++++++
 2 files changed, 92 insertions(+), 118 deletions(-)
---
diff --git a/python-pytest-xprocess.spec b/python-pytest-xprocess.spec
deleted file mode 100644
index add02d1..0000000
--- a/python-pytest-xprocess.spec
+++ /dev/null
@@ -1,118 +0,0 @@
-#
-# Conditional build:
-%bcond_without	python2 # CPython 2.x module
-%bcond_without	python3 # CPython 3.x module
-
-Summary:	A pytest plugin for managing processes across test runs
-Summary(pl.UTF-8):	Wtyczka pytesta do zarządzania procesami między uruchomieniami testów
-Name:		python-pytest-xprocess
-# keep 0.14.x here for python2 support
-Version:	0.14.0
-Release:	1
-License:	MIT
-Group:		Libraries/Python
-#Source0Download: https://pypi.org/simple/pytest-xprocess/
-Source0:	https://files.pythonhosted.org/packages/source/p/pytest-xprocess/pytest-xprocess-%{version}.tar.gz
-# Source0-md5:	e9557702d10022fd39fd9d5bee56bc80
-URL:		https://pypi.org/project/pytest-xprocess/
-%if %{with python2}
-BuildRequires:	python-modules >= 1:2.7
-BuildRequires:	python-setuptools
-BuildRequires:	python-setuptools_scm
-%endif
-%if %{with python3}
-BuildRequires:	python3-modules >= 1:3.5
-BuildRequires:	python3-setuptools
-BuildRequires:	python3-setuptools_scm
-%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
-pytest-xprocess provides a "xprocess" fixture which helps you to
-ensure that one or more longer-running processes are present for your
-tests. You can use it to start and pre-configure test-specific
-databases (Postgres, Couchdb, ...).
-
-%description -l pl.UTF-8
-pytest-xprocess udostępnia wyposarzenie "xprocess", pomagający
-zapewnić, że istnieje jeden lub więcej dłużej działających procesów w
-trakcie testów. Można ich użyć do uruchomienia i wstępnej konfiguracji
-bez danych specyficznych dla testów (Postgres, Couchdb...).
-
-%package -n python3-pytest-xprocess
-Summary:	A pytest plugin for managing processes across test runs
-Summary(pl.UTF-8):	Wtyczka pytesta do zarządzania procesami między uruchomieniami testów
-Group:		Libraries/Python
-Requires:	python3-modules >= 1:3.5
-
-%description -n python3-pytest-xprocess
-pytest-xprocess provides a "xprocess" fixture which helps you to
-ensure that one or more longer-running processes are present for your
-tests. You can use it to start and pre-configure test-specific
-databases (Postgres, Couchdb, ...).
-
-%description -n python3-pytest-xprocess -l pl.UTF-8
-pytest-xprocess udostępnia wyposarzenie "xprocess", pomagający
-zapewnić, że istnieje jeden lub więcej dłużej działających procesów w
-trakcie testów. Można ich użyć do uruchomienia i wstępnej konfiguracji
-bez danych specyficznych dla testów (Postgres, Couchdb...).
-
-%prep
-%setup -q -n pytest-xprocess-%{version}
-
-%build
-%if %{with python2}
-%py_build
-%endif
-
-%if %{with python3}
-%py3_build
-%endif
-
-%install
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%py_install
-
-%py_postclean
-
-install -d $RPM_BUILD_ROOT%{_examplesdir}/python-pytest-xprocess-%{version}
-cp -p example/*.py $RPM_BUILD_ROOT%{_examplesdir}/python-pytest-xprocess-%{version}
-%endif
-
-%if %{with python3}
-%py3_install
-
-install -d $RPM_BUILD_ROOT%{_examplesdir}/python3-pytest-xprocess-%{version}
-cp -p example/*.py $RPM_BUILD_ROOT%{_examplesdir}/python3-pytest-xprocess-%{version}
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc CHANGELOG.rst LICENSE README.rst
-%{py_sitescriptdir}/pytest_xprocess.py[co]
-%{py_sitescriptdir}/xprocess.py[co]
-%{py_sitescriptdir}/pytest_xprocess-%{version}-py*.egg-info
-%{_examplesdir}/python-pytest-xprocess-%{version}
-%endif
-
-%if %{with python3}
-%files -n python3-pytest-xprocess
-%defattr(644,root,root,755)
-%doc CHANGELOG.rst LICENSE README.rst
-%{py3_sitescriptdir}/pytest_xprocess.py
-%{py3_sitescriptdir}/xprocess.py
-%{py3_sitescriptdir}/__pycache__/pytest_xprocess.cpython-*.py[co]
-%{py3_sitescriptdir}/__pycache__/xprocess.cpython-*.py[co]
-%{py3_sitescriptdir}/pytest_xprocess-%{version}-py*.egg-info
-%{_examplesdir}/python3-pytest-xprocess-%{version}
-%endif
diff --git a/python3-pytest-xprocess.spec b/python3-pytest-xprocess.spec
new file mode 100644
index 0000000..49cc012
--- /dev/null
+++ b/python3-pytest-xprocess.spec
@@ -0,0 +1,92 @@
+#
+# Conditional build:
+%bcond_without	doc	# Sphinx documentation
+%bcond_without	tests	# unit tests
+
+Summary:	A pytest plugin for managing processes across test runs
+Summary(pl.UTF-8):	Wtyczka pytesta do zarządzania procesami między uruchomieniami testów
+Name:		python3-pytest-xprocess
+Version:	0.23.0
+Release:	1
+License:	MIT
+Group:		Libraries/Python
+#Source0Download: https://pypi.org/simple/pytest-xprocess/
+Source0:	https://files.pythonhosted.org/packages/source/p/pytest-xprocess/pytest-xprocess-%{version}.tar.gz
+# Source0-md5:	42aa2f309e450ea1379039b62e1f6eea
+URL:		https://pypi.org/project/pytest-xprocess/
+BuildRequires:	python3-modules >= 1:3.8
+BuildRequires:	python3-setuptools >= 1:45.0
+BuildRequires:	python3-setuptools_scm >= 6.2.3
+%if %{with tests}
+BuildRequires:	python3-psutil
+BuildRequires:	python3-pytest >= 2.8
+%endif
+BuildRequires:	rpm-pythonprov
+BuildRequires:	rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires:	sphinx-pdg-3
+%endif
+Requires:	python3-modules >= 1:3.8
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+pytest-xprocess provides a "xprocess" fixture which helps you to
+ensure that one or more longer-running processes are present for your
+tests. You can use it to start and pre-configure test-specific
+databases (Postgres, Couchdb, ...).
+
+%description -l pl.UTF-8
+pytest-xprocess udostępnia wyposarzenie "xprocess", pomagający
+zapewnić, że istnieje jeden lub więcej dłużej działających procesów w
+trakcie testów. Można ich użyć do uruchomienia i wstępnej konfiguracji
+bez danych specyficznych dla testów (Postgres, Couchdb...).
+
+%package apidocs
+Summary:	API documentation for Python pytest_xprocess module
+Summary(pl.UTF-8):	Dokumentacja API modułu Pythona pytest_xprocess
+Group:		Documentation
+
+%description apidocs
+API documentation for Python pytest_xprocess module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona pytest_xprocess.
+
+%prep
+%setup -q -n pytest-xprocess-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTEST_PLUGINS="xprocess.pytest_xprocess" \
+PYTHONPATH=$(pwd) \
+%{__python3} -m pytest tests
+%endif
+
+%if %{with doc}
+%{__make} -C docs html \
+	SPHINXBUILD=sphinx-build-3
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc CHANGELOG.rst LICENSE README.rst
+%{py3_sitescriptdir}/xprocess
+%{py3_sitescriptdir}/pytest_xprocess-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/build/html/{_static,*.html,*.js}
+%endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-xprocess.git/commitdiff/179c23d16a47e0d0af85d35a62435746a9554dac



More information about the pld-cvs-commit mailing list