Skip to content

Commit

Permalink
devel/py-decopatch: Add py-decopatch 1.4.10
Browse files Browse the repository at this point in the history
Because of a tiny oddity in the python language, writing decorators without help
can be a pain because you have to handle the no-parenthesis usage explicitly.
decopatch provides a simple way to solve this issue so that writing decorators
is simple and straightforward.
  • Loading branch information
sunpoet committed Sep 11, 2023
1 parent 9ab6753 commit 3892971
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions devel/Makefile
Expand Up @@ -4576,6 +4576,7 @@
SUBDIR += py-debtcollector
SUBDIR += py-debugpy
SUBDIR += py-debugtools
SUBDIR += py-decopatch
SUBDIR += py-decorator
SUBDIR += py-decoratortools
SUBDIR += py-deepdiff
Expand Down
25 changes: 25 additions & 0 deletions devel/py-decopatch/Makefile
@@ -0,0 +1,25 @@
PORTNAME= decopatch
PORTVERSION= 1.4.10
CATEGORIES= devel python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}

MAINTAINER= sunpoet@FreeBSD.org
COMMENT= Create decorators easily in python
WWW= https://smarie.github.io/python-decopatch/ \
https://github.com/smarie/python-decopatch

LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE

BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools>=39.2:devel/py-setuptools@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}wheel>=0:devel/py-wheel@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}makefun>=1.5.0:devel/py-makefun@${PY_FLAVOR}

USES= python
USE_PYTHON= autoplist concurrent pep517

NO_ARCH= yes

.include <bsd.port.mk>
3 changes: 3 additions & 0 deletions devel/py-decopatch/distinfo
@@ -0,0 +1,3 @@
TIMESTAMP = 1694348224
SHA256 (decopatch-1.4.10.tar.gz) = 957f49c93f4150182c23f8fb51d13bb3213e0f17a79e09c8cca7057598b55720
SIZE (decopatch-1.4.10.tar.gz) = 69538
10 changes: 10 additions & 0 deletions devel/py-decopatch/files/patch-setup.cfg
@@ -0,0 +1,10 @@
--- setup.cfg.orig 2022-03-01 08:57:14 UTC
+++ setup.cfg
@@ -27,7 +27,6 @@ classifiers =
[options]
setup_requires =
setuptools_scm
- pytest-runner
install_requires =
makefun>=1.5.0
funcsigs;python_version<'3.3'
4 changes: 4 additions & 0 deletions devel/py-decopatch/pkg-descr
@@ -0,0 +1,4 @@
Because of a tiny oddity in the python language, writing decorators without help
can be a pain because you have to handle the no-parenthesis usage explicitly.
decopatch provides a simple way to solve this issue so that writing decorators
is simple and straightforward.

0 comments on commit 3892971

Please sign in to comment.