py-lockfile tweaks:

- drop unneeded RDEP on py-pbr
- fix dash-separated fields in setup.cfg (deprecation warning)
- note in DESCR/COMMENT that this is deprecated (since a looong time) and
that 'fasteners' is an alternative
This commit is contained in:
sthen
2026-01-20 14:15:53 +00:00
parent 05703cae0a
commit 9a7a39fa80
3 changed files with 27 additions and 18 deletions
+4 -10
View File
@@ -1,9 +1,9 @@
COMMENT= platform-independent file locking for Python
COMMENT= deprecated platform-independent file locking for Python
MODPY_DISTV= 0.12.2
DISTNAME= lockfile-${MODPY_DISTV}
PKGNAME= py-${DISTNAME}
REVISION= 12
REVISION= 13
CATEGORIES= sysutils
@@ -13,16 +13,10 @@ HOMEPAGE= https://launchpad.net/pylockfile
PERMIT_PACKAGE= Yes
MODULES= lang/python
BUILD_DEPENDS= devel/py-pbr
RUN_DEPENDS= devel/py-pbr
MODPY_PYBUILD= pbr
MODPY_PI= Yes
MODPY_PYBUILD= setuptools
RUN_DEPENDS= devel/py-pbr
TEST_DEPENDS= textproc/py-sphinx
pre-test:
sed -i "s,^sphinx.*,sphinx," ${WRKSRC}/test-requirements.txt
.include <bsd.port.mk>
@@ -0,0 +1,18 @@
Index: setup.cfg
--- setup.cfg.orig
+++ setup.cfg
@@ -1,11 +1,11 @@
[metadata]
name = lockfile
summary = Platform-independent file locking module
-description-file =
+description_file =
README.rst
author = OpenStack
-author-email = openstack-dev@lists.openstack.org
-home-page = http://launchpad.net/pylockfile
+author_email = openstack-dev@lists.openstack.org
+home_page = http://launchpad.net/pylockfile
classifier =
Intended Audience :: Developers
License :: OSI Approved :: MIT License
+5 -8
View File
@@ -1,8 +1,5 @@
The lockfile package exports a LockFile class which provides a simple API for
locking files. Unlike the Windows msvcrt.locking function, the fcntl.lockf
and flock functions, 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. An implementation based on SQLite is also
provided, more as a demonstration of the possibilities it provides than as
production-quality code.
Deprecated package which exports a LockFile class, providing a simple API for
locking files.
The developers recommend using https://pypi.org/project/fasteners/ or
https://docs.openstack.org/oslo.concurrency/latest/ instead.