git: b1caefe448b9 - main - devel/py-shpyx: Add py-shpyx 0.0.29
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 05 Sep 2024 06:19:33 UTC
The branch main has been updated by sunpoet:
URL: https://cgit.FreeBSD.org/ports/commit/?id=b1caefe448b93ce97166b22de7301d54fcb38437
commit b1caefe448b93ce97166b22de7301d54fcb38437
Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2024-09-05 05:14:05 +0000
Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2024-09-05 06:11:19 +0000
devel/py-shpyx: Add py-shpyx 0.0.29
shpyx is a simple, lightweight and typed library for running shell commands in
Python.
Use shpyx.run to run a shell command in a subprocess.
---
devel/Makefile | 1 +
devel/py-shpyx/Makefile | 21 +++++++++++++++++++++
devel/py-shpyx/distinfo | 3 +++
devel/py-shpyx/files/patch-pyproject.toml | 11 +++++++++++
devel/py-shpyx/pkg-descr | 4 ++++
5 files changed, 40 insertions(+)
diff --git a/devel/Makefile b/devel/Makefile
index 60915f1857a4..48bbe136778e 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5812,6 +5812,7 @@
SUBDIR += py-sh
SUBDIR += py-shapely
SUBDIR += py-shellingham
+ SUBDIR += py-shpyx
SUBDIR += py-shtab
SUBDIR += py-signalr-client-aio
SUBDIR += py-simple-parsing
diff --git a/devel/py-shpyx/Makefile b/devel/py-shpyx/Makefile
new file mode 100644
index 000000000000..982d5029681a
--- /dev/null
+++ b/devel/py-shpyx/Makefile
@@ -0,0 +1,21 @@
+PORTNAME= shpyx
+PORTVERSION= 0.0.29
+CATEGORIES= devel python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Run shell commands in Python
+WWW= https://github.com/Apakottur/shpyx
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.9.0:devel/py-poetry-core@${PY_FLAVOR}
+
+USES= python:3.9+
+USE_PYTHON= autoplist concurrent pep517
+
+NO_ARCH= yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-shpyx/distinfo b/devel/py-shpyx/distinfo
new file mode 100644
index 000000000000..4a14d8621e34
--- /dev/null
+++ b/devel/py-shpyx/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1724084482
+SHA256 (shpyx-0.0.29.tar.gz) = b8fd641ab01560bb2abf9c5a94db6f51979e7b4849674533c4644e9ee335258e
+SIZE (shpyx-0.0.29.tar.gz) = 10462
diff --git a/devel/py-shpyx/files/patch-pyproject.toml b/devel/py-shpyx/files/patch-pyproject.toml
new file mode 100644
index 000000000000..6a444d491f96
--- /dev/null
+++ b/devel/py-shpyx/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig 2024-08-12 10:34:34 UTC
++++ pyproject.toml
+@@ -1,6 +1,6 @@
+ [build-system]
+-requires = ["poetry==1.8.3"]
+-build-backend = "poetry.masonry.api"
++requires = ["poetry-core>=1.9.0"]
++build-backend = "poetry.core.masonry.api"
+
+ [tool.poetry]
+ name = "shpyx"
diff --git a/devel/py-shpyx/pkg-descr b/devel/py-shpyx/pkg-descr
new file mode 100644
index 000000000000..aca486ff9806
--- /dev/null
+++ b/devel/py-shpyx/pkg-descr
@@ -0,0 +1,4 @@
+shpyx is a simple, lightweight and typed library for running shell commands in
+Python.
+
+Use shpyx.run to run a shell command in a subprocess.