Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pytest-asyncio for 
openSUSE:Factory checked in at 2022-08-10 17:12:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-asyncio (Old)
 and      /work/SRC/openSUSE:Factory/.python-pytest-asyncio.new.1521 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pytest-asyncio"

Wed Aug 10 17:12:26 2022 rev:11 rq:993601 version:0.19.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-pytest-asyncio/python-pytest-asyncio.changes  
    2022-07-06 15:41:45.138495370 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-pytest-asyncio.new.1521/python-pytest-asyncio.changes
    2022-08-10 17:12:35.113596053 +0200
@@ -1,0 +2,9 @@
+Fri Aug  5 04:57:24 UTC 2022 - John Vandenberg <jay...@gmail.com>
+
+- Update to 0.19.0
+  * BREAKING: The default ``asyncio_mode`` is now *strict*.
+  * Removes `setup.py` since all relevant configuration is present
+    `setup.cfg`.
+  * Declare support for Python 3.11
+
+-------------------------------------------------------------------

Old:
----
  pytest-asyncio-0.18.3.tar.gz

New:
----
  pytest-asyncio-0.19.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pytest-asyncio.spec ++++++
--- /var/tmp/diff_new_pack.s6XsDs/_old  2022-08-10 17:12:35.741597692 +0200
+++ /var/tmp/diff_new_pack.s6XsDs/_new  2022-08-10 17:12:35.749597712 +0200
@@ -1,5 +1,5 @@
 #
-# spec file
+# spec file for package python-pytest-asyncio
 #
 # Copyright (c) 2022 SUSE LLC
 #
@@ -25,15 +25,17 @@
 %bcond_with test
 %endif
 Name:           python-pytest-asyncio%{psuffix}
-Version:        0.18.3
+Version:        0.19.0
 Release:        0
 Summary:        Pytest support for asyncio
 License:        Apache-2.0
 URL:            https://github.com/pytest-dev/pytest-asyncio
 Source:         
https://github.com/pytest-dev/pytest-asyncio/archive/v%{version}.tar.gz#/pytest-asyncio-%{version}.tar.gz
 BuildRequires:  %{python_module base >= 3.7}
+BuildRequires:  %{python_module pip}
 BuildRequires:  %{python_module setuptools_scm}
 BuildRequires:  %{python_module setuptools}
+BuildRequires:  %{python_module wheel}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
 Requires:       python-pytest >= 6.1.0
@@ -63,12 +65,12 @@
 
 %build
 export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
-%python_build
+%pyproject_wheel
 
 %if !%{with test}
 %install
 export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
-%python_install
+%pyproject_install
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 %endif
 
@@ -81,8 +83,8 @@
 %files %{python_files}
 %doc README.rst
 %license LICENSE
-%{python_sitelib}/pytest_asyncio
-%{python_sitelib}/pytest_asyncio-%{version}*-info
+%{python_sitelib}/pytest_asyncio/
+%{python_sitelib}/pytest_asyncio-%{version}*-info/
 %endif
 
 %changelog

++++++ pytest-asyncio-0.18.3.tar.gz -> pytest-asyncio-0.19.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-asyncio-0.18.3/.github/dependabot.yml 
new/pytest-asyncio-0.19.0/.github/dependabot.yml
--- old/pytest-asyncio-0.18.3/.github/dependabot.yml    2022-03-25 
10:22:08.000000000 +0100
+++ new/pytest-asyncio-0.19.0/.github/dependabot.yml    2022-07-15 
10:00:30.000000000 +0200
@@ -2,9 +2,9 @@
 version: 2
 updates:
 - package-ecosystem: pip
-  directory: /
+  directory: /dependencies/default
   schedule:
-    interval: daily
+    interval: weekly
   open-pull-requests-limit: 10
   target-branch: master
 - package-ecosystem: github-actions
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-asyncio-0.18.3/.github/workflows/main.yml 
new/pytest-asyncio-0.19.0/.github/workflows/main.yml
--- old/pytest-asyncio-0.18.3/.github/workflows/main.yml        2022-03-25 
10:22:08.000000000 +0100
+++ new/pytest-asyncio-0.19.0/.github/workflows/main.yml        2022-07-15 
10:00:30.000000000 +0200
@@ -20,7 +20,7 @@
     - uses: actions/checkout@v3
       with:
         fetch-depth: 0
