Hello community,
here is the log from the commit of package python-testpath for openSUSE:Factory
checked in at 2019-11-22 10:23:36
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-testpath (Old)
and /work/SRC/openSUSE:Factory/.python-testpath.new.26869 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-testpath"
Fri Nov 22 10:23:36 2019 rev:8 rq:747881 version:0.4.4
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-testpath/python-testpath.changes
2019-04-12 09:16:04.553738477 +0200
+++
/work/SRC/openSUSE:Factory/.python-testpath.new.26869/python-testpath.changes
2019-11-22 10:23:39.469304799 +0100
@@ -1,0 +2,8 @@
+Tue Nov 12 16:33:53 UTC 2019 - Todd R <[email protected]>
+
+- Update to version 0.4.4
+ * Add Python 3.7 and 3.8 on Travis CI
+- Update to version 0.4.3
+ * Use path-like protocol for path objects where supported
+
+-------------------------------------------------------------------
Old:
----
testpath-0.4.2.tar.gz
New:
----
testpath-0.4.4.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-testpath.spec ++++++
--- /var/tmp/diff_new_pack.HdYxLm/_old 2019-11-22 10:23:39.937304661 +0100
+++ /var/tmp/diff_new_pack.HdYxLm/_new 2019-11-22 10:23:39.941304661 +0100
@@ -18,7 +18,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-testpath
-Version: 0.4.2
+Version: 0.4.4
Release: 0
Summary: Test utilities for code working with files and commands
License: LGPL-2.1-or-later OR BSD-3-Clause
++++++ testpath-0.4.2.tar.gz -> testpath-0.4.4.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testpath-0.4.2/.travis.yml
new/testpath-0.4.4/.travis.yml
--- old/testpath-0.4.2/.travis.yml 2018-09-26 11:22:07.536054800 +0200
+++ new/testpath-0.4.4/.travis.yml 2019-11-04 14:46:06.502248500 +0100
@@ -1,9 +1,11 @@
language: python
python:
- - "2.7"
- - "3.4"
- - "3.5"
+ - "3.8"
+ - "3.7"
- "3.6"
+ - "3.5"
+ - "3.4"
+ - "2.7"
# command to run tests
script: py.test
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testpath-0.4.2/PKG-INFO new/testpath-0.4.4/PKG-INFO
--- old/testpath-0.4.2/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
+++ new/testpath-0.4.4/PKG-INFO 1970-01-01 01:00:00.000000000 +0100
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: testpath
-Version: 0.4.2
+Version: 0.4.4
Summary: Test utilities for code working with files and commands
Home-page: https://github.com/jupyter/testpath
Author: Jupyter Development Team
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testpath-0.4.2/doc/conf.py
new/testpath-0.4.4/doc/conf.py
--- old/testpath-0.4.2/doc/conf.py 2018-10-02 08:31:26.421049000 +0200
+++ new/testpath-0.4.4/doc/conf.py 2019-11-04 19:01:29.458482000 +0100
@@ -55,7 +55,7 @@
# built documents.
#
# The short X.Y version.
-version = '0.4.2'
+version = '0.4.4'
# The full version, including alpha/beta/rc tags.
release = version
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testpath-0.4.2/setup.py new/testpath-0.4.4/setup.py
--- old/testpath-0.4.2/setup.py 1970-01-01 01:00:00.000000000 +0100
+++ new/testpath-0.4.4/setup.py 1970-01-01 01:00:00.000000000 +0100
@@ -13,7 +13,7 @@
{'test:python_version == "2.7"': ['pathlib2']}
setup(name='testpath',
- version='0.4.2',
+ version='0.4.4',
description='Test utilities for code working with files and commands',
author='Jupyter Development Team',
author_email='[email protected]',
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testpath-0.4.2/testpath/__init__.py
new/testpath-0.4.4/testpath/__init__.py
--- old/testpath-0.4.2/testpath/__init__.py 2018-10-02 08:31:26.435049000
+0200
+++ new/testpath-0.4.4/testpath/__init__.py 2019-11-04 19:01:29.438482000
+0100
@@ -3,4 +3,4 @@
from .env import temporary_env, modified_env, make_env_restorer
from .commands import MockCommand, assert_calls
-__version__ = '0.4.2'
+__version__ = '0.4.4'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/testpath-0.4.2/testpath/asserts.py
new/testpath-0.4.4/testpath/asserts.py
--- old/testpath-0.4.2/testpath/asserts.py 2017-08-20 15:25:13.475373700
+0200
+++ new/testpath-0.4.4/testpath/asserts.py 2019-11-04 14:42:21.389728800
+0100
@@ -21,10 +21,16 @@
'assert_issocket', 'assert_not_issocket',
]
-def _strpath(p):
- if isinstance(p, Path):
- return str(p)
- return p
+
+if hasattr(os, 'fspath'):
+ _strpath = os.fspath
+else:
+ def _strpath(p):
+ if hasattr(p, '__fspath__'):
+ return p.__fspath__()
+ elif isinstance(p, Path):
+ return str(p)
+ return p
def _stat_for_assert(path, follow_symlinks=True, msg=None):
stat = os.stat if follow_symlinks else os.lstat