git: 54cb2983d563 - main - devel/py-poetry-types: Add py-poetry-types 0.3.5

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 18 Apr 2023 18:08:12 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=54cb2983d563b6d8abca63592918bd96c7b706dc

commit 54cb2983d563b6d8abca63592918bd96c7b706dc
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-04-18 17:51:36 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-04-18 18:00:41 +0000

    devel/py-poetry-types: Add py-poetry-types 0.3.5
    
    poetry-types is a plugin to poetry for the poetry plugin feature. It
    installs/removes/updates typing stubs via following commands:
    - poetry types add <package names>
    - poetry types remove <package names>
    - poetry types update <package names>
---
 devel/Makefile                                   |  1 +
 devel/py-poetry-types/Makefile                   | 25 ++++++++++++++++++++++++
 devel/py-poetry-types/distinfo                   |  3 +++
 devel/py-poetry-types/files/patch-pyproject.toml | 11 +++++++++++
 devel/py-poetry-types/pkg-descr                  |  5 +++++
 5 files changed, 45 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index 3041613f3668..62613a588556 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -5106,6 +5106,7 @@
     SUBDIR += py-poetry-dynamic-versioning
     SUBDIR += py-poetry-plugin-export
     SUBDIR += py-poetry-semver
+    SUBDIR += py-poetry-types
     SUBDIR += py-poetry2setup
     SUBDIR += py-polib
     SUBDIR += py-pooch
diff --git a/devel/py-poetry-types/Makefile b/devel/py-poetry-types/Makefile
new file mode 100644
index 000000000000..a1e4b781b7c5
--- /dev/null
+++ b/devel/py-poetry-types/Makefile
@@ -0,0 +1,25 @@
+PORTNAME=	poetry-types
+PORTVERSION=	0.3.5
+CATEGORIES=	devel python
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+DISTNAME=	poetry_types-${PORTVERSION}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Poetry plugin that adds/removes type stubs as dependencies
+WWW=		https://github.com/jvllmr/poetry-types
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}packaging>=21.3:devel/py-packaging@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}poetry>=1.2<2:devel/py-poetry@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}tomlkit>=0.11.4<0.12:textproc/py-tomlkit@${PY_FLAVOR}
+
+USES=		python:3.7+
+USE_PYTHON=	autoplist concurrent pep517
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/devel/py-poetry-types/distinfo b/devel/py-poetry-types/distinfo
new file mode 100644
index 000000000000..3a9b51f3b238
--- /dev/null
+++ b/devel/py-poetry-types/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1681052888
+SHA256 (poetry_types-0.3.5.tar.gz) = 8178e5ceb8d4ec01cf5eeba128736442c27faec9171ae525372b3812a82d85ec
+SIZE (poetry_types-0.3.5.tar.gz) = 6443
diff --git a/devel/py-poetry-types/files/patch-pyproject.toml b/devel/py-poetry-types/files/patch-pyproject.toml
new file mode 100644
index 000000000000..44bfc3ce48ce
--- /dev/null
+++ b/devel/py-poetry-types/files/patch-pyproject.toml
@@ -0,0 +1,11 @@
+--- pyproject.toml.orig	2022-12-29 14:10:46 UTC
++++ pyproject.toml
+@@ -16,7 +16,7 @@ classifiers = [
+ python = "^3.7"
+ poetry = "^1.2"
+ tomlkit = "^0.11.4"
+-packaging = "^21.3"
++packaging = ">=21.3"
+ 
+ [tool.poetry.group.dev.dependencies]
+ pytest = "^7.0"
diff --git a/devel/py-poetry-types/pkg-descr b/devel/py-poetry-types/pkg-descr
new file mode 100644
index 000000000000..349e3a52cab9
--- /dev/null
+++ b/devel/py-poetry-types/pkg-descr
@@ -0,0 +1,5 @@
+poetry-types is a plugin to poetry for the poetry plugin feature. It
+installs/removes/updates typing stubs via following commands:
+- poetry types add <package names>
+- poetry types remove <package names>
+- poetry types update <package names>