Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 May 2020 20:46:44 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r533813 - in head/devel: . py-tartiflette py-tartiflette/files
Message-ID:  <202005032046.043KkiWP063537@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun May  3 20:46:44 2020
New Revision: 533813
URL: https://svnweb.freebsd.org/changeset/ports/533813

Log:
  Add py-tartiflette 1.2.0
  
  Tartiflette is a GraphQL Server implementation built with Python 3.6+.
  
  WWW: https://github.com/tartiflette/tartiflette

Added:
  head/devel/py-tartiflette/
  head/devel/py-tartiflette/Makefile   (contents, props changed)
  head/devel/py-tartiflette/distinfo   (contents, props changed)
  head/devel/py-tartiflette/files/
  head/devel/py-tartiflette/files/patch-setup.py   (contents, props changed)
  head/devel/py-tartiflette/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sun May  3 20:46:38 2020	(r533812)
+++ head/devel/Makefile	Sun May  3 20:46:44 2020	(r533813)
@@ -5122,6 +5122,7 @@
     SUBDIR += py-tabulator
     SUBDIR += py-tapi
     SUBDIR += py-tarantool-queue
+    SUBDIR += py-tartiflette
     SUBDIR += py-taskflow
     SUBDIR += py-taskflow3
     SUBDIR += py-tblib

Added: head/devel/py-tartiflette/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-tartiflette/Makefile	Sun May  3 20:46:44 2020	(r533813)
@@ -0,0 +1,27 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	tartiflette
+PORTVERSION=	1.2.0
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	GraphQL Engine for Python
+
+LICENSE=	MIT
+
+LIB_DEPENDS=	libgraphqlparser.so:devel/libgraphqlparser
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0<2.0.0:devel/py-cffi@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}lark-parser>=0.8.5:devel/py-lark-parser@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}pytz>=0:devel/py-pytz@${PY_FLAVOR}
+
+USES=		python:3.6+
+USE_PYTHON=	autoplist concurrent distutils
+
+# lib/libgraphqlparser.so is not available until configure phase
+post-configure:
+	@${CP} ${LOCALBASE}/lib/libgraphqlparser.so ${WRKSRC}/tartiflette/language/parsers/libgraphqlparser/cffi/libgraphqlparser.so
+
+.include <bsd.port.mk>

Added: head/devel/py-tartiflette/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-tartiflette/distinfo	Sun May  3 20:46:44 2020	(r533813)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1588450784
+SHA256 (tartiflette-1.2.0.tar.gz) = 96bee792080c5147d431eaf80b2f2f86e7e2fc5957b3ef943d58faacab19a9ce
+SIZE (tartiflette-1.2.0.tar.gz) = 179826

Added: head/devel/py-tartiflette/files/patch-setup.py
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-tartiflette/files/patch-setup.py	Sun May  3 20:46:44 2020	(r533813)
@@ -0,0 +1,25 @@
+--- setup.py.orig	2020-05-02 18:17:15 UTC
++++ setup.py
+@@ -38,13 +38,11 @@ def _build_libgraphqlparser():
+ 
+ class BuildExtCmd(build_ext):
+     def run(self):
+-        _build_libgraphqlparser()
+         build_ext.run(self)
+ 
+ 
+ class BuildPyCmd(build_py):
+     def run(self):
+-        _build_libgraphqlparser()
+         build_py.run(self)
+ 
+ 
+@@ -88,7 +86,7 @@ setup(
+     ],
+     keywords="api graphql protocol api rest relay tartiflette dailymotion",
+     packages=_PACKAGES,
+-    install_requires=["cffi>=1.0.0,<2.0.0", "lark-parser==0.8.5", "pytz"],
++    install_requires=["cffi>=1.0.0,<2.0.0", "lark-parser>=0.8.5", "pytz"],
+     tests_require=_TEST_REQUIRE,
+     extras_require={"test": _TEST_REQUIRE, "benchmark": _BENCHMARK_REQUIRE},
+     cmdclass={"build_ext": BuildExtCmd, "build_py": BuildPyCmd},

Added: head/devel/py-tartiflette/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-tartiflette/pkg-descr	Sun May  3 20:46:44 2020	(r533813)
@@ -0,0 +1,3 @@
+Tartiflette is a GraphQL Server implementation built with Python 3.6+.
+
+WWW: https://github.com/tartiflette/tartiflette



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202005032046.043KkiWP063537>