python-lockfile - file locking library for Python — Python 2 library

Property Value
Distribution Ubuntu 18.04 LTS (Bionic Beaver)
Repository Ubuntu Main amd64
Package name python-lockfile
Package version 0.12.2
Package release 2
Package architecture all
Package type deb
Installed size 64 B
Download size 14.25 KB
Official Mirror
The ‘lockfile’ library exports a ‘LockFile’ class which provides a
simple API for locking files.
The appropriate implementation for ‘LockFile’ is chosen automatically
based on the OS capabilities for an atomic filesystem operation.
These implementations are also available for explicit use as
‘LinkLockFile’ and ‘MkdirLockFile’.
Other back ends are possible with the same semantics. Examples
included are:
* ‘SQLiteLockFile’, using records in an SQLite database.
* ‘PIDLockFile’, using the semantics of a Unix PID file.
Unlike other Python locking libraries (the Windows ‘msvcrt.locking’
function, the Unix ‘fcntl.flock’, ‘fcntl.lockf’, and the deprecated
‘posixfile’ module), the API is identical across both Unix (including
GNU/Linux and MacOS) and Windows platforms.
This package installs the Python 2 library.


Package Version Architecture Repository
python-lockfile_0.12.2-2_all.deb 0.12.2 all Ubuntu Main
python-lockfile - - -


Name Value
python:any >= 2.7.5-5~
python:any << 2.8


Type URL
Binary Package python-lockfile_0.12.2-2_all.deb
Source Package python-lockfile

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install python-lockfile deb package:
    # sudo apt-get install python-lockfile




2016-08-21 - Ben Finney <>
python-lockfile (1:0.12.2-2) unstable; urgency=medium
* The “Tuğçe Albayrak” release.
* Acknowledge non-maintainer upload “1:0.10.2-2.1”.
Thanks, Neil Williams.
* debian/*:
Update my email address for Debian work.
* debian/copyright:
* Update copyright notices.
* Distinguish license conditions from license grants.
* Document explicit additional grant of license to a file.
* Document copyright information for smoke tests.
* debian/tests/
* Add smoke test suite to verify distribution is installed.
* debian/tests/control, debian/tests/smoke-python{2,3}:
* Add smoke test suite to verify distribution is installed.
* debian/control, debian/bzr-buildpackage.conf, debian/gbp.conf:
* Migrate packaging VCS to Git at NotABug.
* Remove superfluous configuration for Bzr-buildpackage.
* Add configuration for Git-buildpackage.
* debian/README.source:
* Document how the source package is built.
* debian/control:
* Declare “Standards-Version: 3.9.8”.
* Declare versioned build dependency on ‘pbr’ library,
to match upstream build system's declaration.
Closes: bug#834626, thanks to Thomas Goirand for the report.
2016-02-23 - Ben Finney <>
python-lockfile (1:0.12.2-1) unstable; urgency=medium
* The “Khalil Ahmad” release.
* New upstream version.
Highlights since last release:
* Minimum Python 2 version is now 2.7.
* debian/control:
* Declare “Standards-Version: 3.9.7”.
* Add “Build-Depends: python{,3}-setuptools” for the Distutils script.
Closes: bug#789825, thanks to Artur Rona for the report.
* Update package description to accurately describe latest behaviour.
* Add build dependencies for all supported Python environments.
* Add dependencies for building Sphinx documentation.
* Add placeholder for Sphinx documentation binary dependencies.
* Set compatible Python 2 versions to “>= 2.7”.
* Set “VCS-*” fields to URLs for encrypted Alioth services.
* Set “Homepage” field to URL for encrypted PyPI service.
* debian/docs, debian/*.docs:
* Move to package-specific ‘dh_installdocs’ configuration files.
* Follow change of document name ‘README’ → ‘README.rst’.
* Add new upstream ‘AUTHORS’ document.
* debian/rules:
* Upstream changelog now has conventional name, remove special handling.
* Build documentation using upstream Sphinx configuration.
* Use Debhelper to refine Sphinx documentation for package.
* debian/clean, debian/rules:
* Remove ‘dh_clean’ configuration, can't remove directories this way.
Add special handling for ‘doc/html/’ in ‘dh_auto_clean’ override.
* debian/python-lockfile-doc.{docs,doc-base}:
* Install generated API documentation.
* debian/copyright:
* Add known email addresses for all parties.
* Add editor hints.
* Wrap long lines in flowed text paragraphs.
2016-02-20 - Neil Williams <>
python-lockfile (1:0.10.2-2.1) unstable; urgency=medium
* Non-maintainer upload.
* Add build-depends on setuptools (Closes: #789825)

See Also

Package Description
python-logutils-doc_0.3.3-5_all.deb handlers for the Python standard library's logging package - docs
python-logutils_0.3.3-5_all.deb handlers for the Python standard library's logging package - Python 2.x
python-lxml-doc_4.2.1-1_all.deb pythonic binding for the libxml2 and libxslt libraries (documentation)
python-lxml_4.2.1-1_amd64.deb pythonic binding for the libxml2 and libxslt libraries
python-magnumclient-doc_2.8.0-0ubuntu1_all.deb client library for Magnum API - doc
python-magnumclient_2.8.0-0ubuntu1_all.deb client library for Magnum API - Python 2.x
python-mako-doc_1.0.7+ds1-1_all.deb documentation for the Mako Python library
python-mako_1.0.7+ds1-1_all.deb fast and lightweight templating for the Python platform
python-manilaclient-doc_1.21.0-0ubuntu1_all.deb OpenStack shared file system as a service - client doc
python-manilaclient_1.21.0-0ubuntu1_all.deb OpenStack shared file system as a service - Python 2.7 client
python-markupsafe_1.0-1build1_amd64.deb HTML/XHTML/XML string library for Python
python-memcache_1.57-2_all.deb pure Python memcached client
python-microversion-parse-doc_0.1.4-2_all.deb OpenStack microversion header parsing library - doc
python-microversion-parse_0.1.4-2_all.deb OpenStack microversion header parsing library - Python 2.7
python-migrate-doc_0.11.0-2_all.deb Database schema migration for SQLAlchemy - doc