From owner-svn-ports-all@freebsd.org Sat Jan 18 18:22:50 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3EBBC1FCF06; Sat, 18 Jan 2020 18:22:50 +0000 (UTC) (envelope-from sunpoet@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) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 480RB210MYz4ChX; Sat, 18 Jan 2020 18:22:50 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 1CD5726162; Sat, 18 Jan 2020 18:22:50 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 00IIMnPX081194; Sat, 18 Jan 2020 18:22:49 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 00IIMnE9081190; Sat, 18 Jan 2020 18:22:49 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <202001181822.00IIMnE9081190@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sat, 18 Jan 2020 18:22:49 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r523434 - in head/devel: . py-retype X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/devel: . py-retype X-SVN-Commit-Revision: 523434 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 Jan 2020 18:22:50 -0000 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 +# $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 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