commit 5382a1ffc69a6091ee8244666a2cb802ea21e55e72b535043a4e17a4e9849bf0 Author: Dominique Leuenberger Date: Sat May 6 16:27:21 2017 +0000 Accepting request 489999 from devel:languages:python OBS-URL: https://build.opensuse.org/request/show/489999 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest-xdist?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/pytest-xdist-1.15.0.tar.gz b/pytest-xdist-1.15.0.tar.gz new file mode 100644 index 0000000..008a104 --- /dev/null +++ b/pytest-xdist-1.15.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6238395f8bd050f9288a3b10f34330edece80f4424cf2b4204d6e7d622f0f00b +size 87799 diff --git a/python-pytest-xdist.changes b/python-pytest-xdist.changes new file mode 100644 index 0000000..296a88b --- /dev/null +++ b/python-pytest-xdist.changes @@ -0,0 +1,102 @@ +------------------------------------------------------------------- +Sat Apr 22 08:59:30 UTC 2017 - aloisio@gmx.com + +- Converted to single-spec +- Fix source URL + +------------------------------------------------------------------- +Wed Jan 18 15:03:59 UTC 2017 - hpj@urpla.net + +- fix Source URL + +------------------------------------------------------------------- +Sun Jan 15 11:45:49 UTC 2017 - hpj@urpla.net + +- Update to 1.15.0 + - new ``worker_id`` fixture, returns the id of the worker in a test or + fixture. Thanks Jared Hellman for the PR. + + - display progress during collection only when in a terminal, similar to + pytest #1397 issue. Thanks Bruno Oliveira for the PR. + + - fix internal error message when ``--maxfail`` is used (#62, #65). + Thanks Collin RM Stocks and Bryan A. Jones for reports and Bruno + Oliveira for the PR. +- exclude two tests, that fail due to too narrow requirements + +------------------------------------------------------------------- +Fri May 27 15:59:32 UTC 2016 - toddrme2178@gmail.com + +- Update to 1.14 + - new hook: ``pytest_xdist_node_collection_finished(node, ids)``, called when + a worker has finished collection. Thanks Omer Katz for the request and + Bruno Oliveira for the PR. + - fix README display on pypi + - fix #22: xdist now works if the internal tmpdir plugin is disabled. + Thanks Bruno Oliveira for the PR. + - fix #32: xdist now works if looponfail or boxed are disabled. + Thanks Bruno Oliveira for the PR. + +------------------------------------------------------------------- +Wed Oct 21 09:31:58 UTC 2015 - hpj@urpla.net + +- Update to 1.13.1: + - fix a regression -n 0 now disables xdist again + +- Update to 1.13: + - extended the tox matrix with the supported py.test versions + + - split up the plugin into 3 plugin's + to prepare the departure of boxed and looponfail. + + looponfail will be a part of core + and forked boxed will be replaced + with a more reliable primitive based on xdist + + - conforming with new pytest-2.8 behavior of returning non-zero when all + tests were skipped or deselected. + + - new "--max-slave-restart" option that can be used to control maximum + number of times pytest-xdist can restart slaves due to crashes. Thanks to + Anatoly Bubenkov for the report and Bruno Oliveira for the PR. + + - release as wheel + + - "-n" option now can be set to "auto" for automatic detection of number + of cpus in the host system. Thanks Suloev Dmitry for the PR. + +- Update to 1.12: + - fix issue594: properly report errors when the test collection + is random. Thanks Bruno Oliveira. + + - some internal test suite adaptation (to become forward + compatible with the upcoming pytest-2.8) + +- Update to 1.11: + - fix pytest/xdist issue485 (also depends on py-1.4.22): + attach stdout/stderr on --boxed processes that die. + + - fix pytest/xdist issue503: make sure that a node has usually + two items to execute to avoid scoped fixtures to be torn down + pre-maturely (fixture teardown/setup is "nextitem" sensitive). + Thanks to Andreas Pelme for bug analysis and failing test. + + - restart crashed nodes by internally refactoring setup handling + of nodes. Also includes better code documentation. + Many thanks to Floris Bruynooghe for the complete PR. + +------------------------------------------------------------------- +Fri Jun 13 12:37:55 UTC 2014 - mvyskocil@opensuse.org + +- Needs py.test 2.4.2 or higher + +------------------------------------------------------------------- +Wed Jun 11 13:47:06 UTC 2014 - mvyskocil@opensuse.org + +- Update to 1.10 + +------------------------------------------------------------------- +Sun Jan 19 17:04:33 UTC 2014 - toms@opensuse.org + +- Initial version 1.9 + diff --git a/python-pytest-xdist.spec b/python-pytest-xdist.spec new file mode 100644 index 0000000..6c7ed86 --- /dev/null +++ b/python-pytest-xdist.spec @@ -0,0 +1,96 @@ +# +# spec file for package python-pytest-xdist +# +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-pytest-xdist +Version: 1.15.0 +Release: 0 +Summary: Distributed testing and loop-on-failing for py.test +License: MIT +Group: Development/Languages/Python +Url: https://bitbucket.org/pytest-dev/pytest-xdist +Source0: https://files.pythonhosted.org/packages/source/p/pytest-xdist/pytest-xdist-1.15.0.tar.gz +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools_scm} +BuildRequires: %{python_module setuptools} +BuildRequires: dos2unix +BuildRequires: fdupes +BuildRequires: python-rpm-macros +# test requirements +#BuildRequires: %%{python_module apipkg >= 1.4} +#BuildRequires: %%{python_module execnet >= 1.1} +#BuildRequires: %%{python_module py >= 1.4.22} +#BuildRequires: %%{python_module pytest >= 2.4.2} +Requires: python-apipkg >= 1.4 +Requires: python-execnet >= 1.1 +Requires: python-py >= 1.4.22 +Requires: python-pytest >= 2.4.2 +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%python_subpackages + +%description +The `pytest-xdist`_ plugin extends py.test with some unique +test execution modes: + +* test run parallelization_: if you have multiple CPUs or hosts you can use + those for a combined test run. This allows to speed up + development or to use special resources of `remote machines`_. + +* ``--boxed``: (not available on Windows) run each test in a boxed_ + subprocess to survive ``SEGFAULTS`` or otherwise dying processes + +* ``--looponfail``: run your tests repeatedly in a subprocess. After each run + py.test waits until a file in your project changes and then re-runs + the previously failing tests. This is repeated until all tests pass + after which again a full run is performed. + +* `Multi-Platform`_ coverage: you can specify different Python interpreters + or different platforms and run tests in parallel on all of them. + +Before running tests remotely, ``py.test`` efficiently "rsyncs" your +program source code to the remote place. All test results +are reported back and displayed to your local terminal. +You may specify different Python versions and interpreters. + +%prep +%setup -q -n pytest-xdist-%{version} +# disable failing tests (we cannot deal with too narrow deps here..) +sed -i -e 's/def test_n1_import_error/def disable_n1_import_error/' \ + -e 's/def test_manytests_to_one_import_error/def disable_manytests_to_one_import_error/' \ + testing/acceptance_test.py +dos2unix README.rst + +%build +%python_build + +%install +%python_install +%python_expand %fdupes -s %{buildroot}%{$python_sitelib} + +# Tests leave BUILDROOT traces in __pycache__ and I couldn't fix it +#%%check +#%%python_expand PYTHONPATH=%%{buildroot}%{$python_sitelib} py.test-%{$python_version} -v -k"-test_n1_import_error -test_manytests_to_one_import_error" testing + +%files %{python_files} +%defattr(-,root,root,-) +%doc CHANGELOG ISSUES.txt LICENSE README.rst +%{python_sitelib}/xdist +%{python_sitelib}/pytest_xdist-%{version}-py%{python_version}.egg-info + +%changelog