-    - uses: actions/setup-python@v3
+    - uses: actions/setup-python@v4
       with:
         python-version: '3.10'
     - name: Install GitHub matcher for ActionLint checker
@@ -42,7 +42,7 @@
       id: version
       run: tox -e version-info
     - name: Upload artifacts
-      uses: actions/upload-artifact@v2
+      uses: actions/upload-artifact@v3
       with:
         name: dist
         path: dist
@@ -51,17 +51,17 @@
     name: Python ${{ matrix.python-version }}
     runs-on: ubuntu-latest
     env:
-      USING_COVERAGE: 3.7,3.8,3.9,3.10
+      USING_COVERAGE: 3.7,3.8,3.9,3.10,3.11
 
     strategy:
       matrix:
-        python-version: ['3.7', '3.8', '3.9', '3.10']
+        python-version: ['3.7', '3.8', '3.9', '3.10', 3.11-dev]
 
     steps:
     - uses: actions/checkout@v3
       with:
         fetch-depth: 0
-    - uses: actions/setup-python@v3
+    - uses: actions/setup-python@v4
       with:
         python-version: ${{ matrix.python-version }}
     - name: Install dependencies
@@ -107,7 +107,7 @@
       with:
         fetch-depth: 0
     - name: Download distributions
-      uses: actions/download-artifact@v2
+      uses: actions/download-artifact@v3
       with:
         name: dist
         path: dist
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-asyncio-0.18.3/.pre-commit-config.yaml 
new/pytest-asyncio-0.19.0/.pre-commit-config.yaml
--- old/pytest-asyncio-0.18.3/.pre-commit-config.yaml   2022-03-25 
10:22:08.000000000 +0100
+++ new/pytest-asyncio-0.19.0/.pre-commit-config.yaml   2022-07-15 
10:00:30.000000000 +0200
@@ -21,7 +21,7 @@
     - markdown
     - rst
 - repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
-  rev: 0.1.0
+  rev: 0.1.1
   hooks:
   - id: yamlfmt
     args: [--mapping, '2', --sequence, '2', --offset, '0']
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-asyncio-0.18.3/CHANGELOG.rst 
new/pytest-asyncio-0.19.0/CHANGELOG.rst
--- old/pytest-asyncio-0.18.3/CHANGELOG.rst     2022-03-25 10:22:08.000000000 
+0100
+++ new/pytest-asyncio-0.19.0/CHANGELOG.rst     2022-07-15 10:00:30.000000000 
+0200
@@ -2,6 +2,12 @@
 Changelog
 =========
 
+0.19.0 (22-07-13)
+=================
+- BREAKING: The default ``asyncio_mode`` is now *strict*. `#293 
<https://github.com/pytest-dev/pytest-asyncio/issues/293>`_
+- Removes `setup.py` since all relevant configuration is present `setup.cfg`. 
Users requiring an editable installation of pytest-asyncio need to use pip 
v21.1 or newer. `#283 
<https://github.com/pytest-dev/pytest-asyncio/issues/283>`_
+- Declare support for Python 3.11.
+
 0.18.3 (22-03-25)
 =================
 - Adds `pytest-trio <https://pypi.org/project/pytest-trio/>`_ to the test 
dependencies
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-asyncio-0.18.3/README.rst 
new/pytest-asyncio-0.19.0/README.rst
--- old/pytest-asyncio-0.18.3/README.rst        2022-03-25 10:22:08.000000000 
+0100
+++ new/pytest-asyncio-0.19.0/README.rst        2022-07-15 10:00:30.000000000 
+0200
@@ -58,7 +58,7 @@
 -----
 
 Starting from ``pytest-asyncio>=0.17``, three modes are provided: *auto*, 
