Hello community,
here is the log from the commit of package python-filelock for openSUSE:Factory
checked in at 2019-06-13 22:32:01
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-filelock (Old)
and /work/SRC/openSUSE:Factory/.python-filelock.new.4811 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-filelock"
Thu Jun 13 22:32:01 2019 rev:3 rq:708375 version:3.0.12
Changes:
--------
--- /work/SRC/openSUSE:Factory/python-filelock/python-filelock.changes
2019-03-29 20:34:06.770630433 +0100
+++
/work/SRC/openSUSE:Factory/.python-filelock.new.4811/python-filelock.changes
2019-06-13 22:32:02.428406739 +0200
@@ -1,0 +2,8 @@
+Fri Jun 7 13:19:04 UTC 2019 - Marketa Calabkova <[email protected]>
+
+- Update to 3.0.12
+ * fixed python2 setup error
+ * fixed documentation
+ * other small fixes
+
+-------------------------------------------------------------------
Old:
----
v3.0.10.tar.gz
New:
----
v3.0.12.tar.gz
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-filelock.spec ++++++
--- /var/tmp/diff_new_pack.2UawuH/_old 2019-06-13 22:32:03.084406526 +0200
+++ /var/tmp/diff_new_pack.2UawuH/_new 2019-06-13 22:32:03.088406524 +0200
@@ -19,7 +19,7 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-filelock
-Version: 3.0.10
+Version: 3.0.12
Release: 0
Summary: Platform Independent File Lock in Python
License: Unlicense
@@ -52,8 +52,8 @@
%pytest test.py
%files %{python_files}
-%doc README.rst
-%license LICENSE.rst
+%doc README.md
+%license LICENSE
%{python_sitelib}/*
%changelog
++++++ v3.0.10.tar.gz -> v3.0.12.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/py-filelock-3.0.10/.travis.yml
new/py-filelock-3.0.12/.travis.yml
--- old/py-filelock-3.0.10/.travis.yml 2018-11-01 18:15:32.000000000 +0100
+++ new/py-filelock-3.0.12/.travis.yml 2019-05-18 20:08:14.000000000 +0200
@@ -10,10 +10,8 @@
- python: "3.5"
- python: "3.6"
- python: "3.7"
- sudo: required
dist: xenial
- python: "3.8-dev"
- sudo: required
dist: xenial
allow_failures:
- python: "3.8-dev"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/py-filelock-3.0.10/LICENSE
new/py-filelock-3.0.12/LICENSE
--- old/py-filelock-3.0.10/LICENSE 1970-01-01 01:00:00.000000000 +0100
+++ new/py-filelock-3.0.12/LICENSE 2019-05-18 20:08:14.000000000 +0200
@@ -0,0 +1,24 @@
+This is free and unencumbered software released into the public domain.
+
+Anyone is free to copy, modify, publish, use, compile, sell, or
+distribute this software, either in source code form or as a compiled
+binary, for any purpose, commercial or non-commercial, and by any
+means.
+
+In jurisdictions that recognize copyright laws, the author or authors
+of this software dedicate any and all copyright interest in the
+software to the public domain. We make this dedication for the benefit
+of the public at large and to the detriment of our heirs and
+successors. We intend this dedication to be an overt act of
+relinquishment in perpetuity of all present and future rights to this
+software under copyright law.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+OTHER DEALINGS IN THE SOFTWARE.
+
+For more information, please refer to <http://unlicense.org>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/py-filelock-3.0.10/LICENSE.rst
new/py-filelock-3.0.12/LICENSE.rst
--- old/py-filelock-3.0.10/LICENSE.rst 2018-11-01 18:15:32.000000000 +0100
+++ new/py-filelock-3.0.12/LICENSE.rst 1970-01-01 01:00:00.000000000 +0100
@@ -1,27 +0,0 @@
-License
-=======
-
-This is free and unencumbered software released into the public domain.
-
-Anyone is free to copy, modify, publish, use, compile, sell, or
-distribute this software, either in source code form or as a compiled
-binary, for any purpose, commercial or non-commercial, and by any
-means.
-
-In jurisdictions that recognize copyright laws, the author or authors
-of this software dedicate any and all copyright interest in the
-software to the public domain. We make this dedication for the benefit
-of the public at large and to the detriment of our heirs and
-successors. We intend this dedication to be an overt act of
-relinquishment in perpetuity of all present and future rights to this
-software under copyright law.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
-IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
-OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
-ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
-OTHER DEALINGS IN THE SOFTWARE.
-
-For more information, please refer to <http://unlicense.org>
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/py-filelock-3.0.10/MANIFEST.in
new/py-filelock-3.0.12/MANIFEST.in
--- old/py-filelock-3.0.10/MANIFEST.in 2018-11-01 18:15:32.000000000 +0100
+++ new/py-filelock-3.0.12/MANIFEST.in 2019-05-18 20:08:14.000000000 +0200
@@ -1,2 +1,3 @@
-include LICENSE.rst
-include README.rst
+include README.md
+include test.py
+include LICENSE
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/py-filelock-3.0.10/README.md
new/py-filelock-3.0.12/README.md
--- old/py-filelock-3.0.10/README.md 1970-01-01 01:00:00.000000000 +0100
+++ new/py-filelock-3.0.12/README.md 2019-05-18 20:08:14.000000000 +0200
@@ -0,0 +1,127 @@
+# py-filelock
+
+
+
+This package contains a single module, which implements a platform independent
+file lock in Python, which provides a simple way of inter-process
communication:
+
+```Python
+from filelock import Timeout, FileLock
+
+lock = FileLock("high_ground.txt.lock")
+with lock:
+ open("high_ground.txt", "a").write("You were the chosen one.")
+```
+
+**Don't use** a *FileLock* to lock the file you want to write to, instead
create
+a separate *.lock* file as shown above.
+
+
+
+
+## Similar libraries
+
+Perhaps you are looking for something like
+
+* https://pypi.python.org/pypi/pid/2.1.1
+* https://docs.python.org/3.6/library/msvcrt.html#msvcrt.locking
+* or https://docs.python.org/3/library/fcntl.html#fcntl.flock
+
+
+## Installation
+
+*py-filelock* is available via PyPi:
+
+```
+$ pip3 install filelock
+```
+
+
+## Documentation
+
+The documentation for the API is available on
+[readthedocs.org](https://filelock.readthedocs.io/).
+
+
+### Examples
+
+A *FileLock* is used to indicate another process of your application that a
+resource or working
+directory is currently used. To do so, create a *FileLock* first:
+
+```Python
+from filelock import Timeout, FileLock
+
+file_path = "high_ground.txt"
+lock_path = "high_ground.txt.lock"
+
+lock = FileLock(lock_path, timeout=1)
+```
+
+The lock object supports multiple ways for acquiring the lock, including the
+ones used to acquire standard Python thread locks:
+
+```Python
+with lock:
+ open(file_path, "a").write("Hello there!")
+
+lock.acquire()
+try:
+ open(file_path, "a").write("General Kenobi!")
+finally:
+ lock.release()
+```
+
+The *acquire()* method accepts also a *timeout* parameter. If the lock cannot
be
+acquired within *timeout* seconds, a *Timeout* exception is raised:
+
+```Python
+try:
+ with lock.acquire(timeout=10):
+ open(file_path, "a").write("I have a bad feeling about this.")
+except Timeout:
+ print("Another instance of this application currently holds the lock.")
+```
+
+The lock objects are recursive locks, which means that once acquired, they will
+not block on successive lock requests:
+
+```Python
+def cite1():
+ with lock:
+ open(file_path, "a").write("I hate it when he does that.")
+
+def cite2():
+ with lock:
+ open(file_path, "a").write("You don't want to sell me death sticks.")
+
+# The lock is acquired here.
+with lock:
+ cite1()
+ cite2()
+
+# And released here.
+```
+
+
+## FileLock vs SoftFileLock
+
+The *FileLock* is platform dependent while the *SoftFileLock* is not. Use the
+*FileLock* if all instances of your application are running on the same host
and
+a *SoftFileLock* otherwise.
+
+The *SoftFileLock* only watches the existence of the lock file. This makes it
+ultra portable, but also more prone to dead locks if the application crashes.
+You can simply delete the lock file in such cases.
+
+
+## Contributions
+
+Contributions are always welcome, please make sure they pass all tests before
+creating a pull request. Never hesitate to open a new issue, although it may
+take some time for me to respond.
+
+
+## License
+
+This package is [public domain](./LICENSE.rst).
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/py-filelock-3.0.10/README.rst
new/py-filelock-3.0.12/README.rst
--- old/py-filelock-3.0.10/README.rst 2018-11-01 18:15:32.000000000 +0100
+++ new/py-filelock-3.0.12/README.rst 1970-01-01 01:00:00.000000000 +0100
@@ -1,127 +0,0 @@
-py-filelock
-===========
-
-.. image:: https://travis-ci.org/benediktschmitt/py-filelock.svg?branch=master
- :target: https://travis-ci.org/benediktschmitt/py-filelock
-
-This package contains a single module, which implements a platform independent
-file lock in Python, which provides a simple way of inter-process
communication:
-
-.. code-block:: python
-
- from filelock import Timeout, FileLock
-
- lock = FileLock("high_ground.txt.lock")
- with lock:
- open("high_ground.txt", "a").write("You were the chosen one.")
-
-**Don't use** a *FileLock* to lock the file you want to write to, instead
create a separate
-*.lock* file as shown above.
-
-.. image::
https://raw.githubusercontent.com/benediktschmitt/py-filelock/master/example/example.gif
-
-`Animated example
<https://github.com/benediktschmitt/py-filelock/blob/master/example/example.gif>`_
-
-Similar libraries
------------------
-
-Perhaps you are looking for something like
-
-* https://pypi.python.org/pypi/pid/2.1.1
-* https://docs.python.org/3.6/library/msvcrt.html#msvcrt.locking
-* or https://docs.python.org/3/library/fcntl.html#fcntl.flock
-
-Installation
-------------
-
-*py-filelock* is available via PyPi:
-
-.. code-block:: bash
-
- $ pip3 install filelock
-
-Documentation
--------------
-
-The documentation for the API is available on
-`readthedocs.org <https://filelock.readthedocs.io/>`_.
-
-Examples
-^^^^^^^^
-
-A *FileLock* is used to indicate another process of your application that a
resource or working
-directory is currently used. To do so, create a *FileLock* first:
-
-.. code-block:: python
-
- from filelock import Timeout, FileLock
-
- file_path = "high_ground.txt"
- lock_path = "high_ground.txt.lock"
-
- lock = FileLock(lock_path, timeout=1)
-
-The lock object supports multiple ways for acquiring the lock, including the
ones used to acquire
-standard Python thread locks:
-
-.. code-block:: python
-
- with lock:
- open(file_path, "a").write("Hello there!")
-
- lock.acquire()
- try:
- open(file_path, "a").write("General Kenobi!")
- finally:
- lock.release()
-
-The *acquire()* method accepts also a *timeout* parameter. If the lock cannot
be acquired
-within *timeout* seconds, a *Timeout* exception is raised.:
-
-.. code-block:: python
-
- try:
- with lock.acquire(timeout=10):
- open(file_path, "a").write("I have a bad feeling about this.")
- except Timeout:
- print("Another instance of this application currently holds the lock.")
-
-The lock objects are recursive locks, which means that once acquired, they
will not block on
-successive lock requests:
-
-.. code-block:: python
-
- def cite1():
- with lock:
- open(file_path, "a").write("I hate it when he does that.")
-
- def cite2():
- with lock:
- open(file_path, "a").write("You don't want to sell me death
sticks.")
-
- # The lock is acquired here.
- with lock:
- cite1()
- cite2()
-
- # And released here.
-
-FileLock vs SoftFileLock
-^^^^^^^^^^^^^^^^^^^^^^^^
-
-The *FileLock* is platform dependent while the *SoftFileLock* is not. Use the
*FileLock* if all
-instances of your application are running on the same host and a
*SoftFileLock* otherwise.
-
-The *SoftFileLock* only watches the existence of the lock file. This makes it
ultra portable, but
-also more prone to dead locks if the application crashes. You can simply
delete the lock file in
-such cases.
-
-Contributions
--------------
-
-Contributions are always welcome. Never hesitate to open a new issue.
-
-License
--------
-
-This package is `public domain <LICENSE.rst>`_.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/py-filelock-3.0.10/filelock.py
new/py-filelock-3.0.12/filelock.py
--- old/py-filelock-3.0.10/filelock.py 2018-11-01 18:15:32.000000000 +0100
+++ new/py-filelock-3.0.12/filelock.py 2019-05-18 20:08:14.000000000 +0200
@@ -69,7 +69,7 @@
"FileLock"
]
-__version__ = "3.0.10"
+__version__ = "3.0.12"
_logger = None
@@ -235,7 +235,7 @@
:arg float timeout:
The maximum time waited for the file lock.
- If ``timeout <= 0``, there is no timeout and this method will
+ If ``timeout < 0``, there is no timeout and this method will
block until the lock could be acquired.
If ``timeout`` is None, the default :attr:`~timeout` is used.
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/py-filelock-3.0.10/setup.py
new/py-filelock-3.0.12/setup.py
--- old/py-filelock-3.0.10/setup.py 2018-11-01 18:15:32.000000000 +0100
+++ new/py-filelock-3.0.12/setup.py 2019-05-18 20:08:14.000000000 +0200
@@ -34,31 +34,35 @@
# Main
# ------------------------------------------------
try:
- long_description = open("README.rst").read()
-except OSError:
+ long_description = open("README.md").read()
+except (OSError, IOError):
long_description = "not available"
-try:
- license_ = open("LICENSE.rst").read()
-except OSError:
- license_ = "not available"
-
setup(
name = "filelock",
version = __version__,
description = "A platform independent file lock.",
long_description = long_description,
+ long_description_content_type = "text/markdown",
author = "Benedikt Schmitt",
author_email = "[email protected]",
url = "https://github.com/benediktschmitt/py-filelock",
download_url =
"https://github.com/benediktschmitt/py-filelock/archive/master.zip",
py_modules = ["filelock"],
- license = license_,
+ license = "Public Domain <http://unlicense.org>",
+ test_suite="test",
classifiers = [
"License :: Public Domain",
"Development Status :: 5 - Production/Stable",
"Operating System :: OS Independent",
"Programming Language :: Python",
+ "Programming Language :: Python :: 2",
+ "Programming Language :: Python :: 2.7",
+ "Programming Language :: Python :: 3",
+ "Programming Language :: Python :: 3.4",
+ "Programming Language :: Python :: 3.5",
+ "Programming Language :: Python :: 3.6",
+ "Programming Language :: Python :: 3.7",
"Intended Audience :: Developers",
"Topic :: System",
"Topic :: Internet",
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn'
'--exclude=.svnignore' old/py-filelock-3.0.10/test.py
new/py-filelock-3.0.12/test.py
--- old/py-filelock-3.0.10/test.py 2018-11-01 18:15:32.000000000 +0100
+++ new/py-filelock-3.0.12/test.py 2019-05-18 20:08:14.000000000 +0200
@@ -334,6 +334,8 @@
self.assertFalse(lock.is_locked)
return None
+ @unittest.skipIf(hasattr(sys, 'pypy_version_info'),
+ 'del() does not trigger GC in PyPy')
def test_del(self):
"""
Tests, if the lock is released, when the object is deleted.