Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-testpath for openSUSE:Factory
checked in at 2022-02-28 19:43:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-testpath (Old)
and /work/SRC/openSUSE:Factory/.python-testpath.new.1958 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-testpath"
Mon Feb 28 19:43:17 2022 rev:10 rq:957852 version:0.6.0
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-testpath/python-testpath.changes
2021-10-25 15:17:44.101686948 +0200
+++
/work/SRC/openSUSE:Factory/.python-testpath.new.1958/python-testpath.changes
2022-02-28 19:43:27.769938916 +0100
@@ -1,0 +2,11 @@
+Sat Feb 26 21:25:52 UTC 2022 - Arun Persaud <[email protected]>
+
+- specfile:
+ * update copyright year
+ * switch to pyproject toml build
+
+- update to version 0.6.0:
+ * Removed some code that???s unused since dropping Python 2 support.
+ * Relax the version constraint for the flit_core build requirement.
+
+-------------------------------------------------------------------
Old:
----
testpath-0.5.0.tar.gz
New:
----
testpath-0.6.0.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-testpath.spec ++++++
--- /var/tmp/diff_new_pack.eHUmbr/_old 2022-02-28 19:43:28.553939210 +0100
+++ /var/tmp/diff_new_pack.eHUmbr/_new 2022-02-28 19:43:28.557939211 +0100
@@ -1,7 +1,7 @@
#
# spec file for package python-testpath
#
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -19,15 +19,16 @@
%{?!python_module:%define python_module() python3-%{**}}
%define skip_python2 1
Name: python-testpath
-Version: 0.5.0
+Version: 0.6.0
Release: 0
Summary: Test utilities for code working with files and commands
License: BSD-3-Clause OR LGPL-2.1-or-later
Group: Development/Languages/Python
URL: https://github.com/jupyter/testpath
Source0:
https://files.pythonhosted.org/packages/source/t/testpath/testpath-%{version}.tar.gz
+BuildRequires: %{python_module flit-core}
+BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
-BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
@@ -46,10 +47,10 @@
rm testpath/*.exe
%build
-%python_build
+%pyproject_wheel
%install
-%python_install
+%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
++++++ testpath-0.5.0.tar.gz -> testpath-0.6.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testpath-0.5.0/PKG-INFO new/testpath-0.6.0/PKG-INFO
--- old/testpath-0.5.0/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
+++ new/testpath-0.6.0/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
@@ -1,7 +1,32 @@
-Metadata-Version: 1.1
+Metadata-Version: 2.1
Name: testpath
-Version: 0.5.0
+Version: 0.6.0
Summary: Test utilities for code working with files and commands
-Home-page: None
-Author: None
Author-email: Jupyter Development Team <[email protected]>
+Requires-Python: >= 3.5
+Description-Content-Type: text/x-rst
+Classifier: Intended Audience :: Developers
+Classifier: License :: OSI Approved :: BSD License
+Classifier: Programming Language :: Python
+Classifier: Programming Language :: Python :: 3
+Classifier: Topic :: Software Development :: Testing
+Requires-Dist: pytest ; extra == "test"
+Project-URL: Documentation, https://testpath.readthedocs.io/en/latest/
+Project-URL: Source, https://github.com/jupyter/testpath
+Provides-Extra: test
+
+Testpath is a collection of utilities for Python code working with files and
commands.
+
+It contains functions to check things on the filesystem, and tools for mocking
+system commands and recording calls to those.
+
+`Documentation on ReadTheDocs <https://testpath.readthedocs.io/en/latest/>`_
+
+e.g.::
+
+ import testpath
+ testpath.assert_isfile(path)
+
+ with testpath.assert_calls('git', ['add', path]):
+ function_under_test()
+
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testpath-0.5.0/doc/history.rst
new/testpath-0.6.0/doc/history.rst
--- old/testpath-0.5.0/doc/history.rst 2021-05-17 12:23:25.380330600 +0200
+++ new/testpath-0.6.0/doc/history.rst 2022-02-23 21:03:22.930825500 +0100
@@ -1,13 +1,21 @@
Release notes
=============
+0.6
+---
+
+February 2022
+
+* Removed some code that's unused since dropping Python 2 support.
+* Relax the version constraint for the ``flit_core`` build requirement.
+
0.5
---
+May 2021
+
* Easier ways to use :class:`.MockCommand` to customise mocked commands,
including ``python=`` to specify extra code to run,
:meth:`~.MockCommand.fixed_output`, and :meth:`~.MockCommand.assert_called`.
* Command mocking will use :data:`os.defpath` as the initial PATH if the PATH
environment variable is not set.
-
-May 2021
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testpath-0.5.0/doc/index.rst
new/testpath-0.6.0/doc/index.rst
--- old/testpath-0.5.0/doc/index.rst 2021-05-17 12:03:41.366711000 +0200
+++ new/testpath-0.6.0/doc/index.rst 2021-05-17 13:10:43.857512700 +0200
@@ -27,6 +27,5 @@
==================
* :ref:`genindex`
-* :ref:`modindex`
* :ref:`search`
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testpath-0.5.0/doc/tempdir.rst
new/testpath-0.6.0/doc/tempdir.rst
--- old/testpath-0.5.0/doc/tempdir.rst 2017-08-20 15:25:13.475373000 +0200
+++ new/testpath-0.6.0/doc/tempdir.rst 2022-02-15 12:04:02.531357800 +0100
@@ -3,8 +3,8 @@
.. module:: testpath.tempdir
-This module exposes :func:`tempfile.TemporaryDirectory`, with a backported copy
-so that it can be used on Python 2. In addition, it contains:
+The :mod:`testpath.tempdir` module contains a couple of utilities for working
+with temporary directories:
.. autoclass:: NamedFileInTemporaryDirectory
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testpath-0.5.0/pyproject.toml
new/testpath-0.6.0/pyproject.toml
--- old/testpath-0.5.0/pyproject.toml 2021-05-17 11:27:52.054411000 +0200
+++ new/testpath-0.6.0/pyproject.toml 2022-02-23 20:58:25.948641300 +0100
@@ -1,5 +1,5 @@
[build-system]
-requires = ["flit_core >=3.2.0,<3.3"]
+requires = ["flit_core >=3.2.0,<4"]
build-backend = "flit_core.buildapi"
[project]
@@ -19,7 +19,7 @@
dynamic = ["version", "description"]
[project.optional-dependencies]
-test = ["pytest", "pathlib2; python_version == \"2.7\""]
+test = ["pytest"]
[project.urls]
Documentation = "https://testpath.readthedocs.io/en/latest/"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testpath-0.5.0/setup.py new/testpath-0.6.0/setup.py
--- old/testpath-0.5.0/setup.py 1970-01-01 01:00:00.000000000 +0100
+++ new/testpath-0.6.0/setup.py 1970-01-01 01:00:00.000000000 +0100
@@ -1,25 +0,0 @@
-#!/usr/bin/env python
-# setup.py generated by flit for tools that don't yet use PEP 517
-
-from distutils.core import setup
-
-packages = \
-['testpath']
-
-package_data = \
-{'': ['*']}
-
-extras_require = \
-{'test': ['pytest'], 'test:python_version == "2.7"': ['pathlib2']}
-
-setup(name='testpath',
- version='0.5.0',
- description='Test utilities for code working with files and commands',
- author=None,
- author_email='Jupyter Development Team <[email protected]>',
- url=None,
- packages=packages,
- package_data=package_data,
- extras_require=extras_require,
- python_requires='>= 3.5',
- )
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testpath-0.5.0/testpath/__init__.py
new/testpath-0.6.0/testpath/__init__.py
--- old/testpath-0.5.0/testpath/__init__.py 2021-05-17 12:57:24.185321000
+0200
+++ new/testpath-0.6.0/testpath/__init__.py 2022-02-23 21:03:59.205970000
+0100
@@ -3,4 +3,4 @@
from .env import temporary_env, modified_env, make_env_restorer
from .commands import MockCommand, assert_calls
-__version__ = '0.5.0'
+__version__ = '0.6.0'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testpath-0.5.0/testpath/tempdir.py
new/testpath-0.6.0/testpath/tempdir.py
--- old/testpath-0.5.0/testpath/tempdir.py 2018-09-26 11:22:07.537054000
+0200
+++ new/testpath-0.6.0/testpath/tempdir.py 2022-02-15 12:04:02.534357800
+0100
@@ -1,4 +1,4 @@
-"""TemporaryDirectory class, copied from Python 3
+"""Extra utilities for temporary directories.
NamedFileInTemporaryDirectory and TemporaryWorkingDirectory from IPython, which
uses the 3-clause BSD license.
@@ -6,94 +6,7 @@
from __future__ import print_function
import os as _os
-import warnings as _warnings
-import sys as _sys
-
-# This code should only be used in Python versions < 3.2, since after that we
-# can rely on the stdlib itself.
-try:
- from tempfile import TemporaryDirectory
-
-except ImportError:
- from tempfile import mkdtemp, template
-
- class TemporaryDirectory(object):
- """Create and return a temporary directory. This has the same
- behavior as mkdtemp but can be used as a context manager. For
- example:
-
- with TemporaryDirectory() as tmpdir:
- ...
-
- Upon exiting the context, the directory and everything contained
- in it are removed.
- """
-
- def __init__(self, suffix="", prefix=template, dir=None):
- self.name = mkdtemp(suffix, prefix, dir)
- self._closed = False
-
- def __enter__(self):
- return self.name
-
- def cleanup(self, _warn=False):
- if self.name and not self._closed:
- try:
- self._rmtree(self.name)
- except (TypeError, AttributeError) as ex:
- # Issue #10188: Emit a warning on stderr
- # if the directory could not be cleaned
- # up due to missing globals
- if "None" not in str(ex):
- raise
- print("ERROR: {!r} while cleaning up {!r}".format(ex,
self,),
- file=_sys.stderr)
- return
- self._closed = True
- if _warn:
- self._warn("Implicitly cleaning up {!r}".format(self),
- Warning)
-
- def __exit__(self, exc, value, tb):
- self.cleanup()
-
- def __del__(self):
- # Issue a ResourceWarning if implicit cleanup needed
- self.cleanup(_warn=True)
-
-
- # XXX (ncoghlan): The following code attempts to make
- # this class tolerant of the module nulling out process
- # that happens during CPython interpreter shutdown
- # Alas, it doesn't actually manage it. See issue #10188
- _listdir = staticmethod(_os.listdir)
- _path_join = staticmethod(_os.path.join)
- _isdir = staticmethod(_os.path.isdir)
- _remove = staticmethod(_os.remove)
- _rmdir = staticmethod(_os.rmdir)
- _os_error = _os.error
- _warn = _warnings.warn
-
- def _rmtree(self, path):
- # Essentially a stripped down version of shutil.rmtree. We can't
- # use globals because they may be None'ed out at shutdown.
- for name in self._listdir(path):
- fullname = self._path_join(path, name)
- try:
- isdir = self._isdir(fullname)
- except self._os_error:
- isdir = False
- if isdir:
- self._rmtree(fullname)
- else:
- try:
- self._remove(fullname)
- except self._os_error:
- pass
- try:
- self._rmdir(path)
- except self._os_error:
- pass
+from tempfile import TemporaryDirectory
class NamedFileInTemporaryDirectory(object):