Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-pytest-subtests for openSUSE:Factory checked in at 2023-03-29 23:26:20 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pytest-subtests (Old) and /work/SRC/openSUSE:Factory/.python-pytest-subtests.new.31432 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-subtests" Wed Mar 29 23:26:20 2023 rev:8 rq:1074582 version:0.10.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pytest-subtests/python-pytest-subtests.changes 2023-01-11 14:32:57.960523686 +0100 +++ /work/SRC/openSUSE:Factory/.python-pytest-subtests.new.31432/python-pytest-subtests.changes 2023-03-29 23:26:29.863258368 +0200 @@ -1,0 +2,10 @@ +Mon Mar 27 07:22:47 UTC 2023 - Dirk Müller <dmuel...@suse.com> + +- update to 0.10.0: + * Added experimental support for suppressing subtest output + dots in non-verbose mode with ``--no-subtests-shortletter`` + -- this allows the native pytest column calculations to not + be disrupted and minimizes unneeded output for large CI + systems. + +------------------------------------------------------------------- Old: ---- pytest-subtests-0.9.0.tar.gz New: ---- pytest-subtests-0.10.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pytest-subtests.spec ++++++ --- /var/tmp/diff_new_pack.HtmjwS/_old 2023-03-29 23:26:30.251260191 +0200 +++ /var/tmp/diff_new_pack.HtmjwS/_new 2023-03-29 23:26:30.255260210 +0200 @@ -17,7 +17,7 @@ Name: python-pytest-subtests -Version: 0.9.0 +Version: 0.10.0 Release: 0 Summary: Python unittest subTest() support and subtests fixture License: MIT ++++++ pytest-subtests-0.9.0.tar.gz -> pytest-subtests-0.10.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-subtests-0.9.0/.github/workflows/deploy.yml new/pytest-subtests-0.10.0/.github/workflows/deploy.yml --- old/pytest-subtests-0.9.0/.github/workflows/deploy.yml 2022-10-28 18:27:21.000000000 +0200 +++ new/pytest-subtests-0.10.0/.github/workflows/deploy.yml 2023-02-16 02:46:47.000000000 +0100 @@ -12,17 +12,17 @@ runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - name: Set up Python - uses: actions/setup-python@v1 + - uses: actions/checkout@v3 + + - name: Build and Check Package + uses: hynek/build-and-inspect-python-package@v1.5 + + - name: Download Package + uses: actions/download-artifact@v3 with: - python-version: "3.9" - - name: Install dependencies - run: | - python -m pip install --upgrade pip build - - name: Build package - run: | - python -m build + name: Packages + path: dist + - name: Publish package to PyPI uses: pypa/gh-action-pypi-publish@master with: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-subtests-0.9.0/.github/workflows/main.yml new/pytest-subtests-0.10.0/.github/workflows/main.yml --- old/pytest-subtests-0.9.0/.github/workflows/main.yml 2022-10-28 18:27:21.000000000 +0200 +++ new/pytest-subtests-0.10.0/.github/workflows/main.yml 1970-01-01 01:00:00.000000000 +0100 @@ -1,85 +0,0 @@ -name: build - -on: - push: - branches: - pull_request: - -jobs: - build: - - runs-on: ${{ matrix.os }} - - strategy: - fail-fast: false - matrix: - name: [ - "windows-py37", - "windows-py38", - "windows-py39", - "windows-py310", - "windows-py311", - - "ubuntu-py37", - "ubuntu-py38", - "ubuntu-py39", - "ubuntu-py310", - "ubuntu-py311", - ] - - include: - - name: "windows-py37" - python: "3.7" - os: windows-latest - tox_env: "py37" - - name: "windows-py38" - python: "3.8" - os: windows-latest - tox_env: "py38" - - name: "windows-py39" - python: "3.9" - os: windows-latest - tox_env: "py39" - - name: "windows-py310" - python: "3.10" - os: windows-latest - tox_env: "py310" - - name: "windows-py311" - python: "3.11-dev" - os: windows-latest - tox_env: "py311" - - - name: "ubuntu-py37" - python: "3.7" - os: ubuntu-latest - tox_env: "py37" - - name: "ubuntu-py38" - python: "3.8" - os: ubuntu-latest - tox_env: "py38" - - name: "ubuntu-py39" - python: "3.9" - os: ubuntu-latest - tox_env: "py39" - - name: "ubuntu-py310" - python: "3.10" - os: ubuntu-latest - tox_env: "py310" - - name: "ubuntu-py311" - python: "3.11-dev" - os: ubuntu-latest - tox_env: "py311" - - steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python }} - - name: Install tox - run: | - python -m pip install --upgrade pip - python -m pip install --upgrade tox setuptools - - name: Test - run: | - tox -e ${{ matrix.tox_env }} diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-subtests-0.9.0/.github/workflows/test.yml new/pytest-subtests-0.10.0/.github/workflows/test.yml --- old/pytest-subtests-0.9.0/.github/workflows/test.yml 1970-01-01 01:00:00.000000000 +0100 +++ new/pytest-subtests-0.10.0/.github/workflows/test.yml 2023-02-16 02:46:47.000000000 +0100 @@ -0,0 +1,101 @@ +name: test + +on: + push: + branches: + pull_request: + + +# Cancel running jobs for the same workflow and branch. +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + name: [ + "windows-py37", + "windows-py38", + "windows-py39", + "windows-py310", + "windows-py311", + + "ubuntu-py37", + "ubuntu-py38", + "ubuntu-py39", + "ubuntu-py310", + "ubuntu-py311", + ] + + include: + - name: "windows-py37" + python: "3.7" + os: windows-latest + tox_env: "py37" + - name: "windows-py38" + python: "3.8" + os: windows-latest + tox_env: "py38" + - name: "windows-py39" + python: "3.9" + os: windows-latest + tox_env: "py39" + - name: "windows-py310" + python: "3.10" + os: windows-latest + tox_env: "py310" + - name: "windows-py311" + python: "3.11-dev" + os: windows-latest + tox_env: "py311" + + - name: "ubuntu-py37" + python: "3.7" + os: ubuntu-latest + tox_env: "py37" + - name: "ubuntu-py38" + python: "3.8" + os: ubuntu-latest + tox_env: "py38" + - name: "ubuntu-py39" + python: "3.9" + os: ubuntu-latest + tox_env: "py39" + - name: "ubuntu-py310" + python: "3.10" + os: ubuntu-latest + tox_env: "py310" + - name: "ubuntu-py311" + python: "3.11-dev" + os: ubuntu-latest + tox_env: "py311" + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python }} + + - name: Install tox + run: | + python -m pip install --upgrade pip + python -m pip install --upgrade tox + + - name: Test + run: | + tox -e ${{ matrix.tox_env }} + + check-package: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Build and Check Package + uses: hynek/build-and-inspect-python-package@v1.5 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-subtests-0.9.0/CHANGELOG.rst new/pytest-subtests-0.10.0/CHANGELOG.rst --- old/pytest-subtests-0.9.0/CHANGELOG.rst 2022-10-28 18:27:21.000000000 +0200 +++ new/pytest-subtests-0.10.0/CHANGELOG.rst 2023-02-16 02:46:47.000000000 +0100 @@ -1,6 +1,11 @@ CHANGELOG ========= +0.10.0 (2022-02-15) +------------------- + +* Added experimental support for suppressing subtest output dots in non-verbose mode with ``--no-subtests-shortletter`` -- this allows the native pytest column calculations to not be disrupted and minimizes unneeded output for large CI systems. + 0.9.0 (2022-10-28) ------------------ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-subtests-0.9.0/PKG-INFO new/pytest-subtests-0.10.0/PKG-INFO --- old/pytest-subtests-0.9.0/PKG-INFO 2022-10-28 18:27:31.337328700 +0200 +++ new/pytest-subtests-0.10.0/PKG-INFO 2023-02-16 02:47:09.727210300 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pytest-subtests -Version: 0.9.0 +Version: 0.10.0 Summary: unittest subTest() support and subtests fixture Home-page: https://github.com/pytest-dev/pytest-subtests Author: Bruno Oliveira @@ -23,6 +23,7 @@ Classifier: Operating System :: OS Independent Classifier: License :: OSI Approved :: MIT License Requires-Python: >=3.7 +Description-Content-Type: text/x-rst License-File: LICENSE =============== @@ -42,7 +43,7 @@ :target: https://pypi.org/project/pytest-subtests :alt: Python versions -.. image:: https://github.com/pytest-dev/pytest-subtests/workflows/build/badge.svg +.. image:: https://github.com/pytest-dev/pytest-subtests/workflows/test/badge.svg :target: https://github.com/pytest-dev/pytest-subtests/actions .. image:: https://img.shields.io/badge/code%20style-black-000000.svg diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-subtests-0.9.0/README.rst new/pytest-subtests-0.10.0/README.rst --- old/pytest-subtests-0.9.0/README.rst 2022-10-28 18:27:21.000000000 +0200 +++ new/pytest-subtests-0.10.0/README.rst 2023-02-16 02:46:47.000000000 +0100 @@ -15,7 +15,7 @@ :target: https://pypi.org/project/pytest-subtests :alt: Python versions -.. image:: https://github.com/pytest-dev/pytest-subtests/workflows/build/badge.svg +.. image:: https://github.com/pytest-dev/pytest-subtests/workflows/test/badge.svg :target: https://github.com/pytest-dev/pytest-subtests/actions .. image:: https://img.shields.io/badge/code%20style-black-000000.svg diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-subtests-0.9.0/pytest_subtests.egg-info/PKG-INFO new/pytest-subtests-0.10.0/pytest_subtests.egg-info/PKG-INFO --- old/pytest-subtests-0.9.0/pytest_subtests.egg-info/PKG-INFO 2022-10-28 18:27:31.000000000 +0200 +++ new/pytest-subtests-0.10.0/pytest_subtests.egg-info/PKG-INFO 2023-02-16 02:47:09.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: pytest-subtests -Version: 0.9.0 +Version: 0.10.0 Summary: unittest subTest() support and subtests fixture Home-page: https://github.com/pytest-dev/pytest-subtests Author: Bruno Oliveira @@ -23,6 +23,7 @@ Classifier: Operating System :: OS Independent Classifier: License :: OSI Approved :: MIT License Requires-Python: >=3.7 +Description-Content-Type: text/x-rst License-File: LICENSE =============== @@ -42,7 +43,7 @@ :target: https://pypi.org/project/pytest-subtests :alt: Python versions -.. image:: https://github.com/pytest-dev/pytest-subtests/workflows/build/badge.svg +.. image:: https://github.com/pytest-dev/pytest-subtests/workflows/test/badge.svg :target: https://github.com/pytest-dev/pytest-subtests/actions .. image:: https://img.shields.io/badge/code%20style-black-000000.svg diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-subtests-0.9.0/pytest_subtests.egg-info/SOURCES.txt new/pytest-subtests-0.10.0/pytest_subtests.egg-info/SOURCES.txt --- old/pytest-subtests-0.9.0/pytest_subtests.egg-info/SOURCES.txt 2022-10-28 18:27:31.000000000 +0200 +++ new/pytest-subtests-0.10.0/pytest_subtests.egg-info/SOURCES.txt 2023-02-16 02:47:09.000000000 +0100 @@ -8,7 +8,7 @@ setup.py tox.ini .github/workflows/deploy.yml -.github/workflows/main.yml +.github/workflows/test.yml pytest_subtests.egg-info/PKG-INFO pytest_subtests.egg-info/SOURCES.txt pytest_subtests.egg-info/dependency_links.txt diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-subtests-0.9.0/pytest_subtests.egg-info/requires.txt new/pytest-subtests-0.10.0/pytest_subtests.egg-info/requires.txt --- old/pytest-subtests-0.9.0/pytest_subtests.egg-info/requires.txt 2022-10-28 18:27:31.000000000 +0200 +++ new/pytest-subtests-0.10.0/pytest_subtests.egg-info/requires.txt 2023-02-16 02:47:09.000000000 +0100 @@ -1 +1,2 @@ pytest>=7.0 +attrs>=19.2.0 diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-subtests-0.9.0/pytest_subtests.py new/pytest-subtests-0.10.0/pytest_subtests.py --- old/pytest-subtests-0.9.0/pytest_subtests.py 2022-10-28 18:27:21.000000000 +0200 +++ new/pytest-subtests-0.10.0/pytest_subtests.py 2023-02-16 02:46:47.000000000 +0100 @@ -15,6 +15,17 @@ from _pytest.unittest import TestCaseFunction +def pytest_addoption(parser): + group = parser.getgroup("subtests") + group.addoption( + "--no-subtests-shortletter", + action="store_true", + dest="no_subtests_shortletter", + default=False, + help="Disables subtest output 'dots' in non-verbose mode (EXPERIMENTAL)", + ) + + @attr.s class SubTestContext: msg = attr.ib() @@ -88,7 +99,7 @@ def pytest_unconfigure(): - if hasattr(TestCaseFunction, "_addSubTest"): + if hasattr(TestCaseFunction, "addSubTest"): del TestCaseFunction.addSubTest if hasattr(TestCaseFunction, "failfast"): del TestCaseFunction.failfast @@ -227,7 +238,7 @@ @pytest.hookimpl(tryfirst=True) -def pytest_report_teststatus(report): +def pytest_report_teststatus(report, config): if report.when != "call" or not isinstance(report, SubTestReport): return @@ -236,8 +247,11 @@ outcome = report.outcome if report.passed: - return f"subtests {outcome}", ",", "SUBPASS" + short = "" if config.option.no_subtests_shortletter else "," + return f"subtests {outcome}", short, "SUBPASS" elif report.skipped: - return outcome, "-", "SUBSKIP" + short = "" if config.option.no_subtests_shortletter else "-" + return outcome, short, "SUBSKIP" elif outcome == "failed": - return outcome, "u", "SUBFAIL" + short = "" if config.option.no_subtests_shortletter else "u" + return outcome, short, "SUBFAIL" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-subtests-0.9.0/setup.py new/pytest-subtests-0.10.0/setup.py --- old/pytest-subtests-0.9.0/setup.py 2022-10-28 18:27:21.000000000 +0200 +++ new/pytest-subtests-0.10.0/setup.py 2023-02-16 02:46:47.000000000 +0100 @@ -17,11 +17,12 @@ url="https://github.com/pytest-dev/pytest-subtests", description="unittest subTest() support and subtests fixture", long_description=long_description, + long_description_content_type="text/x-rst", py_modules=["pytest_subtests"], use_scm_version=True, setup_requires=["setuptools-scm", "setuptools>=40.0"], python_requires=">=3.7", - install_requires=["pytest>=7.0"], + install_requires=["pytest>=7.0", "attrs>=19.2.0"], classifiers=[ "Development Status :: 4 - Beta", "Framework :: Pytest", diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/pytest-subtests-0.9.0/tox.ini new/pytest-subtests-0.10.0/tox.ini --- old/pytest-subtests-0.9.0/tox.ini 2022-10-28 18:27:21.000000000 +0200 +++ new/pytest-subtests-0.10.0/tox.ini 2023-02-16 02:46:47.000000000 +0100 @@ -2,7 +2,11 @@ envlist = py37,py38,py39,py310,py311 [testenv] -passenv = USER USERNAME TRAVIS PYTEST_ADDOPTS +passenv = + USER + USERNAME + TRAVIS + PYTEST_ADDOPTS deps = pytest-xdist>=1.28