From c30a68c62d011654e14166fd47be5c017210e3268be242e17b672ffcbf7c0464 Mon Sep 17 00:00:00 2001 From: Dominique Leuenberger Date: Sat, 20 Jan 2018 10:27:18 +0000 Subject: [PATCH] Accepting request 567492 from devel:languages:python OBS-URL: https://build.opensuse.org/request/show/567492 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-testpath?expand=0&rev=4 --- LICENSE | 21 --------------------- README.rst | 14 -------------- python-testpath.changes | 19 +++++++++++++++++++ python-testpath.spec | 25 +++++++++---------------- testpath-0.3-py2.py3-none-any.whl | 3 --- testpath-0.3.1.tar.gz | 3 +++ 6 files changed, 31 insertions(+), 54 deletions(-) delete mode 100644 LICENSE delete mode 100644 README.rst delete mode 100644 testpath-0.3-py2.py3-none-any.whl create mode 100644 testpath-0.3.1.tar.gz diff --git a/LICENSE b/LICENSE deleted file mode 100644 index 26fcb68..0000000 --- a/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015, The Jupyter Development Team - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.rst b/README.rst deleted file mode 100644 index fc828d1..0000000 --- a/README.rst +++ /dev/null @@ -1,14 +0,0 @@ -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 `_ - -e.g.:: - - import testpath - testpath.assert_isfile(path) - - with testpath.assert_calls('git', ['add', path]): - function_under_test() diff --git a/python-testpath.changes b/python-testpath.changes index 7d45622..0fed7bc 100644 --- a/python-testpath.changes +++ b/python-testpath.changes @@ -1,3 +1,22 @@ +------------------------------------------------------------------- +Thu Jan 18 17:16:06 UTC 2018 - toddrme2178@gmail.com + +- Fix files list + +------------------------------------------------------------------- +Thu Nov 2 04:41:58 UTC 2017 - arun@gmx.de + +- changed to tar-ball version + +------------------------------------------------------------------- +Sun Oct 22 18:21:22 UTC 2017 - arun@gmx.de + +- update to version 0.3.1: + * Add dev requirement on pathlib2 + * Use pathlib2 instead of pathlib + * Convert readthedocs links for their .org -> .io migration for + hosted projects + ------------------------------------------------------------------- Mon Apr 24 20:38:14 UTC 2017 - toddrme2178@gmail.com diff --git a/python-testpath.spec b/python-testpath.spec index 503f8f8..83560a4 100644 --- a/python-testpath.spec +++ b/python-testpath.spec @@ -1,7 +1,7 @@ # # spec file for package python-testpath # -# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,21 +18,16 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-testpath -Version: 0.3 +Version: 0.3.1 Release: 0 Summary: Test utilities for code working with files and commands License: MIT Group: Development/Languages/Python Url: https://github.com/jupyter/testpath -# We have to use this random url until predictable wheel urls are available -Source0: https://pypi.python.org/packages/fe/53/301852a341e1f5cc82f9987d28595fb04ef2d9869a4efa2d379d207b2b77/testpath-%{version}-py2.py3-none-any.whl -Source1: https://raw.githubusercontent.com/jupyter/testpath/%{version}/LICENSE -Source2: https://raw.githubusercontent.com/jupyter/testpath/%{version}/README.rst +Source0: https://files.pythonhosted.org/packages/source/t/testpath/testpath-%{version}.tar.gz +BuildRequires: %{python_module devel} BuildRequires: fdupes BuildRequires: python-rpm-macros -BuildRequires: %{python_module devel} -BuildRequires: %{python_module pip} -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages @@ -44,21 +39,19 @@ It contains functions to check things on the filesystem, and tools for mocking system commands and recording calls to those. %prep -cp %{SOURCE0} . -cp %{SOURCE1} . -cp %{SOURCE2} . +%setup -q -n testpath-%{version} %build -# We don't do anything here +%python_build %install -%python_expand pip%{$python_bin_suffix} install --root %{buildroot} testpath-%{version}-py2.py3-none-any.whl -%python_expand rm %{buildroot}%{$python_sitelib}/testpath/*.exe +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %files %{python_files} %defattr(-,root,root,-) %doc README.rst LICENSE -%{python_sitelib}/testpath-%{version}.dist-info %{python_sitelib}/testpath/ +%{python_sitelib}/testpath-%{version}-py*.egg-info %changelog diff --git a/testpath-0.3-py2.py3-none-any.whl b/testpath-0.3-py2.py3-none-any.whl deleted file mode 100644 index 62e87a0..0000000 --- a/testpath-0.3-py2.py3-none-any.whl +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:f16b2cb3b03e1ada4fb0200b265a4446f92f3ba4b9d88ace34f51c54ab6d294e -size 82971 diff --git a/testpath-0.3.1.tar.gz b/testpath-0.3.1.tar.gz new file mode 100644 index 0000000..0976586 --- /dev/null +++ b/testpath-0.3.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:0d5337839c788da5900df70f8e01015aec141aa3fe7936cb0d0a2953f7ac7609 +size 91663