*strict* and
-*legacy* (default).
+*legacy*. Starting from ``pytest-asyncio>=0.19`` the *strict* mode is the 
default.
 
 The mode can be set by ``asyncio_mode`` configuration option in `configuration 
file
 <https://docs.pytest.org/en/latest/reference/customize.html>`_:
@@ -104,6 +104,8 @@
 Please use this mode if multiple async frameworks should be combined in the 
same test
 suite.
 
+This mode is used by default for the sake of project inter-compatibility.
+
 
 Legacy mode
 ~~~~~~~~~~~
@@ -111,11 +113,10 @@
 This mode follows rules used by ``pytest-asyncio<0.17``: tests are not 
auto-marked but
 fixtures are.
 
-This mode is used by default for the sake of backward compatibility, 
deprecation
-warnings are emitted with suggestion to either switching to ``auto`` mode or 
using
-``strict`` mode with ``@pytest_asyncio.fixture`` decorators.
+Deprecation warnings are emitted with suggestion to either switching to 
``auto`` mode
+or using ``strict`` mode with ``@pytest_asyncio.fixture`` decorators.
 
-In future, the default will be changed.
+The default was changed to ``strict`` in ``pytest-asyncio>=0.19``.
 
 
 Fixtures
@@ -123,19 +124,16 @@
 
 ``event_loop``
 ~~~~~~~~~~~~~~
-Creates and injects a new instance of the default asyncio event loop. By
-default, the loop will be closed at the end of the test (i.e. the default
-fixture scope is ``function``).
+Creates a new asyncio event loop based on the current event loop policy. The 
new loop
+is available as the return value of this fixture or via 
`asyncio.get_running_loop 
<https://docs.python.org/3/library/asyncio-eventloop.html#asyncio.get_running_loop>`__.
+The event loop is closed when the fixture scope ends. The fixture scope 
defaults
+to ``function`` scope.
 
 Note that just using the ``event_loop`` fixture won't make your test function
 a coroutine. You'll need to interact with the event loop directly, using 
methods
 like ``event_loop.run_until_complete``. See the ``pytest.mark.asyncio`` marker
 for treating test functions like coroutines.
 
-Simply using this fixture will not set the generated event loop as the
-default asyncio event loop, or change the asyncio event loop policy in any way.
-Use ``pytest.mark.asyncio`` for this purpose.
-
 .. code-block:: python
 
     def test_http_client(event_loop):
@@ -143,22 +141,23 @@
         resp = event_loop.run_until_complete(http_client(url))
         assert b"HTTP/1.1 200 OK" in resp
 
-This fixture can be easily overridden in any of the standard pytest locations
-(e.g. directly in the test file, or in ``conftest.py``) to use a non-default
-event loop. This will take effect even if you're using the
-``pytest.mark.asyncio`` marker and not the ``event_loop`` fixture directly.
+The ``event_loop`` fixture can be overridden in any of the standard pytest 
locations,
+e.g. directly in the test file, or in ``conftest.py``. This allows redefining 
the
+fixture scope, for example:
 
 .. code-block:: python
 
-    @pytest.fixture
+    @pytest.fixture(scope="session")
     def event_loop():
-        loop = MyCustomLoop()
+        policy = asyncio.get_event_loop_policy()
+        loop = policy.new_event_loop()
         yield loop
         loop.close()
 
-If the ``pytest.mark.asyncio`` marker is applied, a pytest hook will
-ensure the produced loop is set as the default global loop.
-Fixtures depending on the ``event_loop`` fixture can expect the policy to be 
properly modified when they run.
+If you need to change the type of the event loop, prefer setting a custom 
event loop policy over  redefining the ``event_loop`` fixture.
+
+If the ``pytest.mark.asyncio`` marker is applied to a test function, the 
``event_loop``
+fixture will be requested automatically by the test function.
 
 ``unused_tcp_port``
 ~~~~~~~~~~~~~~~~~~~
