diff --git a/.python-pytest-forked.metadata b/.python-pytest-forked.metadata new file mode 100644 index 0000000..3978ed1 --- /dev/null +++ b/.python-pytest-forked.metadata @@ -0,0 +1 @@ +a73bbca228c58ef85b19662523efc46910f7b0b5 SOURCES/pytest-forked-1.4.0.tar.gz diff --git a/SOURCES/README.md b/SOURCES/README.md new file mode 100644 index 0000000..03ea14f --- /dev/null +++ b/SOURCES/README.md @@ -0,0 +1,3 @@ +# python-pytest-forked + +The python-pytest-forked package \ No newline at end of file diff --git a/SOURCES/fix-pytest5-compatibility.patch b/SOURCES/fix-pytest5-compatibility.patch new file mode 100644 index 0000000..9b10c3b --- /dev/null +++ b/SOURCES/fix-pytest5-compatibility.patch @@ -0,0 +1,20 @@ +diff --git a/src/pytest_forked/__init__.py b/src/pytest_forked/__init__.py +index fa0600d..886c4c8 100644 +--- a/src/pytest_forked/__init__.py ++++ b/src/pytest_forked/__init__.py +@@ -71,13 +71,8 @@ def forked_run_report(item): + + + def report_process_crash(item, result): +- try: +- from _pytest.compat import getfslineno +- except ImportError: +- # pytest<4.2 +- path, lineno = item._getfslineno() +- else: +- path, lineno = getfslineno(item) ++ from _pytest._code.source import getfslineno ++ path, lineno = getfslineno(item) + info = ("%s:%s: running the test CRASHED with signal %d" % + (path, lineno, result.signal)) + from _pytest import runner diff --git a/SPECS/python-pytest-forked.spec b/SPECS/python-pytest-forked.spec new file mode 100644 index 0000000..26be77f --- /dev/null +++ b/SPECS/python-pytest-forked.spec @@ -0,0 +1,129 @@ +%global pypi_name pytest-forked + +Name: python-%{pypi_name} +Version: 1.4.0 +Release: 4%{?dist} +Summary: py.test plugin for running tests in isolated forked subprocesses + +License: MIT +URL: https://github.com/pytest-dev/pytest-forked +Source0: %{pypi_source} +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: %{py3_dist py pytest setuptools setuptools_scm} + +%global _description %{expand: +The pytest-forked plugin extends py.test by adding an option to run tests in +isolated forked subprocesses. This is useful if you have tests involving C or +C++ libraries that might crash the process. To use the plugin, simply use the +--forked argument when invoking py.test.} + +%description %_description + +%package -n python3-%{pypi_name} +Summary: %{summary} +%{?python_provide:%python_provide python3-%{pypi_name}} + +Requires: %{py3_dist py} +%description -n python3-%{pypi_name} %_description + +%prep +%autosetup -n %{pypi_name}-%{version} -p1 + +%build +%py3_build + +%install +%py3_install + +%check +%pytest + + +%files -n python3-%{pypi_name} +%doc example/boxed.txt README.rst +%license LICENSE +%{python3_sitelib}/pytest_forked* + +%changelog +* Fri Jul 22 2022 Fedora Release Engineering - 1.4.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild + +* Mon Jun 13 2022 Python Maint - 1.4.0-3 +- Rebuilt for Python 3.11 + +* Fri Jan 21 2022 Fedora Release Engineering - 1.4.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild + +* Sat Dec 11 2021 Scott Talbert - 1.4.0-1 +- Update to new upstream release (#2031175) + +* Fri Jul 23 2021 Fedora Release Engineering - 1.3.0-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild + +* Wed Jun 02 2021 Python Maint - 1.3.0-3 +- Rebuilt for Python 3.10 + +* Wed Jan 27 2021 Fedora Release Engineering - 1.3.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + +* Tue Jul 28 2020 Scott Talbert - 1.3.0-1 +- Update to new upstream release 1.3.0 (#1861096) + +* Thu Jun 25 2020 Scott Talbert - 1.2.0-1 +- Update to new upstream release 1.2.0 (#1851035) + +* Wed Jun 24 2020 Scott Talbert - 1.1.1-6 +- Modernize Python packaging; BR setuptools + +* Fri May 29 2020 Charalampos Stratakis - 1.1.1-5 +- Fix pytest 5 compatibility + +* Fri May 29 2020 Charalampos Stratakis - 1.1.1-4 +- Drop manual requires on python3-pytest to support usage with pytest4 compat package + +* Sun May 24 2020 Miro Hrončok - 1.1.1-3 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.1.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 10 2019 Scott Talbert - 1.1.1-1 +- Update to new upstream release 1.1.1 (#1760556) + +* Thu Oct 03 2019 Miro Hrončok - 1.0.2-5 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Sat Aug 17 2019 Miro Hrončok - 1.0.2-4 +- Rebuilt for Python 3.8 + +* Fri Aug 09 2019 Scott Talbert - 1.0.2-3 +- Remove Python 2 subpackages (#1739658) + +* Fri Jul 26 2019 Fedora Release Engineering - 1.0.2-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Wed Feb 20 2019 Scott Talbert - 1.0.2-1 +- New upstream release 1.0.2 + +* Sat Feb 02 2019 Fedora Release Engineering - 1.0.1-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jan 12 2019 Scott Talbert - 1.0.1-1 +- New upstream release 1.0.1 + +* Sat Jul 14 2018 Fedora Release Engineering - 0.2-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.2-4 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.2-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 17 2017 Scott Talbert - 0.2-2 +- Updated to use py[23]dist macros for BR and R + +* Thu Aug 10 2017 Scott Talbert - 0.2-1 +- Initial package.