Hello community, here is the log from the commit of package python-portalocker for openSUSE:Factory checked in at 2020-06-04 17:54:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-portalocker (Old) and /work/SRC/openSUSE:Factory/.python-portalocker.new.3606 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-portalocker" Thu Jun 4 17:54:02 2020 rev:7 rq:811269 version:1.7.0 Changes: -------- --- /work/SRC/openSUSE:Factory/python-portalocker/python-portalocker.changes 2020-03-18 12:51:45.265187684 +0100 +++ /work/SRC/openSUSE:Factory/.python-portalocker.new.3606/python-portalocker.changes 2020-06-04 17:54:07.908576333 +0200 @@ -1,0 +2,8 @@ +Wed Jun 3 20:15:46 UTC 2020 - John Vandenberg <[email protected]> + +- Update to v1.7.0 + * Fix ResourceWarning unclosed file if LockException is raised +- from v1.6.0 + * Fixed unlocking bug on Windows + +------------------------------------------------------------------- Old: ---- v1.5.2.tar.gz New: ---- v1.7.0.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-portalocker.spec ++++++ --- /var/tmp/diff_new_pack.iQ4ZWo/_old 2020-06-04 17:54:09.168580206 +0200 +++ /var/tmp/diff_new_pack.iQ4ZWo/_new 2020-06-04 17:54:09.168580206 +0200 @@ -1,7 +1,7 @@ # # spec file for package python-portalocker # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2020 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 @@ -18,7 +18,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-portalocker -Version: 1.5.2 +Version: 1.7.0 Release: 0 Summary: Locking library for Python License: Python-2.0 ++++++ v1.5.2.tar.gz -> v1.7.0.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/portalocker-1.5.2/.travis.yml new/portalocker-1.7.0/.travis.yml --- old/portalocker-1.5.2/.travis.yml 2019-11-12 00:08:05.000000000 +0100 +++ new/portalocker-1.7.0/.travis.yml 2020-04-12 18:00:01.000000000 +0200 @@ -1,10 +1,15 @@ sudo: false +dist: xenial language: python python: - '2.7' - '3.4' - '3.5' - '3.6' +- '3.7' +- '3.8' +# TODO: Enable when available +# - '3.9' - pypy before_install: - wheel version diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/portalocker-1.5.2/README.rst new/portalocker-1.7.0/README.rst --- old/portalocker-1.5.2/README.rst 2019-11-12 00:08:05.000000000 +0100 +++ new/portalocker-1.7.0/README.rst 2020-04-12 18:00:01.000000000 +0200 @@ -35,7 +35,9 @@ Tips ---- -On some networked filesystems it might be needed to force a `os.fsync()` before closing the file so it's actually written before another client reads the file. Effectively this comes down to: +On some networked filesystems it might be needed to force a `os.fsync()` before +closing the file so it's actually written before another client reads the file. +Effectively this comes down to: :: @@ -79,9 +81,10 @@ >>> file.write('foo') >>> file.close() -There is no explicit need to unlock the file as it is automatically unlocked -after `file.close()`. If you still feel the need to manually unlock a file -than you can do it like this: +Explicitly unlocking might not be needed in all cases: +https://github.com/AzureAD/microsoft-authentication-extensions-for-python/issues/42#issuecomment-601108266 + +But can be done through: >>> portalocker.unlock(file) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/portalocker-1.5.2/docs/tests.rst new/portalocker-1.7.0/docs/tests.rst --- old/portalocker-1.5.2/docs/tests.rst 2019-11-12 00:08:05.000000000 +0100 +++ new/portalocker-1.7.0/docs/tests.rst 2020-04-12 18:00:01.000000000 +0200 @@ -4,7 +4,7 @@ Module contents --------------- -.. automodule:: tests.tests +.. automodule:: portalocker_tests.tests :members: :private-members: :special-members: @@ -12,12 +12,12 @@ :undoc-members: :show-inheritance: -.. automodule:: tests.test_combined +.. automodule:: portalocker_tests.test_combined :members: :undoc-members: :show-inheritance: -.. automodule:: tests.temporary_file_lock +.. automodule:: portalocker_tests.temporary_file_lock :members: :private-members: :special-members: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/portalocker-1.5.2/portalocker/__about__.py new/portalocker-1.7.0/portalocker/__about__.py --- old/portalocker-1.5.2/portalocker/__about__.py 2019-11-12 00:08:05.000000000 +0100 +++ new/portalocker-1.7.0/portalocker/__about__.py 2020-04-12 18:00:01.000000000 +0200 @@ -1,7 +1,7 @@ __package_name__ = 'portalocker' __author__ = 'Rick van Hattem' __email__ = '[email protected]' -__version__ = '1.5.1' +__version__ = '1.7.0' __description__ = '''Wraps the portalocker recipe for easy usage''' __url__ = 'https://github.com/WoLpH/portalocker' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/portalocker-1.5.2/portalocker/__init__.py new/portalocker-1.7.0/portalocker/__init__.py --- old/portalocker-1.5.2/portalocker/__init__.py 2019-11-12 00:08:05.000000000 +0100 +++ new/portalocker-1.7.0/portalocker/__init__.py 2020-04-12 18:00:01.000000000 +0200 @@ -11,7 +11,7 @@ #: Current author's email address __email__ = __about__.__email__ #: Version number -__version__ = '1.5.1' +__version__ = '1.7.0' #: Package description for Pypi __description__ = __about__.__description__ #: Package homepage diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/portalocker-1.5.2/portalocker/utils.py new/portalocker-1.7.0/portalocker/utils.py --- old/portalocker-1.5.2/portalocker/utils.py 2019-11-12 00:08:05.000000000 +0100 +++ new/portalocker-1.7.0/portalocker/utils.py 2020-04-12 18:00:01.000000000 +0200 @@ -153,6 +153,7 @@ pass else: + fh.close() # We got a timeout... reraising raise exceptions.LockException(exception) @@ -165,6 +166,7 @@ def release(self): '''Releases the currently locked file handle''' if self.fh: + portalocker.unlock(self.fh) self.fh.close() self.fh = None diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/portalocker-1.5.2/tox.ini new/portalocker-1.7.0/tox.ini --- old/portalocker-1.5.2/tox.ini 2019-11-12 00:08:05.000000000 +0100 +++ new/portalocker-1.7.0/tox.ini 2020-04-12 18:00:01.000000000 +0200 @@ -1,5 +1,5 @@ [tox] -envlist = py27, py33, py34, py35, py36, pypy, flake8, docs +envlist = py27, py33, py34, py35, py36, py37, py38, py39, pypy, flake8, docs skip_missing_interpreters = True [testenv] @@ -8,6 +8,9 @@ py34: python3.4 py35: python3.5 py36: python3.6 + py37: python3.7 + py38: python3.8 + py39: python3.9 pypy: pypy deps = -e{toxinidir}[tests]
