Accepting request 490873 from devel:languages:python
1 OBS-URL: https://build.opensuse.org/request/show/490873 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-testpath?expand=0&rev=3
This commit is contained in:
parent
02728f0dcd
commit
74b162ba15
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:a5388cc7c8370b1f11298c1d513b3d2b9e2f390607a7c39963e6e3ba9f1b7012
|
|
||||||
size 13732
|
|
14
README.rst
Normal file
14
README.rst
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
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,19 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Mon Apr 24 20:38:14 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- Switch to wheel-based install.
|
||||||
|
- Implement single-spec version.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Thu Apr 6 15:33:31 UTC 2017 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
- specfile:
|
||||||
|
* update copyright year
|
||||||
|
* LICENSE file is now in tar-ball
|
||||||
|
|
||||||
|
- update to version 0.3:
|
||||||
|
(no changelog available)
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Jan 29 12:21:52 UTC 2016 - toddrme2178@gmail.com
|
Fri Jan 29 12:21:52 UTC 2016 - toddrme2178@gmail.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-testpath
|
# spec file for package python-testpath
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 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
|
||||||
@ -16,18 +16,25 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
Name: python-testpath
|
Name: python-testpath
|
||||||
Version: 0.2
|
Version: 0.3
|
||||||
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
|
||||||
Source0: https://github.com/jupyter/testpath/archive/%{version}.tar.gz
|
# We have to use this random url until predictable wheel urls are available
|
||||||
Source1: https://raw.githubusercontent.com/jupyter/testpath/master/LICENSE
|
Source0: https://pypi.python.org/packages/fe/53/301852a341e1f5cc82f9987d28595fb04ef2d9869a4efa2d379d207b2b77/testpath-%{version}-py2.py3-none-any.whl
|
||||||
BuildRequires: python
|
Source1: https://raw.githubusercontent.com/jupyter/testpath/%{version}/LICENSE
|
||||||
|
Source2: https://raw.githubusercontent.com/jupyter/testpath/%{version}/README.rst
|
||||||
|
BuildRequires: fdupes
|
||||||
|
BuildRequires: python-rpm-macros
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module pip}
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Testpath is a collection of utilities for Python code working with
|
Testpath is a collection of utilities for Python code working with
|
||||||
@ -37,21 +44,21 @@ 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
|
||||||
%setup0 -q -n testpath-%{version}
|
cp %{SOURCE0} .
|
||||||
cp %{SOURCE1} ./
|
cp %{SOURCE1} .
|
||||||
|
cp %{SOURCE2} .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
# We don't do anything here
|
# We don't do anything here
|
||||||
|
|
||||||
%install
|
%install
|
||||||
mkdir -p %{buildroot}%{python_sitelib}
|
%python_expand pip%{$python_bin_suffix} install --root %{buildroot} testpath-%{version}-py2.py3-none-any.whl
|
||||||
cp -r testpath %{buildroot}%{python_sitelib}
|
%python_expand rm %{buildroot}%{$python_sitelib}/testpath/*.exe
|
||||||
%py_compile %{buildroot}%{python_sitelib}
|
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc README.rst
|
%doc README.rst LICENSE
|
||||||
%doc LICENSE
|
%{python_sitelib}/testpath-%{version}.dist-info
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/testpath/
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
3
testpath-0.3-py2.py3-none-any.whl
Normal file
3
testpath-0.3-py2.py3-none-any.whl
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:f16b2cb3b03e1ada4fb0200b265a4446f92f3ba4b9d88ace34f51c54ab6d294e
|
||||||
|
size 82971
|
Loading…
Reference in New Issue
Block a user