[packages/python3-process_tests] - python-process_tests.spec updated to 3.0.0 for python 3.8+
qboosh
qboosh at pld-linux.org
Sun Jun 29 16:34:48 CEST 2025
commit 4e35d4448356b09fa54cf224f6400a09f2d35d02
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Jun 29 16:36:11 2025 +0200
- python-process_tests.spec updated to 3.0.0 for python 3.8+
python-process_tests.spec | 92 ----------------------------------------------
python3-process_tests.spec | 58 +++++++++++++++++++++++++++++
2 files changed, 58 insertions(+), 92 deletions(-)
---
diff --git a/python-process_tests.spec b/python-process_tests.spec
deleted file mode 100644
index 241bcb4..0000000
--- a/python-process_tests.spec
+++ /dev/null
@@ -1,92 +0,0 @@
-#
-# Conditional build:
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-Summary: Tools for testing processes
-Summary(pl.UTF-8): Narzędzia do testowania procesów
-Name: python-process_tests
-Version: 2.1.2
-Release: 6
-License: BSD
-Group: Libraries/Python
-#Source0Download: https://pypi.org/simple/process-tests/
-Source0: https://files.pythonhosted.org/packages/source/p/process-tests/process-tests-%{version}.tar.gz
-# Source0-md5: bd65932ebc724e53dd6a951bc106b02e
-URL: https://github.com/ionelmc/python-process-tests
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.7
-BuildRequires: python-setuptools
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.5
-BuildRequires: python3-setuptools
-%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
-Tools for testing processes.
-
-%description -l pl.UTF-8
-Narzędzia do testowania procesów.
-
-%package -n python3-process_tests
-Summary: Tools for testing processes
-Summary(pl.UTF-8): Narzędzia do testowania procesów
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.5
-
-%description -n python3-process_tests
-Tools for testing processes.
-
-%description -n python3-process_tests -l pl.UTF-8
-Narzędzia do testowania procesów.
-
-%prep
-%setup -q -n process-tests-%{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
-%endif
-
-%if %{with python3}
-%py3_install
-%endif
-
-%clean
-rm -rf $RPM_BUILD_ROOT
-
-%if %{with python2}
-%files
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py_sitescriptdir}/process_tests.py[co]
-%{py_sitescriptdir}/process_tests-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-process_tests
-%defattr(644,root,root,755)
-%doc LICENSE README.rst
-%{py3_sitescriptdir}/process_tests.py
-%{py3_sitescriptdir}/__pycache__/process_tests.cpython-*.py[co]
-%{py3_sitescriptdir}/process_tests-%{version}-py*.egg-info
-%endif
diff --git a/python3-process_tests.spec b/python3-process_tests.spec
new file mode 100644
index 0000000..d14748a
--- /dev/null
+++ b/python3-process_tests.spec
@@ -0,0 +1,58 @@
+#
+# Conditional build:
+%bcond_without tests # unit tests
+
+Summary: Tools for testing processes
+Summary(pl.UTF-8): Narzędzia do testowania procesów
+Name: python3-process_tests
+Version: 3.0.0
+Release: 1
+License: BSD
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/process-tests/
+Source0: https://files.pythonhosted.org/packages/source/p/process-tests/process-tests-%{version}.tar.gz
+# Source0-md5: f982f20a7266c3dd7e92b92a684687ba
+URL: https://github.com/ionelmc/python-process-tests
+BuildRequires: python3-modules >= 1:3.8
+BuildRequires: python3-setuptools >= 1:30.3.0
+%if %{with tests}
+BuildRequires: python3-pytest
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+Requires: python3-modules >= 1:3.8
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Tools for testing processes.
+
+%description -l pl.UTF-8
+Narzędzia do testowania procesów.
+
+%prep
+%setup -q -n process-tests-%{version}
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+PYTHONPATH=$(pwd)/src \
+%{__python3} -m pytest tests -k 'not test_socket'
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS.rst CHANGELOG.rst LICENSE README.rst
+%{py3_sitescriptdir}/process_tests.py
+%{py3_sitescriptdir}/__pycache__/process_tests.cpython-*.py[co]
+%{py3_sitescriptdir}/process_tests-%{version}-py*.egg-info
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-process_tests.git/commitdiff/4e35d4448356b09fa54cf224f6400a09f2d35d02
More information about the pld-cvs-commit
mailing list