Skip to content

Commit

Permalink
devel/py-tendo: Add new port
Browse files Browse the repository at this point in the history
The main feature of interest is a single process instance feature which
can be used to ensure only one proces runs at a time, given multiple
users. Implemented via fnctl "under the hood" to create/check/remove
a lock file. While on FreeBSD we have lockf(1), this is not portable.
  • Loading branch information
dlangille committed Mar 2, 2023
1 parent 0d5fb8a commit c5afabd
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -5482,6 +5482,7 @@
SUBDIR += py-telepath
SUBDIR += py-tempora
SUBDIR += py-tenacity
SUBDIR += py-tendo
SUBDIR += py-termcolor
SUBDIR += py-termcolor-whl
SUBDIR += py-termstyle
Expand Down
22 changes: 22 additions & 0 deletions devel/py-tendo/Makefile
@@ -0,0 +1,22 @@
PORTNAME= tendo
PORTVERSION= 0.3.0
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= dvl@FreeBSD.org
COMMENT= Basic functionality that is not provided by Python
WWW= https://github.com/pycontribs/tendo

LICENSE= PSFL
LICENSE_FILE= ${WRKSRC}/LICENSE.txt

USES= python:3.8+
USE_PYTHON= autoplist concurrent distutils

NO_ARCH= yes

post-patch:
${ECHO} "from setuptools import setup ; setup()" > ${WRKSRC}/setup.py

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/py-tendo/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1677680159
SHA256 (tendo-0.3.0.tar.gz) = 68392d686eb6ece71c14ff0fe24340e83c4362525c8b26f144c84f3122ae9e77
SIZE (tendo-0.3.0.tar.gz) = 34368
10 changes: 10 additions & 0 deletions devel/py-tendo/pkg-descr
@@ -0,0 +1,10 @@
Tendo is a python module that adds basic functionality that is not provided by
Python. Read the documentation for more info.

* file-based singleton capability
* transparent Unicode support for text file operations (BOM detection)
* console logging coloring
* enable you to use symlinks under windows
* python tee implementation for executing external programs and redirecting
their output to both console/file
* improved execfile

0 comments on commit c5afabd

Please sign in to comment.