diff --git a/0.2.tar.gz b/0.2.tar.gz deleted file mode 100644 index 5a79742..0000000 --- a/0.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:a5388cc7c8370b1f11298c1d513b3d2b9e2f390607a7c39963e6e3ba9f1b7012 -size 13732 diff --git a/README.rst b/README.rst new file mode 100644 index 0000000..fc828d1 --- /dev/null +++ b/README.rst @@ -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 `_ + +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 7515e0b..7d45622 100644 --- a/python-testpath.changes +++ b/python-testpath.changes @@ -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 diff --git a/python-testpath.spec b/python-testpath.spec index c4b9ba6..503f8f8 100644 --- a/python-testpath.spec +++ b/python-testpath.spec @@ -1,7 +1,7 @@ # # 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 # remain the property of their copyright owners, unless otherwise agreed @@ -16,18 +16,25 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-testpath -Version: 0.2 +Version: 0.3 Release: 0 Summary: Test utilities for code working with files and commands License: MIT Group: Development/Languages/Python Url: https://github.com/jupyter/testpath -Source0: https://github.com/jupyter/testpath/archive/%{version}.tar.gz -Source1: https://raw.githubusercontent.com/jupyter/testpath/master/LICENSE -BuildRequires: python +# 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 +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module pip} BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%python_subpackages %description 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. %prep -%setup0 -q -n testpath-%{version} -cp %{SOURCE1} ./ +cp %{SOURCE0} . +cp %{SOURCE1} . +cp %{SOURCE2} . %build # We don't do anything here %install -mkdir -p %{buildroot}%{python_sitelib} -cp -r testpath %{buildroot}%{python_sitelib} -%py_compile %{buildroot}%{python_sitelib} +%python_expand pip%{$python_bin_suffix} install --root %{buildroot} testpath-%{version}-py2.py3-none-any.whl +%python_expand rm %{buildroot}%{$python_sitelib}/testpath/*.exe -%files +%files %{python_files} %defattr(-,root,root,-) -%doc README.rst -%doc LICENSE -%{python_sitelib}/* +%doc README.rst LICENSE +%{python_sitelib}/testpath-%{version}.dist-info +%{python_sitelib}/testpath/ %changelog diff --git a/testpath-0.3-py2.py3-none-any.whl b/testpath-0.3-py2.py3-none-any.whl new file mode 100644 index 0000000..62e87a0 --- /dev/null +++ b/testpath-0.3-py2.py3-none-any.whl @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f16b2cb3b03e1ada4fb0200b265a4446f92f3ba4b9d88ace34f51c54ab6d294e +size 82971