Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 18 Jan 2020 18:22:49 +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: r523434 - in head/devel: . py-retype
Message-ID:  <202001181822.00IIMnE9081190@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sat Jan 18 18:22:48 2020
New Revision: 523434
URL: https://svnweb.freebsd.org/changeset/ports/523434

Log:
  Add py-retype 19.9.0
  
  Re-apply type annotations from .pyi stubs to your codebase.
  
  It's smart enough to do the following:
  - reapply typing imports
  - reapply function argument annotations
  - reapply function return value annotations
  - reapply method argument and return value annotations
  - reapply function-level variable annotations
  - reapply module-level name annotations
  - reapply module-level type aliases
  - reapply class-level field annotations
  - reapply instance-level field annotations
  - validate existing source annotations against the .pyi file
  - validate source function signatures against the .pyi file
  - read function signature type comments in .pyi files
  - read variable type comments in .pyi files
  - consider existing source type comments as annotations
  - remove duplicate type comments from source when annotations are applied
  - normalize remaining type comments in the source to annotations; this is done
    even if the corresponding .pyi file is missing
  
  WWW: https://github.com/ambv/retype

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

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sat Jan 18 18:22:42 2020	(r523433)
+++ head/devel/Makefile	Sat Jan 18 18:22:48 2020	(r523434)
@@ -4996,6 +4996,7 @@
     SUBDIR += py-resourcepackage
     SUBDIR += py-responses
     SUBDIR += py-retrying
+    SUBDIR += py-retype
     SUBDIR += py-riak_pb
     SUBDIR += py-rlcompleter2
     SUBDIR += py-robotframework

Added: head/devel/py-retype/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-retype/Makefile	Sat Jan 18 18:22:48 2020	(r523434)
@@ -0,0 +1,21 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	retype
+PORTVERSION=	19.9.0
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Re-apply types from .pyi stub files to your codebase
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+USES=		python:3.6+
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>

Added: head/devel/py-retype/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-retype/distinfo	Sat Jan 18 18:22:48 2020	(r523434)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1579339395
+SHA256 (retype-19.9.0.tar.gz) = 846fd135d3ee33c1bad387602a405d808cb99a9a7a47299bfd0e1d25dfb2fedd
+SIZE (retype-19.9.0.tar.gz) = 36630

Added: head/devel/py-retype/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-retype/pkg-descr	Sat Jan 18 18:22:48 2020	(r523434)
@@ -0,0 +1,22 @@
+Re-apply type annotations from .pyi stubs to your codebase.
+
+It's smart enough to do the following:
+- reapply typing imports
+- reapply function argument annotations
+- reapply function return value annotations
+- reapply method argument and return value annotations
+- reapply function-level variable annotations
+- reapply module-level name annotations
+- reapply module-level type aliases
+- reapply class-level field annotations
+- reapply instance-level field annotations
+- validate existing source annotations against the .pyi file
+- validate source function signatures against the .pyi file
+- read function signature type comments in .pyi files
+- read variable type comments in .pyi files
+- consider existing source type comments as annotations
+- remove duplicate type comments from source when annotations are applied
+- normalize remaining type comments in the source to annotations; this is done
+  even if the corresponding .pyi file is missing
+
+WWW: https://github.com/ambv/retype



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