[packages/python3-scripttest] - python-scripttest.spec updated to 2.0.post1 for python 3.6+
qboosh
qboosh at pld-linux.org
Sun Nov 2 20:50:45 CET 2025
commit 9285207a88a87e9fb2ee36c68f5f545f0bc62288
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date: Sun Nov 2 20:50:43 2025 +0100
- python-scripttest.spec updated to 2.0.post1 for python 3.6+
python-scripttest.spec | 115 ------------------------------------------------
python3-scripttest.spec | 93 +++++++++++++++++++++++++++++++++++++++
2 files changed, 93 insertions(+), 115 deletions(-)
---
diff --git a/python-scripttest.spec b/python-scripttest.spec
deleted file mode 100644
index fe4b11c..0000000
--- a/python-scripttest.spec
+++ /dev/null
@@ -1,115 +0,0 @@
-#
-# Conditional build:
-%bcond_with tests # unit tests (not included in sdist)
-%bcond_without python2 # CPython 2.x module
-%bcond_without python3 # CPython 3.x module
-
-%define module scripttest
-Summary: Helper to test command-line scripts
-Summary(pl.UTF-8): Moduł pomocniczy do testowania skryptów linii poleceń
-Name: python-%{module}
-Version: 1.3
-Release: 11
-License: MIT
-Group: Libraries/Python
-Source0: https://files.pythonhosted.org/packages/source/s/scripttest/%{module}-%{version}.tar.gz
-# Source0-md5: 1d1c5117ccfc7b5961cae6c1020c0848
-URL: https://pypi.org/project/scripttest/
-%if %{with python2}
-BuildRequires: python-modules >= 1:2.5
-BuildRequires: python-setuptools
-%if %{with tests}
-BuildRequires: python-pytest
-%endif
-%endif
-%if %{with python3}
-BuildRequires: python3-modules >= 1:3.2
-BuildRequires: python3-setuptools
-%if %{with tests}
-BuildRequires: python-pytest
-%endif
-%endif
-BuildRequires: rpm-pythonprov
-BuildRequires: rpmbuild(macros) >= 1.714
-Requires: python-modules >= 1:2.5
-BuildArch: noarch
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-
-%description
-scripttest is a library to help you test your interactive command-line
-applications.
-
-With it you can easily run the command (in a subprocess) and see the
-output (stdout, stderr) and any file modifications.
-
-%description -l pl.UTF-8
-scripttest to biblioteka pomagająca testować interaktywne aplikacje
-linii poleceń.
-
-Przy jej użyciu mozna łatwo uruchamiać polecenia (w podprocesie) i
-sprawdzać wyjście (stdout, stderr) oraz zmiany dowolnych plików.
-
-%package -n python3-%{module}
-Summary: Helper to test command-line scripts
-Summary(pl.UTF-8): Moduł pomocniczy do testowania skryptów linii poleceń
-Group: Libraries/Python
-Requires: python3-modules >= 1:3.2
-
-%description -n python3-%{module}
-scripttest is a library to help you test your interactive command-line
-applications.
-
-With it you can easily run the command (in a subprocess) and see the
-output (stdout, stderr) and any file modifications.
-
-%description -n python3-%{module} -l pl.UTF-8
-scripttest to biblioteka pomagająca testować interaktywne aplikacje
-linii poleceń.
-
-Przy jej użyciu mozna łatwo uruchamiać polecenia (w podprocesie) i
-sprawdzać wyjście (stdout, stderr) oraz zmiany dowolnych plików.
-
-%prep
-%setup -q -n %{module}-%{version}
-
-%build
-%if %{with python2}
-%py_build %{?with_tests:test}
-%endif
-
-%if %{with python3}
-%py3_build %{?with_tests:test}
-%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}/scripttest.py[co]
-%{py_sitescriptdir}/scripttest-%{version}-py*.egg-info
-%endif
-
-%if %{with python3}
-%files -n python3-%{module}
-%defattr(644,root,root,755)
-%doc README.rst
-%{py3_sitescriptdir}/scripttest.py
-%{py3_sitescriptdir}/__pycache__/scripttest.cpython-*.py[co]
-%{py3_sitescriptdir}/scripttest-%{version}-py*.egg-info
-%endif
diff --git a/python3-scripttest.spec b/python3-scripttest.spec
new file mode 100644
index 0000000..f659303
--- /dev/null
+++ b/python3-scripttest.spec
@@ -0,0 +1,93 @@
+#
+# Conditional build:
+%bcond_without doc # Sphinx documentation
+%bcond_without tests # unit tests
+
+%define module scripttest
+Summary: Helper to test command-line scripts
+Summary(pl.UTF-8): Moduł pomocniczy do testowania skryptów linii poleceń
+Name: python3-%{module}
+Version: 2.0.post1
+Release: 1
+License: MIT
+Group: Libraries/Python
+#Source0Download: https://pypi.org/simple/scripttest/
+Source0: https://files.pythonhosted.org/packages/source/s/scripttest/%{module}-%{version}.tar.gz
+# Source0-md5: 23949cd8af37c704444e29139019cb13
+Patch0: %{module}-intersphinx.patch
+URL: https://pypi.org/project/scripttest/
+BuildRequires: python3-modules >= 1:3.6
+BuildRequires: python3-setuptools
+%if %{with tests}
+BuildRequires: python-pytest
+%endif
+BuildRequires: rpm-pythonprov
+BuildRequires: rpmbuild(macros) >= 1.714
+%if %{with doc}
+BuildRequires: sphinx-pdg-3
+%endif
+Requires: python3-modules >= 1:3.6
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+scripttest is a library to help you test your interactive command-line
+applications.
+
+With it you can easily run the command (in a subprocess) and see the
+output (stdout, stderr) and any file modifications.
+
+%description -l pl.UTF-8
+scripttest to biblioteka pomagająca testować interaktywne aplikacje
+linii poleceń.
+
+Przy jej użyciu mozna łatwo uruchamiać polecenia (w podprocesie) i
+sprawdzać wyjście (stdout, stderr) oraz zmiany dowolnych plików.
+
+%package apidocs
+Summary: API documentation for Python scripttest module
+Summary(pl.UTF-8): Dokumentacja API modułu Pythona scripttest
+Group: Documentation
+
+%description apidocs
+API documentation for Python scripttest module.
+
+%description apidocs -l pl.UTF-8
+Dokumentacja API modułu Pythona scripttest.
+
+%prep
+%setup -q -n %{module}-%{version}
+%patch -P0 -p1
+
+%build
+%py3_build
+
+%if %{with tests}
+PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
+%{__python3} -m pytest tests
+%endif
+
+%if %{with doc}
+sphinx-build-3 -b html docs docs/_build/html
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%py3_install
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.rst
+%{py3_sitescriptdir}/scripttest.py
+%{py3_sitescriptdir}/__pycache__/scripttest.cpython-*.py[co]
+%{py3_sitescriptdir}/scripttest-%{version}-py*.egg-info
+
+%if %{with doc}
+%files apidocs
+%defattr(644,root,root,755)
+%doc docs/_build/html/{_modules,_static,modules,*.html,*.js}
+%endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/python3-scripttest.git/commitdiff/9285207a88a87e9fb2ee36c68f5f545f0bc62288
More information about the pld-cvs-commit
mailing list