git: 91ebade69ac8 - main - devel/py-decopatch: Add py-decopatch 1.4.10
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 13 Jun 2025 06:07:38 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=91ebade69ac899ccb6d4fe319422cc658b2076d2
commit 91ebade69ac899ccb6d4fe319422cc658b2076d2
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2025-06-13 06:02:01 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2025-06-13 06:02:01 +0000
devel/py-decopatch: Add py-decopatch 1.4.10
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.
---
MOVED | 1 -
devel/Makefile | 1 +
devel/py-decopatch/Makefile | 25 +++++++++++++++++++++++++
devel/py-decopatch/distinfo | 3 +++
devel/py-decopatch/files/patch-setup.cfg | 10 ++++++++++
devel/py-decopatch/pkg-descr | 4 ++++
6 files changed, 43 insertions(+), 1 deletion(-)
diff --git a/MOVED b/MOVED
index f32d509d4489..546671eaa124 100644
--- a/MOVED
+++ b/MOVED
@@ -4473,7 +4473,6 @@ sysutils/py-upt-freebsd||2025-06-02|Has expired: Depends on expired sysutils/py-
sysutils/py-upt-rubygems||2025-06-02|Has expired: Depends on expired sysutils/py-upt
sysutils/py-upt-pypi||2025-06-02|Has expired: Depends on expired sysutils/py-upt
devel/py-pytest-cases||2025-06-02|Has expired: Depends on expired devel/py-makefun
-devel/py-decopatch||2025-06-02|Has expired: Depends on expired devel/py-makefun
graphics/rubygem-ezprint||2025-06-02|Has expired: Depends on expired graphics/rubygem-pdfkit
databases/datasette||2025-06-02|Has expired: Depends on expired devel/py-pytest-runner
www/py-pydrive2||2025-06-02|Has expired: Depends on expired security/py-oauth2client
diff --git a/devel/Makefile b/devel/Makefile
index cac489310cf5..b8d45f20e88e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4791,6 +4791,7 @@
SUBDIR += py-debugpy
SUBDIR += py-debugtools
SUBDIR += py-decli
+ SUBDIR += py-decopatch
SUBDIR += py-decorator
SUBDIR += py-decoratortools
SUBDIR += py-deepdiff
diff --git a/devel/py-decopatch/Makefile b/devel/py-decopatch/Makefile
new file mode 100644
index 000000000000..bf603f158c61
--- /dev/null
+++ b/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>
diff --git a/devel/py-decopatch/distinfo b/devel/py-decopatch/distinfo
new file mode 100644
index 000000000000..96f4b79508a9
--- /dev/null
+++ b/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
diff --git a/devel/py-decopatch/files/patch-setup.cfg b/devel/py-decopatch/files/patch-setup.cfg
new file mode 100644
index 000000000000..8a5394ac4f2d
--- /dev/null
+++ b/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'
diff --git a/devel/py-decopatch/pkg-descr b/devel/py-decopatch/pkg-descr
new file mode 100644
index 000000000000..7c74ae37ae37
--- /dev/null
+++ b/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.