Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Mar 2020 18:27:34 +0000 (UTC)
From:      "Tobias C. Berner" <tcberner@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r528303 - in head/devel: . py-autoflake
Message-ID:  <202003121827.02CIRYB5090695@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: tcberner
Date: Thu Mar 12 18:27:34 2020
New Revision: 528303
URL: https://svnweb.freebsd.org/changeset/ports/528303

Log:
  New port: devel/py-autoflake: Removes unused imports and unused variables from Python code
  
  Removes unused imports and unused variables from Python code. It makes use of
  pyflakes to do this.
  
  By default, autoflake only removes unused imports for modules that are part of
  the standard library. (Other modules may have side effects that make them
  unsafe to remove automatically.) Removal of unused variables is also disabled
  by default.
  
  WWW: https://github.com/myint/autoflake
  
  PR:		244759
  Submitted by:	Goran Mekić <meka@tilda.center>

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

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Thu Mar 12 17:52:21 2020	(r528302)
+++ head/devel/Makefile	Thu Mar 12 18:27:34 2020	(r528303)
@@ -4068,6 +4068,7 @@
     SUBDIR += py-atomicwrites
     SUBDIR += py-atpublic
     SUBDIR += py-attrs
+    SUBDIR += py-autoflake
     SUBDIR += py-automaton
     SUBDIR += py-avro
     SUBDIR += py-aws-sam-translator

Added: head/devel/py-autoflake/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-autoflake/Makefile	Thu Mar 12 18:27:34 2020	(r528303)
@@ -0,0 +1,29 @@
+# $FreeBSD$
+
+PORTNAME=	autoflake
+PORTVERSION=	1.3.1
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	meka@tilda.center
+COMMENT=	Removes unused imports and unused variables from Python code
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pyflakes>=1.1.0:devel/py-pyflakes@${PY_FLAVOR}
+
+TEST_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pytest>0:devel/py-pytest@${PY_FLAVOR}
+
+USES=		python
+USE_PYTHON=	autoplist concurrent distutils
+
+TEST_ENV=	PYTHONPATH=${WRKSRC}/src
+
+NO_ARCH=	yes
+
+do-test:
+	cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts=
+
+.include <bsd.port.mk>

Added: head/devel/py-autoflake/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-autoflake/distinfo	Thu Mar 12 18:27:34 2020	(r528303)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1584024731
+SHA256 (autoflake-1.3.1.tar.gz) = 680cb9dade101ed647488238ccb8b8bfb4369b53d58ba2c8cdf7d5d54e01f95b
+SIZE (autoflake-1.3.1.tar.gz) = 17443

Added: head/devel/py-autoflake/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-autoflake/pkg-descr	Thu Mar 12 18:27:34 2020	(r528303)
@@ -0,0 +1,9 @@
+Removes unused imports and unused variables from Python code. It makes use of
+pyflakes to do this.
+
+By default, autoflake only removes unused imports for modules that are part of
+the standard library. (Other modules may have side effects that make them
+unsafe to remove automatically.) Removal of unused variables is also disabled
+by default.
+
+WWW: https://github.com/myint/autoflake



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