Hello community, here is the log from the commit of package python-pytest-forked for openSUSE:Factory checked in at 2019-11-22 10:19:56 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytest-forked (Old) and /work/SRC/openSUSE:Factory/.python-pytest-forked.new.26869 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-forked" Fri Nov 22 10:19:56 2019 rev:3 rq:745443 version:1.1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytest-forked/python-pytest-forked.changes 2019-02-26 22:14:36.150228062 +0100 +++ /work/SRC/openSUSE:Factory/.python-pytest-forked.new.26869/python-pytest-forked.changes 2019-11-22 10:19:58.981352298 +0100 @@ -1,0 +2,6 @@ +Tue Nov 5 10:56:22 UTC 2019 - Tomáš Chvátal <tchva...@suse.com> + +- Update to 1.1.3: + * New marker `pytest.mark.forked` to fork before individual tests. + +------------------------------------------------------------------- Old: ---- pytest-forked-1.0.2.tar.gz New: ---- pytest-forked-1.1.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytest-forked.spec ++++++ --- /var/tmp/diff_new_pack.Wsg1Ij/_old 2019-11-22 10:19:59.525352157 +0100 +++ /var/tmp/diff_new_pack.Wsg1Ij/_new 2019-11-22 10:19:59.525352157 +0100 @@ -18,11 +18,10 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pytest-forked -Version: 1.0.2 +Version: 1.1.3 Release: 0 Summary: Run each test in a forked subprocess License: MIT -Group: Development/Languages/Python URL: https://github.com/pytest-dev/pytest-forked Source: https://files.pythonhosted.org/packages/source/p/pytest-forked/pytest-forked-%{version}.tar.gz BuildRequires: %{python_module pytest >= 3.1.0} @@ -48,7 +47,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -v +%pytest %files %{python_files} %license LICENSE ++++++ pytest-forked-1.0.2.tar.gz -> pytest-forked-1.1.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.0.2/.travis.yml new/pytest-forked-1.1.3/.travis.yml --- old/pytest-forked-1.0.2/.travis.yml 2019-02-14 17:13:20.000000000 +0100 +++ new/pytest-forked-1.1.3/.travis.yml 2019-10-22 18:12:49.000000000 +0200 @@ -4,6 +4,7 @@ - '2.7' - '3.5' - '3.6' +- '3.7' cache: pip install: pip install -U tox setuptools_scm env: @@ -13,10 +14,22 @@ - TOXENV=py-pytestlatest matrix: include: - - python: '3.6' + - python: '3.7' env: TOXENV=flakes - - python: '3.6' + - python: '3.7' env: TOXENV=readme + + # piggyback on existing build for releases + deploy: + provider: pypi + user: nicoddemus + password: + secure: KJgDEXYiKYNiV1Ef0kCYrJr3LvIUrZbEnwc/x5eTXpLHZCLmiJ33tbYDRLzX+uWcvqXpFjVjEtWHOOfhP9sRPl4jbmM0MJrNmO4mqTSCzN1VnVx9fPJXpD74rtjLxMsZNrHjqEWWjeqsqDryGID7O3zm0f/p/FqKEYKBCffhc2AyJN4Bb1d564JLwM1dZUPGAWU5spkDB/0gSvTGtQ1gxl5xtEAwMX59gWzwJ96kj5qKGPBXdQLWPkhXz45/5XQUdxjwJjyRJws5EoCzOD+E/C+Tcc3NKCkksZUGejt7cBpU+rFpqzGSUDv5KBsQoXELElC2yXxFJhqrfoTFkxZqFc4qSvnYRlOlx9M2FPsUqnOwS5RlEgGmadjN4CJe0mlxS+/Yx1V1aDSnaFFCWLsApMDbKgoozB6NPQvSraOvRF28J7CsTSFCvbI1dR1lEYhZVc5XTwt0mI/0w4iXkvGNMJ0Sb0grqj7rPEPiuf1RU/Y9CNtR/yhez02zbYjIzgERUB6Sq3YGg1q2cefkvoiq3eWWV4vf8e1rXVdvs/UdJnj8zTwMbiaWh13CCu+Z8bTEKgaiUAOaTs0y1mxPg4dRGJdVCPceUn3pMeeTl2XBxWr9CkMhDY06IMLd2PmyYfVYIWUkssT235ALZ5kPdk1TmiqmtbKyd+pAga1IWtFbOCY= + on: + tags: true + repo: pytest-dev/pytest-forked + distributions: sdist bdist_wheel + script: tox notifications: irc: @@ -27,12 +40,3 @@ skip_join: true email: - pytest-com...@python.org -deploy: - provider: pypi - user: nicoddemus - password: - secure: KJgDEXYiKYNiV1Ef0kCYrJr3LvIUrZbEnwc/x5eTXpLHZCLmiJ33tbYDRLzX+uWcvqXpFjVjEtWHOOfhP9sRPl4jbmM0MJrNmO4mqTSCzN1VnVx9fPJXpD74rtjLxMsZNrHjqEWWjeqsqDryGID7O3zm0f/p/FqKEYKBCffhc2AyJN4Bb1d564JLwM1dZUPGAWU5spkDB/0gSvTGtQ1gxl5xtEAwMX59gWzwJ96kj5qKGPBXdQLWPkhXz45/5XQUdxjwJjyRJws5EoCzOD+E/C+Tcc3NKCkksZUGejt7cBpU+rFpqzGSUDv5KBsQoXELElC2yXxFJhqrfoTFkxZqFc4qSvnYRlOlx9M2FPsUqnOwS5RlEgGmadjN4CJe0mlxS+/Yx1V1aDSnaFFCWLsApMDbKgoozB6NPQvSraOvRF28J7CsTSFCvbI1dR1lEYhZVc5XTwt0mI/0w4iXkvGNMJ0Sb0grqj7rPEPiuf1RU/Y9CNtR/yhez02zbYjIzgERUB6Sq3YGg1q2cefkvoiq3eWWV4vf8e1rXVdvs/UdJnj8zTwMbiaWh13CCu+Z8bTEKgaiUAOaTs0y1mxPg4dRGJdVCPceUn3pMeeTl2XBxWr9CkMhDY06IMLd2PmyYfVYIWUkssT235ALZ5kPdk1TmiqmtbKyd+pAga1IWtFbOCY= - on: - tags: true - distributions: sdist bdist_wheel - repo: pytest-dev/pytest-forked diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.0.2/CHANGELOG new/pytest-forked-1.1.3/CHANGELOG --- old/pytest-forked-1.0.2/CHANGELOG 2019-02-14 17:13:20.000000000 +0100 +++ new/pytest-forked-1.1.3/CHANGELOG 2019-10-22 18:12:49.000000000 +0200 @@ -1,3 +1,23 @@ +v1.1.3 +====== + +* Another dummy release to sort out missing wheels (hopefully). + +v1.1.2 +====== + +* Another dummy release to sort out missing wheels (hopefully). + +v1.1.1 +====== + +* Dummy release to sort out CI issues. + +v1.1.0 +====== + +* New marker `pytest.mark.forked` to fork before individual tests. + v1.0.2 ====== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.0.2/MANIFEST.in new/pytest-forked-1.1.3/MANIFEST.in --- old/pytest-forked-1.0.2/MANIFEST.in 2019-02-14 17:13:20.000000000 +0100 +++ new/pytest-forked-1.1.3/MANIFEST.in 2019-10-22 18:12:49.000000000 +0200 @@ -1,5 +1,6 @@ include CHANGELOG include LICENSE +include pyproject.toml include README.txt include setup.py include tox.ini diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.0.2/PKG-INFO new/pytest-forked-1.1.3/PKG-INFO --- old/pytest-forked-1.0.2/PKG-INFO 2019-02-14 17:13:55.000000000 +0100 +++ new/pytest-forked-1.1.3/PKG-INFO 2019-10-22 18:13:20.000000000 +0200 @@ -1,6 +1,6 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: pytest-forked -Version: 1.0.2 +Version: 1.1.3 Summary: run tests in isolated forked subprocesses Home-page: https://github.com/pytest-dev/pytest-forked Author: pytest-dev @@ -43,19 +43,29 @@ with tests crashing the process. For this case you may use the boxing options:: - py.test --forked + pytest --forked which will run each test in a subprocess and will report if a test crashed the process. You can also combine this option with running multiple processes via pytest-xdist to speed up the test run and use your CPU cores:: - py.test -n3 --forked + pytest -n3 --forked this would run 3 testing subprocesses in parallel which each create new forked subprocesses for each test. + You can also fork for individual tests:: + + @pytest.mark.forked + def test_with_leaky_state(): + run_some_monkey_patches() + + + This test will be unconditionally boxed, regardless of CLI flag. + + .. _`pytest-forked repository`: https://github.com/pytest-dev/pytest-forked Platform: linux @@ -71,4 +81,10 @@ Classifier: Topic :: Utilities Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 +Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.4 +Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 +Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.0.2/README.rst new/pytest-forked-1.1.3/README.rst --- old/pytest-forked-1.0.2/README.rst 2019-02-14 17:13:20.000000000 +0100 +++ new/pytest-forked-1.1.3/README.rst 2019-10-22 18:12:49.000000000 +0200 @@ -35,17 +35,27 @@ with tests crashing the process. For this case you may use the boxing options:: - py.test --forked + pytest --forked which will run each test in a subprocess and will report if a test crashed the process. You can also combine this option with running multiple processes via pytest-xdist to speed up the test run and use your CPU cores:: - py.test -n3 --forked + pytest -n3 --forked this would run 3 testing subprocesses in parallel which each create new forked subprocesses for each test. +You can also fork for individual tests:: + + @pytest.mark.forked + def test_with_leaky_state(): + run_some_monkey_patches() + + +This test will be unconditionally boxed, regardless of CLI flag. + + .. _`pytest-forked repository`: https://github.com/pytest-dev/pytest-forked diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.0.2/example/boxed.txt new/pytest-forked-1.1.3/example/boxed.txt --- old/pytest-forked-1.0.2/example/boxed.txt 2019-02-14 17:13:20.000000000 +0100 +++ new/pytest-forked-1.1.3/example/boxed.txt 2019-10-22 18:12:49.000000000 +0200 @@ -19,7 +19,7 @@ If you run this with:: - $ py.test --forked + $ pytest --forked =========================== test session starts ============================ platform linux2 -- Python 2.7.3 -- pytest-2.3.0.dev8 plugins: xdist, bugzilla, cache, oejskit, cli, pep8, cov @@ -40,7 +40,7 @@ by lower-case ``f`` and the respective failure summary. You can also use the xdist-provided parallelization feature to speed up your testing:: - $ py.test --forked -n3 + $ pytest --forked -n3 =========================== test session starts ============================ platform linux2 -- Python 2.7.3 -- pytest-2.3.0.dev8 plugins: xdist, bugzilla, cache, oejskit, cli, pep8, cov diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.0.2/pyproject.toml new/pytest-forked-1.1.3/pyproject.toml --- old/pytest-forked-1.0.2/pyproject.toml 1970-01-01 01:00:00.000000000 +0100 +++ new/pytest-forked-1.1.3/pyproject.toml 2019-10-22 18:12:49.000000000 +0200 @@ -0,0 +1,3 @@ +[build-system] +requires = ['setuptools ~= 41.4', 'setuptools_scm ~= 3.3', 'wheel ~= 0.33.6'] +build-backend = 'setuptools.build_meta' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.0.2/setup.py new/pytest-forked-1.1.3/setup.py --- old/pytest-forked-1.0.2/setup.py 2019-02-14 17:13:20.000000000 +0100 +++ new/pytest-forked-1.1.3/setup.py 2019-10-22 18:12:49.000000000 +0200 @@ -20,6 +20,7 @@ zip_safe=False, install_requires=['pytest>=3.1.0'], setup_requires=['setuptools_scm'], + python_requires='>=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*', classifiers=[ 'Development Status :: 7 - Inactive', 'Framework :: Pytest', @@ -32,6 +33,11 @@ 'Topic :: Utilities', 'Programming Language :: Python', 'Programming Language :: Python :: 2', + 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', + 'Programming Language :: Python :: 3.4', + 'Programming Language :: Python :: 3.5', + 'Programming Language :: Python :: 3.6', + 'Programming Language :: Python :: 3.7', ], ) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.0.2/src/pytest_forked/__init__.py new/pytest-forked-1.1.3/src/pytest_forked/__init__.py --- old/pytest-forked-1.0.2/src/pytest_forked/__init__.py 2019-02-14 17:13:20.000000000 +0100 +++ new/pytest-forked-1.1.3/src/pytest_forked/__init__.py 2019-10-22 18:12:49.000000000 +0200 @@ -29,9 +29,16 @@ help="box each test run in a separate process (unix)") +def pytest_load_initial_conftests(early_config, parser, args): + early_config.addinivalue_line( + "markers", + "forked: Always fork for this test.", + ) + + @pytest.mark.tryfirst def pytest_runtest_protocol(item): - if item.config.getvalue("forked"): + if item.config.getvalue("forked") or item.get_closest_marker("forked"): reports = forked_run_report(item) for rep in reports: item.ihook.pytest_runtest_logreport(report=rep) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.0.2/src/pytest_forked.egg-info/PKG-INFO new/pytest-forked-1.1.3/src/pytest_forked.egg-info/PKG-INFO --- old/pytest-forked-1.0.2/src/pytest_forked.egg-info/PKG-INFO 2019-02-14 17:13:55.000000000 +0100 +++ new/pytest-forked-1.1.3/src/pytest_forked.egg-info/PKG-INFO 2019-10-22 18:13:20.000000000 +0200 @@ -1,6 +1,6 @@ -Metadata-Version: 1.1 +Metadata-Version: 1.2 Name: pytest-forked -Version: 1.0.2 +Version: 1.1.3 Summary: run tests in isolated forked subprocesses Home-page: https://github.com/pytest-dev/pytest-forked Author: pytest-dev @@ -43,19 +43,29 @@ with tests crashing the process. For this case you may use the boxing options:: - py.test --forked + pytest --forked which will run each test in a subprocess and will report if a test crashed the process. You can also combine this option with running multiple processes via pytest-xdist to speed up the test run and use your CPU cores:: - py.test -n3 --forked + pytest -n3 --forked this would run 3 testing subprocesses in parallel which each create new forked subprocesses for each test. + You can also fork for individual tests:: + + @pytest.mark.forked + def test_with_leaky_state(): + run_some_monkey_patches() + + + This test will be unconditionally boxed, regardless of CLI flag. + + .. _`pytest-forked repository`: https://github.com/pytest-dev/pytest-forked Platform: linux @@ -71,4 +81,10 @@ Classifier: Topic :: Utilities Classifier: Programming Language :: Python Classifier: Programming Language :: Python :: 2 +Classifier: Programming Language :: Python :: 2.7 Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3.4 +Classifier: Programming Language :: Python :: 3.5 +Classifier: Programming Language :: Python :: 3.6 +Classifier: Programming Language :: Python :: 3.7 +Requires-Python: >=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.* diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.0.2/src/pytest_forked.egg-info/SOURCES.txt new/pytest-forked-1.1.3/src/pytest_forked.egg-info/SOURCES.txt --- old/pytest-forked-1.0.2/src/pytest_forked.egg-info/SOURCES.txt 2019-02-14 17:13:55.000000000 +0100 +++ new/pytest-forked-1.1.3/src/pytest_forked.egg-info/SOURCES.txt 2019-10-22 18:13:20.000000000 +0200 @@ -5,6 +5,7 @@ MANIFEST.in README.rst appveyor.yml +pyproject.toml setup.cfg setup.py tox.ini diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.0.2/testing/test_boxed.py new/pytest-forked-1.1.3/testing/test_boxed.py --- old/pytest-forked-1.0.2/testing/test_boxed.py 2019-02-14 17:13:20.000000000 +0100 +++ new/pytest-forked-1.1.3/testing/test_boxed.py 2019-10-22 18:12:49.000000000 +0200 @@ -20,6 +20,23 @@ @needsfork +def test_functional_boxed_per_test(testdir): + p1 = testdir.makepyfile(""" + import os + import pytest + + @pytest.mark.forked + def test_function(): + os.kill(os.getpid(), 15) + """) + result = testdir.runpytest(p1) + result.stdout.fnmatch_lines([ + "*CRASHED*", + "*1 failed*" + ]) + + +@needsfork @pytest.mark.parametrize("capmode", [ "no", pytest.param("sys", marks=pytest.mark.xfail(reason="capture cleanup needed")), diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-forked-1.0.2/tox.ini new/pytest-forked-1.1.3/tox.ini --- old/pytest-forked-1.0.2/tox.ini 2019-02-14 17:13:20.000000000 +0100 +++ new/pytest-forked-1.1.3/tox.ini 2019-10-22 18:12:49.000000000 +0200 @@ -1,5 +1,7 @@ [tox] # if you change the envlist, please update .travis.yml file as well +minversion = 3.7.0 +isolated_build = true envlist= py{27,35,36}-pytest{31,40,latest} flakes @@ -15,7 +17,7 @@ pytestlatest: pytest platform=linux|darwin commands= - py.test {posargs} + pytest {posargs} [testenv:flakes] changedir=