diff --git a/python-testpath.changes b/python-testpath.changes index a82faf2..e99bab5 100644 --- a/python-testpath.changes +++ b/python-testpath.changes @@ -1,3 +1,14 @@ +------------------------------------------------------------------- +Wed Oct 20 16:23:05 UTC 2021 - Ben Greiner + +- Update to version 0.5.0 +* Easier ways to use `MockCommand` to customise mocked commands, + including `python=` to specify extra code to run, + `.MockCommand.fixed_output`, and `.MockCommand.assert_called`. +* Command mocking will use `os.defpath` as the initial PATH if the + PATH environment variable is not set. +- Drop Python 2 build + ------------------------------------------------------------------- Tue Nov 12 16:33:53 UTC 2019 - Todd R diff --git a/python-testpath.spec b/python-testpath.spec index 4e5cbde..e56812f 100644 --- a/python-testpath.spec +++ b/python-testpath.spec @@ -1,7 +1,7 @@ # # spec file for package python-testpath # -# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,16 +16,18 @@ # -%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%{?!python_module:%define python_module() python3-%{**}} +%define skip_python2 1 Name: python-testpath -Version: 0.4.4 +Version: 0.5.0 Release: 0 Summary: Test utilities for code working with files and commands -License: LGPL-2.1-or-later OR BSD-3-Clause +License: BSD-3-Clause OR LGPL-2.1-or-later Group: Development/Languages/Python -Url: https://github.com/jupyter/testpath +URL: https://github.com/jupyter/testpath Source0: https://files.pythonhosted.org/packages/source/t/testpath/testpath-%{version}.tar.gz BuildRequires: %{python_module pytest} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildRequires: python-rpm-macros BuildArch: noarch @@ -51,12 +53,12 @@ rm testpath/*.exe %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec -m pytest +%pytest %files %{python_files} %doc README.rst %license LICENSE %{python_sitelib}/testpath/ -%{python_sitelib}/testpath-%{version}-py*.egg-info +%{python_sitelib}/testpath-%{version}*-info %changelog diff --git a/testpath-0.4.4.tar.gz b/testpath-0.4.4.tar.gz deleted file mode 100644 index 89ca0b9..0000000 --- a/testpath-0.4.4.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:60e0a3261c149755f4399a1fff7d37523179a70fdc3abdf78de9fc2604aeec7e -size 92928 diff --git a/testpath-0.5.0.tar.gz b/testpath-0.5.0.tar.gz new file mode 100644 index 0000000..46eb470 --- /dev/null +++ b/testpath-0.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:1acf7a0bcd3004ae8357409fc33751e16d37ccc650921da1094a86581ad1e417 +size 94021