Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 16 Jul 2019 19:11:30 +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: r506778 - in head/devel: . py-prance
Message-ID:  <201907161911.x6GJBUDX037492@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Tue Jul 16 19:11:30 2019
New Revision: 506778
URL: https://svnweb.freebsd.org/changeset/ports/506778

Log:
  Add py-prance 0.15.0
  
  Prance provides parsers for Swagger/OpenAPI 2.0 and 3.0 API specifications in
  Python. It uses flex, swagger_spec_validator or openapi_spec_validator to
  validate specifications, but additionally resolves JSON references in accordance
  with the OpenAPI spec.
  
  Mostly the latter involves handling non-URI references; OpenAPI is fine with
  providing relative file paths, whereas JSON references require URIs at this
  point in time.
  
  WWW: https://github.com/jfinkhaeuser/prance

Added:
  head/devel/py-prance/
  head/devel/py-prance/Makefile   (contents, props changed)
  head/devel/py-prance/distinfo   (contents, props changed)
  head/devel/py-prance/pkg-descr   (contents, props changed)
Modified:
  head/devel/Makefile

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Tue Jul 16 18:46:47 2019	(r506777)
+++ head/devel/Makefile	Tue Jul 16 19:11:30 2019	(r506778)
@@ -4751,6 +4751,7 @@
     SUBDIR += py-poyo
     SUBDIR += py-pp
     SUBDIR += py-pqueue
+    SUBDIR += py-prance
     SUBDIR += py-pre-commit
     SUBDIR += py-preshed
     SUBDIR += py-pretend

Added: head/devel/py-prance/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-prance/Makefile	Tue Jul 16 19:11:30 2019	(r506778)
@@ -0,0 +1,28 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	prance
+PORTVERSION=	0.15.0
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Resolving Swagger/OpenAPI 2.0 and 3.0.0 parser
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest-runner>=0:devel/py-pytest-runner@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}chardet>=3.0:textproc/py-chardet@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}requests>=2.21:www/py-requests@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}semver>=2.8:devel/py-semver@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>=1.12:devel/py-six@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}yaml>=5.1:devel/py-yaml@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>

Added: head/devel/py-prance/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-prance/distinfo	Tue Jul 16 19:11:30 2019	(r506778)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1561316125
+SHA256 (prance-0.15.0.tar.gz) = 793f96dc8bba73bf4342f57b3570f5e0a94c30e60f0c802a2aaa302759dd8610
+SIZE (prance-0.15.0.tar.gz) = 458801

Added: head/devel/py-prance/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-prance/pkg-descr	Tue Jul 16 19:11:30 2019	(r506778)
@@ -0,0 +1,10 @@
+Prance provides parsers for Swagger/OpenAPI 2.0 and 3.0 API specifications in
+Python. It uses flex, swagger_spec_validator or openapi_spec_validator to
+validate specifications, but additionally resolves JSON references in accordance
+with the OpenAPI spec.
+
+Mostly the latter involves handling non-URI references; OpenAPI is fine with
+providing relative file paths, whereas JSON references require URIs at this
+point in time.
+
+WWW: https://github.com/jfinkhaeuser/prance



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