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
This commit is contained in:
parent
74b162ba15
commit
c30a68c62d
21
LICENSE
21
LICENSE
@ -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.
|
|
14
README.rst
14
README.rst
@ -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 <http://testpath.readthedocs.org/en/latest/>`_
|
|
||||||
|
|
||||||
e.g.::
|
|
||||||
|
|
||||||
import testpath
|
|
||||||
testpath.assert_isfile(path)
|
|
||||||
|
|
||||||
with testpath.assert_calls('git', ['add', path]):
|
|
||||||
function_under_test()
|
|
@ -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
|
Mon Apr 24 20:38:14 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-testpath
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -18,21 +18,16 @@
|
|||||||
|
|
||||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-testpath
|
Name: python-testpath
|
||||||
Version: 0.3
|
Version: 0.3.1
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Test utilities for code working with files and commands
|
Summary: Test utilities for code working with files and commands
|
||||||
License: MIT
|
License: MIT
|
||||||
Group: Development/Languages/Python
|
Group: Development/Languages/Python
|
||||||
Url: https://github.com/jupyter/testpath
|
Url: https://github.com/jupyter/testpath
|
||||||
# We have to use this random url until predictable wheel urls are available
|
Source0: https://files.pythonhosted.org/packages/source/t/testpath/testpath-%{version}.tar.gz
|
||||||
Source0: https://pypi.python.org/packages/fe/53/301852a341e1f5cc82f9987d28595fb04ef2d9869a4efa2d379d207b2b77/testpath-%{version}-py2.py3-none-any.whl
|
BuildRequires: %{python_module devel}
|
||||||
Source1: https://raw.githubusercontent.com/jupyter/testpath/%{version}/LICENSE
|
|
||||||
Source2: https://raw.githubusercontent.com/jupyter/testpath/%{version}/README.rst
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: %{python_module devel}
|
|
||||||
BuildRequires: %{python_module pip}
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%python_subpackages
|
%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.
|
for mocking system commands and recording calls to those.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
cp %{SOURCE0} .
|
%setup -q -n testpath-%{version}
|
||||||
cp %{SOURCE1} .
|
|
||||||
cp %{SOURCE2} .
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# We don't do anything here
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%python_expand pip%{$python_bin_suffix} install --root %{buildroot} testpath-%{version}-py2.py3-none-any.whl
|
%python_install
|
||||||
%python_expand rm %{buildroot}%{$python_sitelib}/testpath/*.exe
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||||
|
|
||||||
%files %{python_files}
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README.rst LICENSE
|
%doc README.rst LICENSE
|
||||||
%{python_sitelib}/testpath-%{version}.dist-info
|
|
||||||
%{python_sitelib}/testpath/
|
%{python_sitelib}/testpath/
|
||||||
|
%{python_sitelib}/testpath-%{version}-py*.egg-info
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:f16b2cb3b03e1ada4fb0200b265a4446f92f3ba4b9d88ace34f51c54ab6d294e
|
|
||||||
size 82971
|
|
3
testpath-0.3.1.tar.gz
Normal file
3
testpath-0.3.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:0d5337839c788da5900df70f8e01015aec141aa3fe7936cb0d0a2953f7ac7609
|
||||||
|
size 91663
|
Loading…
Reference in New Issue
Block a user