Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-jupyter-core for openSUSE:Factory checked in at 2023-01-24 19:41:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-jupyter-core (Old) and /work/SRC/openSUSE:Factory/.python-jupyter-core.new.32243 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-jupyter-core" Tue Jan 24 19:41:55 2023 rev:15 rq:1060265 version:5.1.3 Changes: -------- --- /work/SRC/openSUSE:Factory/python-jupyter-core/python-jupyter-core.changes 2023-01-09 17:23:22.523013407 +0100 +++ /work/SRC/openSUSE:Factory/.python-jupyter-core.new.32243/python-jupyter-core.changes 2023-01-24 20:32:01.288276373 +0100 @@ -1,0 +2,7 @@ +Sun Jan 22 12:58:35 UTC 2023 - Ben Greiner <c...@bnavigator.de> + +- Update to 5.1.3 + * Clear the test environment before each function run #333 + (@jasongrout) + +------------------------------------------------------------------- Old: ---- jupyter_core-5.1.2.tar.gz New: ---- jupyter_core-5.1.3.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-jupyter-core.spec ++++++ --- /var/tmp/diff_new_pack.UUINHv/_old 2023-01-24 20:32:01.756278850 +0100 +++ /var/tmp/diff_new_pack.UUINHv/_new 2023-01-24 20:32:01.764278892 +0100 @@ -16,7 +16,6 @@ # -# %if 0%{?suse_version} > 1500 %bcond_without libalternatives %else @@ -33,7 +32,7 @@ %endif Name: python-jupyter-core%{psuffix} -Version: 5.1.2 +Version: 5.1.3 Release: 0 Summary: Base package on which Jupyter projects rely License: BSD-3-Clause ++++++ jupyter_core-5.1.2.tar.gz -> jupyter_core-5.1.3.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_core-5.1.2/.pre-commit-config.yaml new/jupyter_core-5.1.3/.pre-commit-config.yaml --- old/jupyter_core-5.1.2/.pre-commit-config.yaml 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_core-5.1.3/.pre-commit-config.yaml 2020-02-02 01:00:00.000000000 +0100 @@ -30,12 +30,13 @@ - id: mdformat - repo: https://github.com/psf/black - rev: 22.10.0 + rev: 22.12.0 hooks: - id: black - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: v0.0.189 + rev: v0.0.207 hooks: - id: ruff args: ["--fix"] + exclude: script diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_core-5.1.2/CHANGELOG.md new/jupyter_core-5.1.3/CHANGELOG.md --- old/jupyter_core-5.1.2/CHANGELOG.md 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_core-5.1.3/CHANGELOG.md 2020-02-02 01:00:00.000000000 +0100 @@ -2,6 +2,28 @@ <!-- <START NEW CHANGELOG ENTRY> --> +## 5.1.3 + +([Full Changelog](https://github.com/jupyter/jupyter_core/compare/v5.1.2...eb65690cb69a793edeb21b520c2358332933bb5d)) + +### Bugs fixed + +- Clear the test environment before each function run [#333](https://github.com/jupyter/jupyter_core/pull/333) ([@jasongrout](https://github.com/jasongrout)) + +### Maintenance and upkeep improvements + +- Add check-wheel-contents ignore [#332](https://github.com/jupyter/jupyter_core/pull/332) ([@blink1073](https://github.com/blink1073)) +- Remove only absolute import. [#331](https://github.com/jupyter/jupyter_core/pull/331) ([@Carreau](https://github.com/Carreau)) +- MAINT: Coro is not coro-function. [#330](https://github.com/jupyter/jupyter_core/pull/330) ([@Carreau](https://github.com/Carreau)) + +### Contributors to this release + +([GitHub contributors page for this release](https://github.com/jupyter/jupyter_core/graphs/contributors?from=2023-01-02&to=2023-01-09&type=c)) + +[@blink1073](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_core+involves%3Ablink1073+updated%3A2023-01-02..2023-01-09&type=Issues) | [@Carreau](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_core+involves%3ACarreau+updated%3A2023-01-02..2023-01-09&type=Issues) | [@jasongrout](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_core+involves%3Ajasongrout+updated%3A2023-01-02..2023-01-09&type=Issues) | [@pre-commit-ci](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_core+involves%3Apre-commit-ci+updated%3A2023-01-02..2023-01-09&type=Issues) + +<!-- <END NEW CHANGELOG ENTRY> --> + ## 5.1.2 ([Full Changelog](https://github.com/jupyter/jupyter_core/compare/v5.1.1...4bd8ba97c99fefc416fe43411f935d40e2b7e441)) @@ -21,8 +43,6 @@ [@blink1073](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_core+involves%3Ablink1073+updated%3A2022-12-22..2023-01-02&type=Issues) | [@Carreau](https://github.com/search?q=repo%3Ajupyter%2Fjupyter_core+involves%3ACarreau+updated%3A2022-12-22..2023-01-02&type=Issues) -<!-- <END NEW CHANGELOG ENTRY> --> - ## 5.1.1 ([Full Changelog](https://github.com/jupyter/jupyter_core/compare/v5.1.0...1ed25e389116fbb98c513ee2148f38f9548e6198)) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_core-5.1.2/PKG-INFO new/jupyter_core-5.1.3/PKG-INFO --- old/jupyter_core-5.1.2/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_core-5.1.3/PKG-INFO 2020-02-02 01:00:00.000000000 +0100 @@ -1,6 +1,6 @@ Metadata-Version: 2.1 Name: jupyter_core -Version: 5.1.2 +Version: 5.1.3 Summary: Jupyter core package. A base package on which Jupyter projects rely. Project-URL: Homepage, https://jupyter.org Project-URL: Documentation, https://jupyter-core.readthedocs.io/ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_core-5.1.2/jupyter_core/paths.py new/jupyter_core-5.1.3/jupyter_core/paths.py --- old/jupyter_core-5.1.2/jupyter_core/paths.py 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_core-5.1.3/jupyter_core/paths.py 2020-02-02 01:00:00.000000000 +0100 @@ -21,7 +21,7 @@ import platformdirs -from jupyter_core.utils import deprecation +from .utils import deprecation pjoin = os.path.join diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_core-5.1.2/jupyter_core/tests/test_command.py new/jupyter_core-5.1.3/jupyter_core/tests/test_command.py --- old/jupyter_core-5.1.2/jupyter_core/tests/test_command.py 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_core-5.1.3/jupyter_core/tests/test_command.py 2020-02-02 01:00:00.000000000 +0100 @@ -21,11 +21,21 @@ resetenv = patch.dict(os.environ) -def setup_module(): +def setup_function(): resetenv.start() + for var in [ + "JUPYTER_CONFIG_DIR", + "JUPYTER_CONFIG_PATH", + "JUPYTER_DATA_DIR", + "JUPYTER_NO_CONFIG", + "JUPYTER_PATH", + "JUPYTER_PLATFORM_DIRS", + "JUPYTER_RUNTIME_DIR", + ]: + os.environ.pop(var, None) -def teardown_module(): +def teardown_function(): resetenv.stop() diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_core-5.1.2/jupyter_core/tests/test_paths.py new/jupyter_core-5.1.3/jupyter_core/tests/test_paths.py --- old/jupyter_core-5.1.2/jupyter_core/tests/test_paths.py 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_core-5.1.3/jupyter_core/tests/test_paths.py 2020-02-02 01:00:00.000000000 +0100 @@ -50,16 +50,7 @@ {}, ) -no_config_env = patch.dict( - "os.environ", - { - "JUPYTER_PLATFORM_DIRS": "", - "JUPYTER_CONFIG_DIR": "", - "JUPYTER_DATA_DIR": "", - "JUPYTER_RUNTIME_DIR": "", - "JUPYTER_PATH": "", - }, -) +environment = patch.dict("os.environ") use_platformdirs = patch.dict("os.environ", {"JUPYTER_PLATFORM_DIRS": "1"}) @@ -68,18 +59,26 @@ prefer_env = patch.dict("os.environ", {"JUPYTER_PREFER_ENV_PATH": "True"}) prefer_user = patch.dict("os.environ", {"JUPYTER_PREFER_ENV_PATH": "False"}) -resetenv = patch.dict(os.environ) - -def setup_module(): - resetenv.start() +def setup_function(): + environment.start() + for var in [ + "JUPYTER_CONFIG_DIR", + "JUPYTER_CONFIG_PATH", + "JUPYTER_DATA_DIR", + "JUPYTER_NO_CONFIG", + "JUPYTER_PATH", + "JUPYTER_PLATFORM_DIRS", + "JUPYTER_RUNTIME_DIR", + ]: + os.environ.pop(var, None) # For these tests, default to preferring the user-level over environment-level paths # Tests can override this preference using the prefer_env decorator/context manager os.environ["JUPYTER_PREFER_ENV_PATH"] = "no" -def teardown_module(): - resetenv.stop() +def teardown_function(): + environment.stop() def realpath(path): @@ -272,14 +271,14 @@ def test_jupyter_path(): system_path = ["system", "path"] - with no_config_env, patch.object(paths, "SYSTEM_JUPYTER_PATH", system_path): + with patch.object(paths, "SYSTEM_JUPYTER_PATH", system_path): path = jupyter_path() assert path[0] == jupyter_data_dir() assert path[-2:] == system_path def test_jupyter_path_user_site(): - with no_config_env, patch.object(site, "ENABLE_USER_SITE", True): + with patch.object(site, "ENABLE_USER_SITE", True): path = jupyter_path() # deduplicated expected values @@ -297,7 +296,7 @@ def test_jupyter_path_no_user_site(): - with no_config_env, patch.object(site, "ENABLE_USER_SITE", False): + with patch.object(site, "ENABLE_USER_SITE", False): path = jupyter_path() assert path[0] == jupyter_data_dir() assert path[1] == paths.ENV_JUPYTER_PATH[0] diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_core-5.1.2/jupyter_core/utils/__init__.py new/jupyter_core-5.1.3/jupyter_core/utils/__init__.py --- old/jupyter_core-5.1.2/jupyter_core/utils/__init__.py 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_core-5.1.3/jupyter_core/utils/__init__.py 2020-02-02 01:00:00.000000000 +0100 @@ -137,15 +137,17 @@ Parameters ---------- - coro : coroutine - The coroutine to be executed. + coro : coroutine-function + The coroutine-function to be executed. Returns ------- result : - Whatever the coroutine returns. + Whatever the coroutine-function returns. """ + assert inspect.iscoroutinefunction(coro) + def wrapped(*args, **kwargs): name = threading.current_thread().name inner = coro(*args, **kwargs) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_core-5.1.2/jupyter_core/version.py new/jupyter_core-5.1.3/jupyter_core/version.py --- old/jupyter_core-5.1.2/jupyter_core/version.py 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_core-5.1.3/jupyter_core/version.py 2020-02-02 01:00:00.000000000 +0100 @@ -5,7 +5,7 @@ from typing import List # Version string must appear intact for hatch versioning -__version__ = "5.1.2" +__version__ = "5.1.3" # Build up version_info tuple for backwards compatibility pattern = r"(?P<major>\d+).(?P<minor>\d+).(?P<patch>\d+)(?P<rest>.*)" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/jupyter_core-5.1.2/pyproject.toml new/jupyter_core-5.1.3/pyproject.toml --- old/jupyter_core-5.1.2/pyproject.toml 2020-02-02 01:00:00.000000000 +0100 +++ new/jupyter_core-5.1.3/pyproject.toml 2020-02-02 01:00:00.000000000 +0100 @@ -93,7 +93,7 @@ test = "mypy --install-types --non-interactive {args:.}" [tool.hatch.envs.lint] -dependencies = ["black==22.10.0", "mdformat>0.7", "ruff==0.0.189"] +dependencies = ["black==22.12.0", "mdformat>0.7", "ruff==0.0.206"] detached = true [tool.hatch.envs.lint.scripts] style = [ @@ -225,3 +225,4 @@ [tool.check-wheel-contents] toplevel = ["jupyter_core/", "jupyter.py"] +ignore = ["W002"]