This commit is contained in:
ziggi
2020-05-22 06:01:24 +00:00
parent 2327488661
commit a8a418c011
37 changed files with 364 additions and 38 deletions

View File

@@ -0,0 +1,20 @@
# Created by: Wen Heping <wenheping@gmail.com>
# $FreeBSD: head/devel/py-lockfile/Makefile 472884 2018-06-20 17:05:41Z mat $
PORTNAME= lockfile
PORTVERSION= 0.12.2
CATEGORIES= devel python
MASTER_SITES= CHEESESHOP
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= wg@FreeBSD.org
COMMENT= Platform-independent file locking module
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pbr>=1.8:python/py-pbr@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist distutils
NO_ARCH= yes
.include <bsd.port.mk>

View File

@@ -0,0 +1,2 @@
SHA256 (lockfile-0.12.2.tar.gz) = 6aed02de03cba24efabcd600b30540140634fc06cfa603822d508d5361e9f799
SIZE (lockfile-0.12.2.tar.gz) = 20874

View File

@@ -0,0 +1,8 @@
The lockfile module exports a FileLock class which provides a simple
API for locking files. Unlike the Windows msvcrt.locking function, the
Unix fcntl.flock, fcntl.lockf and the deprecated posixfile module, the
API is identical across both Unix (including Linux and Mac) and Windows
platforms. The lock mechanism relies on the atomic nature of the link
(on Unix) and mkdir (on Windows) system calls.
WWW: https://github.com/smontanaro/pylockfile