From nobody Sun Mar 31 14:37:39 2024 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4V6xZD0Jcmz5G9Tp; Sun, 31 Mar 2024 14:37:40 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4V6xZC3K28z4g3J; Sun, 31 Mar 2024 14:37:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711895859; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RJsVN68nKkSFdcA8tAGIN0kwauCZg+dGCNN25OnzmpQ=; b=gDwocuglaIy+FTHGpPPSNn4R5TlZVZnXVo0ADYGyy96++Tj5Oxsj/xi81q2IgQI+Yf77Nt fX15pA4abcqKMbqk+uv7dEWAQNHUM0+jheGF8d4E2zzGTrS2kB7Xrqme63q86qeDTg9uME 0e6l49bznvazAajVJsiicfxq1zckijAgY8Lv07SnzNS2Cr64u7yzpUz5086SsBrBvdWHCe q+WGDJ14pSmwMvSCqI3mdWSjYLz+qOt0pVaSOPY5z+lBeHiPQrt53VgPn0n3Qcj4PpZARw 0Rjp4wKYqKRHMq+03eWe3jKo7G4gisOBCA6IBxWv8MeI3axP2Jq9CET1L/8krg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1711895859; a=rsa-sha256; cv=none; b=x8k0pTwREcLzC+hG6I+D5w6ytKeF/Xu7+qDvT2A/sF0kTXTnhYPRPgOKPPeNUZYmVpp7PX +virf3t/GvPn8uPj77xvSCNMxlctfmmN2n3qxRkvvloGhXzp/F6qY9RafwmTJfmYDU1jas qQ7pljosIqN45qCkEeIKlDHmfy8oZ/jI9DKhDZQExvs3+C/Z6rqREmkP4GcTlVh9z7ft3d VEtgMumLLmbdjkI8C79ALS5H7bZfUgtNb/mrdPVEdbLWdigYcYfqL0bs4wjWQ32v4k8exw PuCbE0yvz+BvWM8eZC46Ml9uGr65lyWr/TVKyCXKOrwiO4is/YP0l/RD8gjkCg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1711895859; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RJsVN68nKkSFdcA8tAGIN0kwauCZg+dGCNN25OnzmpQ=; b=kIcCEQwhFjcqSO6EGjvP+2IZIindyoPZzkKyNk04BwO4ue2i9L8Z2yfwaG2KL3eZCunAX+ MdVLyvRnBr9gDL6cLfzBs89T8X3dndZBNm87shwolEsnFKpEmGHPryTxTOO51IAC3GokPX gQQ5MeL8eDGb5/FJvKAISOpIYG1CXuddRI521mS1HMN1M+5c3td05iTVCjgm0rz9ArCkPJ cMbF3GOgOCowCkOTCsT8fbC2rdCPp7Ti23zinG29mx7ct46QVBSfPGZJvzYMH6y6OjvNb1 K1MhPzP1CMj/aIG1V4bXhLRLko0Oul3OdRCW4nB56ueYWAUlq7F9NXy+FUJS/Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4V6xZC2wWPzhHm; Sun, 31 Mar 2024 14:37:39 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 42VEbdhE001840; Sun, 31 Mar 2024 14:37:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 42VEbdaP001837; Sun, 31 Mar 2024 14:37:39 GMT (envelope-from git) Date: Sun, 31 Mar 2024 14:37:39 GMT Message-Id: <202403311437.42VEbdaP001837@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kai Knoblich Subject: git: 20ae8fa42c29 - main - www/py-strawberry-graphql-django: New port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kai X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 20ae8fa42c295517d587de9c226cac67397d5a69 Auto-Submitted: auto-generated The branch main has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=20ae8fa42c295517d587de9c226cac67397d5a69 commit 20ae8fa42c295517d587de9c226cac67397d5a69 Author: Kai Knoblich AuthorDate: 2024-03-31 14:16:52 +0000 Commit: Kai Knoblich CommitDate: 2024-03-31 14:34:36 +0000 www/py-strawberry-graphql-django: New port This package provides powerful tools to generate GraphQL types, queries, mutations and resolvers from Django models. Supported Features: * GraphQL type generation from models * Filtering, pagination and ordering * Basic create, retrieve, update and delete (CRUD) types and mutations * Basic Django auth support, current user query, login and logout mutations * Django sync and async views * Permission extension using django's permissioning system * Relay support with automatic resolvers generation * Query optimization to improve performance and avoid common pitfalls (e.g n+1) * Debug Toolbar integration with graphiql to display metrics like SQL queries * Unit test integration https://github.com/strawberry-graphql/strawberry-django --- www/Makefile | 1 + www/py-strawberry-graphql-django/Makefile | 34 ++++++++++++++++++++++++++++++ www/py-strawberry-graphql-django/distinfo | 3 +++ www/py-strawberry-graphql-django/pkg-descr | 15 +++++++++++++ 4 files changed, 53 insertions(+) diff --git a/www/Makefile b/www/Makefile index 2d6c2f6a1bc9..d688b7b84844 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1844,6 +1844,7 @@ SUBDIR += py-spyne SUBDIR += py-sseclient SUBDIR += py-starlette + SUBDIR += py-strawberry-graphql-django SUBDIR += py-swapper SUBDIR += py-textile SUBDIR += py-ticketutil diff --git a/www/py-strawberry-graphql-django/Makefile b/www/py-strawberry-graphql-django/Makefile new file mode 100644 index 000000000000..55cb3ce0d6ab --- /dev/null +++ b/www/py-strawberry-graphql-django/Makefile @@ -0,0 +1,34 @@ +PORTNAME= strawberry-graphql-django +DISTVERSION= 0.36.0 +CATEGORIES= www python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= strawberry_graphql_django-${DISTVERSION} + +MAINTAINER= kai@FreeBSD.org +COMMENT= Strawberry GraphQL Django extension +WWW= https://github.com/strawberry-graphql/strawberry-django + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}poetry-core>=1.0.0:devel/py-poetry-core@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django32>=3.2:www/py-django32@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}strawberry-graphql>=0.212.0:devel/py-strawberry-graphql@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist pep517 + +NO_ARCH= yes + +OPTIONS_DEFINE= DEBUG-TOOLBAR ENUM +OPTIONS_DEFAULT= DEBUG-TOOLBAR ENUM + +DEBUG-TOOLBAR_DESC= Debug support +ENUM_DESC= Integration for Django's TextChoices/IntegerChoices enumerations + +DEBUG-TOOLBAR_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django-debug-toolbar>=3.4:www/py-django-debug-toolbar@${PY_FLAVOR} +ENUM_RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}django-choices-field>=2.2.2:www/py-django-choices-field@${PY_FLAVOR} + +.include diff --git a/www/py-strawberry-graphql-django/distinfo b/www/py-strawberry-graphql-django/distinfo new file mode 100644 index 000000000000..f6b3b3932c73 --- /dev/null +++ b/www/py-strawberry-graphql-django/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1711884002 +SHA256 (strawberry_graphql_django-0.36.0.tar.gz) = 37b7875a49b72e405ab275efcd6fe953a45cf9b3e2c45d57bae9113cbe8d18c5 +SIZE (strawberry_graphql_django-0.36.0.tar.gz) = 68951 diff --git a/www/py-strawberry-graphql-django/pkg-descr b/www/py-strawberry-graphql-django/pkg-descr new file mode 100644 index 000000000000..bea2083c6410 --- /dev/null +++ b/www/py-strawberry-graphql-django/pkg-descr @@ -0,0 +1,15 @@ +This package provides powerful tools to generate GraphQL types, queries, +mutations and resolvers from Django models. + +Supported Features: + +* GraphQL type generation from models +* Filtering, pagination and ordering +* Basic create, retrieve, update and delete (CRUD) types and mutations +* Basic Django auth support, current user query, login and logout mutations +* Django sync and async views +* Permission extension using django's permissioning system +* Relay support with automatic resolvers generation +* Query optimization to improve performance and avoid common pitfalls (e.g n+1) +* Debug Toolbar integration with graphiql to display metrics like SQL queries +* Unit test integration