@@ -251,7 +250,7 @@
 -------------------
 
 Test classes subclassing the standard `unittest 
<https://docs.python.org/3/library/unittest.html>`__ library are not supported, 
users
-are recommended to use `unitest.IsolatedAsyncioTestCase 
<https://docs.python.org/3/library/unittest.html#unittest.IsolatedAsyncioTestCase>`__
+are recommended to use `unittest.IsolatedAsyncioTestCase 
<https://docs.python.org/3/library/unittest.html#unittest.IsolatedAsyncioTestCase>`__
 or an async framework such as `asynctest 
<https://asynctest.readthedocs.io/en/latest>`__.
 
 Contributing
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-asyncio-0.18.3/dependencies/default/constraints.txt 
new/pytest-asyncio-0.19.0/dependencies/default/constraints.txt
--- old/pytest-asyncio-0.18.3/dependencies/default/constraints.txt      
1970-01-01 01:00:00.000000000 +0100
+++ new/pytest-asyncio-0.19.0/dependencies/default/constraints.txt      
2022-07-15 10:00:30.000000000 +0200
@@ -0,0 +1,24 @@
+async-generator==1.10
+attrs==21.4.0
+coverage==6.4.1
+flaky==3.7.0
+hypothesis==6.48.3
+idna==3.3
+importlib-metadata==4.12.0
+iniconfig==1.1.1
+mypy==0.961
+mypy-extensions==0.4.3
+outcome==1.2.0
+packaging==21.3
+pluggy==1.0.0
+py==1.11.0
+pyparsing==3.0.9
+pytest==7.1.2
+pytest-trio==0.7.0
+sniffio==1.2.0
+sortedcontainers==2.4.0
+tomli==2.0.1
+trio==0.21.0
+typed-ast==1.5.4
+typing_extensions==4.3.0
+zipp==3.8.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-asyncio-0.18.3/dependencies/default/requirements.txt 
new/pytest-asyncio-0.19.0/dependencies/default/requirements.txt
--- old/pytest-asyncio-0.18.3/dependencies/default/requirements.txt     
1970-01-01 01:00:00.000000000 +0100
+++ new/pytest-asyncio-0.19.0/dependencies/default/requirements.txt     
2022-07-15 10:00:30.000000000 +0200
@@ -0,0 +1,4 @@
+# Always adjust install_requires in setup.cfg and pytest-min-requirements.txt
+# when changing runtime dependencies
+pytest >= 6.1.0
+typing-extensions >= 3.7.2; python_version < "3.8"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-asyncio-0.18.3/dependencies/pytest-min/constraints.txt 
new/pytest-asyncio-0.19.0/dependencies/pytest-min/constraints.txt
--- old/pytest-asyncio-0.18.3/dependencies/pytest-min/constraints.txt   
1970-01-01 01:00:00.000000000 +0100
+++ new/pytest-asyncio-0.19.0/dependencies/pytest-min/constraints.txt   
2022-07-15 10:00:30.000000000 +0200
@@ -0,0 +1,22 @@
+async-generator==1.10
+attrs==21.4.0
+coverage==6.3.2
+flaky==3.7.0
+hypothesis==6.43.3
+idna==3.3
+iniconfig==1.1.1
+mypy==0.942
+mypy-extensions==0.4.3
+outcome==1.1.0
+packaging==21.3
+pluggy==0.13.1
+py==1.11.0
+pyparsing==3.0.8
+pytest==6.1.0
+pytest-trio==0.7.0
+sniffio==1.2.0
+sortedcontainers==2.4.0
+toml==0.10.2
+tomli==2.0.1
+trio==0.20.0
+typing_extensions==4.2.0
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/pytest-asyncio-0.18.3/dependencies/pytest-min/requirements.txt 
new/pytest-asyncio-0.19.0/dependencies/pytest-min/requirements.txt
--- old/pytest-asyncio-0.18.3/dependencies/pytest-min/requirements.txt  
1970-01-01 01:00:00.000000000 +0100
+++ new/pytest-asyncio-0.19.0/dependencies/pytest-min/requirements.txt  
2022-07-15 10:00:30.000000000 +0200
@@ -0,0 +1,4 @@
+# Always adjust install_requires in setup.cfg and requirements.txt
+# when changing minimum version dependencies
+pytest == 6.1.0
+typing-extensions >= 3.7.2; python_version < "3.8"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-asyncio-0.18.3/pytest_asyncio/plugin.py 
new/pytest-asyncio-0.19.0/pytest_asyncio/plugin.py
--- old/pytest-asyncio-0.18.3/pytest_asyncio/plugin.py  2022-03-25 
10:22:08.000000000 +0100
+++ new/pytest-asyncio-0.19.0/pytest_asyncio/plugin.py  2022-07-15 
10:00:30.000000000 +0200
@@ -95,7 +95,7 @@
     parser.addini(
         "asyncio_mode",
         help="default value for --asyncio-mode",
-        default="legacy",
+        default="strict",
     )
 
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-asyncio-0.18.3/setup.cfg 
new/pytest-asyncio-0.19.0/setup.cfg
--- old/pytest-asyncio-0.18.3/setup.cfg 2022-03-25 10:22:08.000000000 +0100
+++ new/pytest-asyncio-0.19.0/setup.cfg 2022-07-15 10:00:30.000000000 +0200
@@ -22,6 +22,7 @@
   Programming Language :: Python :: 3.8
   Programming Language :: Python :: 3.9
   Programming Language :: Python :: 3.10
