Hello community,

here is the log from the commit of package python-testpath for openSUSE:Factory 
checked in at 2017-04-28 09:13:14
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-testpath (Old)
 and      /work/SRC/openSUSE:Factory/.python-testpath.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-testpath"

Fri Apr 28 09:13:14 2017 rev:3 rq:490873 version:0.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-testpath/python-testpath.changes  
2016-02-01 19:56:39.000000000 +0100
+++ /work/SRC/openSUSE:Factory/.python-testpath.new/python-testpath.changes     
2017-04-28 09:13:34.803741014 +0200
@@ -1,0 +2,16 @@
+Mon Apr 24 20:38:14 UTC 2017 - [email protected]
+
+- Switch to wheel-based install.
+- Implement single-spec version.
+
+-------------------------------------------------------------------
+Thu Apr  6 15:33:31 UTC 2017 - [email protected]
+
+- specfile:
+  * update copyright year
+  * LICENSE file is now in tar-ball
+
+- update to version 0.3:
+  (no changelog available)
+
+-------------------------------------------------------------------

Old:
----
  0.2.tar.gz

New:
----
  README.rst
  testpath-0.3-py2.py3-none-any.whl

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-testpath.spec ++++++
--- /var/tmp/diff_new_pack.N1Q7ds/_old  2017-04-28 09:13:35.567633293 +0200
+++ /var/tmp/diff_new_pack.N1Q7ds/_new  2017-04-28 09:13:35.567633293 +0200
@@ -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 @@
 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

++++++ README.rst ++++++
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()

Reply via email to