svn commit: r467653 - in head/www: . py-drf-yasg

Kurt Jaeger pi at FreeBSD.org
Tue Apr 17 20:18:07 UTC 2018


Author: pi
Date: Tue Apr 17 20:18:05 2018
New Revision: 467653
URL: https://svnweb.freebsd.org/changeset/ports/467653

Log:
  New port: www/py-drf-yasg
  
  Generate real Swagger/OpenAPI 2.0 specifications from a Django Rest
  Framework API.
  
  Features:
  
  - full support for nested serializers and schemas
  - response schemas and descriptions
  - model definitions compatible with codegen tools
  - customization hooks at all points in the spec generation process
  - JSON and YAML format for spec
  - bundles latest version of swagger-ui and redoc for viewing the generated
    documentation
  - schema view is cacheable out of the box
  - generated Swagger schema can be automatically validated by
    swagger-spec-validator or flex
  - supports Django REST Framework API versioning with URLPathVersioning
    and NamespaceVersioning (other DRF or custom versioning schemes are
    not currently supported)
  
  WWW: https://github.com/axnsan12/drf-yasg
  
  PR:		227344
  Submitted by:	Kai <freebsd_ports at k-worx.org>

Added:
  head/www/py-drf-yasg/
  head/www/py-drf-yasg/Makefile   (contents, props changed)
  head/www/py-drf-yasg/distinfo   (contents, props changed)
  head/www/py-drf-yasg/pkg-descr   (contents, props changed)
Modified:
  head/www/Makefile

Modified: head/www/Makefile
==============================================================================
--- head/www/Makefile	Tue Apr 17 19:25:05 2018	(r467652)
+++ head/www/Makefile	Tue Apr 17 20:18:05 2018	(r467653)
@@ -1627,6 +1627,7 @@
     SUBDIR += py-djangorestframework-xml
     SUBDIR += py-djangotoolbox
     SUBDIR += py-dojango
+    SUBDIR += py-drf-yasg
     SUBDIR += py-dtflickr
     SUBDIR += py-evernote
     SUBDIR += py-falcon

Added: head/www/py-drf-yasg/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-drf-yasg/Makefile	Tue Apr 17 20:18:05 2018	(r467653)
@@ -0,0 +1,38 @@
+# $FreeBSD$
+
+PORTNAME=	drf-yasg
+DISTVERSION=	1.6.1
+CATEGORIES=	www python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	freebsd_ports at k-worx.org
+COMMENT=	Yet Another Swagger Generator
+
+LICENSE=	BSD3CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE.rst
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}django111>0:www/py-django111@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}djangorestframework>=3.7.7:www/py-djangorestframework@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}coreapi>0:devel/py-coreapi@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}coreschema>0:devel/py-coreschema@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}flex>0:devel/py-flex@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}future>0:devel/py-future@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}inflection>0:devel/py-inflection@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}openapi-codec>0:devel/py-openapi-codec@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}ruamel.yaml>0:devel/py-ruamel.yaml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}swagger-spec-validator>0:devel/py-swagger-spec-validator@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}uritemplate>0:net/py-uritemplate@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	distutils autoplist
+
+NO_ARCH=	yes
+
+post-patch:
+	# Unpin fixed versioning for py-setuptools_scm
+	@${REINPLACE_CMD} -e 's|==|>=|' ${WRKSRC}/requirements/setup.txt
+
+.include <bsd.port.mk>

Added: head/www/py-drf-yasg/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-drf-yasg/distinfo	Tue Apr 17 20:18:05 2018	(r467653)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1522878417
+SHA256 (drf-yasg-1.6.1.tar.gz) = 9da6d4fa16565f2e8ced27f0c543f60aadd032cb28223b9b43cc44d3262f526d
+SIZE (drf-yasg-1.6.1.tar.gz) = 1020368

Added: head/www/py-drf-yasg/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/www/py-drf-yasg/pkg-descr	Tue Apr 17 20:18:05 2018	(r467653)
@@ -0,0 +1,20 @@
+Generate real Swagger/OpenAPI 2.0 specifications from a Django Rest
+Framework API.
+
+Features:
+
+- full support for nested serializers and schemas
+- response schemas and descriptions
+- model definitions compatible with codegen tools
+- customization hooks at all points in the spec generation process
+- JSON and YAML format for spec
+- bundles latest version of swagger-ui and redoc for viewing the generated
+  documentation
+- schema view is cacheable out of the box
+- generated Swagger schema can be automatically validated by
+  swagger-spec-validator or flex
+- supports Django REST Framework API versioning with URLPathVersioning
+  and NamespaceVersioning (other DRF or custom versioning schemes are
+  not currently supported)
+
+WWW: https://github.com/axnsan12/drf-yasg


More information about the svn-ports-head mailing list