+  Programming Language :: Python :: 3.11
 
   Topic :: Software Development :: Testing
 
@@ -34,16 +35,17 @@
 packages = find:
 include_package_data = True
 
+# Always adjust requirements.txt and pytest-min-requirements.txt when changing 
runtime dependencies
 install_requires =
   pytest >= 6.1.0
   typing-extensions >= 3.7.2; python_version < "3.8"
 
 [options.extras_require]
 testing =
-  coverage==6.2
+  coverage >= 6.2
   hypothesis >= 5.7.1
   flaky >= 3.5.0
-  mypy == 0.931
+  mypy >= 0.931
   pytest-trio >= 0.7.0
 
 [options.entry_points]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-asyncio-0.18.3/setup.py 
new/pytest-asyncio-0.19.0/setup.py
--- old/pytest-asyncio-0.18.3/setup.py  2022-03-25 10:22:08.000000000 +0100
+++ new/pytest-asyncio-0.19.0/setup.py  1970-01-01 01:00:00.000000000 +0100
@@ -1,4 +0,0 @@
-from setuptools import setup
-
-if __name__ == "__main__":
-    setup()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/pytest-asyncio-0.18.3/tox.ini 
new/pytest-asyncio-0.19.0/tox.ini
--- old/pytest-asyncio-0.18.3/tox.ini   2022-03-25 10:22:08.000000000 +0100
+++ new/pytest-asyncio-0.19.0/tox.ini   2022-07-15 10:00:30.000000000 +0200
@@ -1,6 +1,6 @@
 [tox]
 minversion = 3.14.0
-envlist = py37, py38, py39, py310, lint, version-info, pytest-min
+envlist = py37, py38, py39, py310, py311, lint, version-info, pytest-min
 isolated_build = true
 passenv =
     CI
@@ -8,7 +8,8 @@
 [testenv]
 extras = testing
 deps =
-     pytest == 6.2.5  # required for Python 3.10, not bad for others
+     --requirement dependencies/default/requirements.txt
+     --constraint dependencies/default/constraints.txt
 commands = make test
 allowlist_externals =
     make
@@ -16,7 +17,8 @@
 [testenv:pytest-min]
 extras = testing
 deps =
-     pytest == 6.1.0
+     --requirement dependencies/pytest-min/requirements.txt
+     --constraint dependencies/pytest-min/constraints.txt
 commands = make test
 allowlist_externals =
     make
@@ -50,4 +52,5 @@
     3.8: py38
     3.9: py39
     3.10: py310
+    3.11-dev: py311
     pypy3: pypy3

Reply via email to