From nobody Sun Mar 05 00:38:25 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PTjVp1N0Sz3vjZC; Sun, 5 Mar 2023 00:38:26 +0000 (UTC) (envelope-from git@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) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PTjVp0rf4z4PHQ; Sun, 5 Mar 2023 00:38:26 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677976706; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Kz1Fa5fAFNRjfT65Hvm0aQfQ4cc7lgWkTTo4CCnX1qY=; b=awx9KpWVy47kCDoxdUOeNMMFex6VsTQi7xDmFaaHDGG3WffxLFmO1ylOdkgS4iXXmUhqSu TW5fmJGvOUDyHY/QMf3ReGBaIHcq6A8iIGX5isq8dOjrz3EvAsPzMaxR4hTX2nZcqpgAIz HhPWrdNVehNhqI8vWqI/ZnvczqzbO2cnR+8nkzS5Lm8rffJiXW+5Ay8Jnn7zZaga52Ptud IAZaXqAa0aOHsr+68Aw1RJuvUeljv1PwJWbu9mIU4l5R2/5zDnN/7Kq9+yUZn3DfIAdcB+ /mAAGdPbv/7VuPDfA21xvYwPwqDMq+Xej8fPoD6qUjwKfjcNduQLsVz3v3Jvqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1677976706; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Kz1Fa5fAFNRjfT65Hvm0aQfQ4cc7lgWkTTo4CCnX1qY=; b=NZOFIRNwyXuH/y1w1JOkpGQ/SWySs5+yDnCi3Cb9hiGmLrxxeIKmrKv++qQPJ4SoKNst99 RSJ5XbfNbG0aTRfbpmajF8YItkqwahmKqF/ToC5oYAwyY1LWhD0h6RkFAqJg/2+7/AZjTA WYVgjW9p31J7jfYOqjTuNo7fe0j0CUL0UtuSNOj9sfQ8osARDdVdsfrjQj5le5QKGPVrsg PpHtv2mBkig3O9DBe4DhOfU53WNNpZo5WcoQLEQgg8evMoCltQY+5R++Wm/qdXvWPEQF/w VnKpanDHj42/nlXi2Mdza83OSuOsmFjY1z/MNxqBH6NkZJ1BgkmhkLHWJR3DVw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1677976706; a=rsa-sha256; cv=none; b=lcGUtBENEZ209QPcNVwYX1EtHVLNLpc0TzL3QwI5VoZDMFY5nLOqt9MJ3nleEjXhXTNBWZ nwWYZMvnZFlp0EFwqdfniz/5xG5Ghz4FKtPIxHe7do/3rl14jBAIPQuLcKd5MNIRYi+dZQ /yphTuJecIbZhnVz6uBhI4ANQZ36Bflc1OenZ52eQQHWk2UgmQK1hYFz9+8R79Q1O1JTZI tfiogZohBz4feHdP6fhtYecaATWoeNSEe83oBD8DdJMz8KlaOsEozg1CgS6zjMUimch9ZI d6zlJ2M5sjbELVzIybP5EIysg1tFklR6AOuVGaZDDICBa4M4HP0O+O6AeI5Ktw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PTjVn6zhVz119S; Sun, 5 Mar 2023 00:38:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 3250cPAX086772; Sun, 5 Mar 2023 00:38:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 3250cP6O086771; Sun, 5 Mar 2023 00:38:25 GMT (envelope-from git) Date: Sun, 5 Mar 2023 00:38:25 GMT Message-Id: <202303050038.3250cP6O086771@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Matthew Seaman Subject: git: 5948bc86943b - main - devel/py-flake8-future-annotations: new port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: matthew X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 5948bc86943b49d856ce083ecd34facb5f561753 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by matthew: URL: https://cgit.FreeBSD.org/ports/commit/?id=5948bc86943b49d856ce083ecd34facb5f561753 commit 5948bc86943b49d856ce083ecd34facb5f561753 Author: Matthew Seaman AuthorDate: 2023-03-04 22:04:18 +0000 Commit: Matthew Seaman CommitDate: 2023-03-05 00:38:20 +0000 devel/py-flake8-future-annotations: new port Verifies python 3.7+ files use from __future__ import annotations if a type is used in the module that can be rewritten using PEP 563. Pairs well with pyupgrade with the --py37-plus flag or higher, since pyupgrade only replaces type annotations with the PEP 563 rules if from __future__ import annotations is present. --- devel/Makefile | 1 + devel/py-flake8-future-annotations/Makefile | 22 ++++++++++++++++++++++ devel/py-flake8-future-annotations/distinfo | 3 +++ devel/py-flake8-future-annotations/pkg-descr | 6 ++++++ 4 files changed, 32 insertions(+) diff --git a/devel/Makefile b/devel/Makefile index 29207c2a0b0a..f67634c62a0a 100644 --- a/devel/Makefile +++ b/devel/Makefile @@ -4592,6 +4592,7 @@ SUBDIR += py-flake8-bugbear SUBDIR += py-flake8-builtins SUBDIR += py-flake8-docstrings + SUBDIR += py-flake8-future-annotations SUBDIR += py-flake8-import-order SUBDIR += py-flake8-polyfill SUBDIR += py-flake8-print diff --git a/devel/py-flake8-future-annotations/Makefile b/devel/py-flake8-future-annotations/Makefile new file mode 100644 index 000000000000..b866504a477c --- /dev/null +++ b/devel/py-flake8-future-annotations/Makefile @@ -0,0 +1,22 @@ +PORTNAME= flake8-future-annotations +PORTVERSION= 1.1.0 +CATEGORIES= devel python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= matthew@FreeBSD.org +COMMENT= Verifies python 3.7+ files use from __future__ import annotations +WWW= https://pypi.org/project/flake8-future-annotations/ + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}flake8>0:devel/py-flake8@${PY_FLAVOR} + +# The authors claim python 3.7+, but the py-flake8 port requires 3.8+ +USES= python:3.8+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/devel/py-flake8-future-annotations/distinfo b/devel/py-flake8-future-annotations/distinfo new file mode 100644 index 000000000000..d2e5cd4f788a --- /dev/null +++ b/devel/py-flake8-future-annotations/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1677965698 +SHA256 (flake8-future-annotations-1.1.0.tar.gz) = df416bd2b9e1eda7ea639a5fd2a083dabb942ffe49d197f836df380d0dcf6608 +SIZE (flake8-future-annotations-1.1.0.tar.gz) = 6832 diff --git a/devel/py-flake8-future-annotations/pkg-descr b/devel/py-flake8-future-annotations/pkg-descr new file mode 100644 index 000000000000..7a055a03df9b --- /dev/null +++ b/devel/py-flake8-future-annotations/pkg-descr @@ -0,0 +1,6 @@ +Verifies python 3.7+ files use from __future__ import annotations if a +type is used in the module that can be rewritten using PEP 563. + +Pairs well with pyupgrade with the --py37-plus flag or higher, since +pyupgrade only replaces type annotations with the PEP 563 rules if +from __future__ import annotations is present.