Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Jan 2020 04:06:53 +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: r522084 - in head/devel: . py-libcst
Message-ID:  <202001050406.00546re2047723@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sun Jan  5 04:06:53 2020
New Revision: 522084
URL: https://svnweb.freebsd.org/changeset/ports/522084

Log:
  Add py-libcst 0.2.6
  
  LibCST is a Concrete Syntax Tree (CST) parser and serializer library for Python.
  
  LibCST parses Python source code as a CST tree that keeps all formatting details
  (comments, whitespaces, parentheses, etc). It's useful for building automated
  refactoring (codemod) applications and linters.
  
  LibCST creates a compromise between an Abstract Syntax Tree (AST) and a
  traditional Concrete Syntax Tree (CST). By carefully reorganizing and naming
  node types and fields, we've created a lossless CST that looks and feels like an
  AST.
  
  WWW: https://github.com/Instagram/LibCST

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

Modified: head/devel/Makefile
==============================================================================
--- head/devel/Makefile	Sun Jan  5 04:06:46 2020	(r522083)
+++ head/devel/Makefile	Sun Jan  5 04:06:53 2020	(r522084)
@@ -4604,6 +4604,7 @@
     SUBDIR += py-lazr.uri
     SUBDIR += py-lazy
     SUBDIR += py-lazy-object-proxy
+    SUBDIR += py-libcst
     SUBDIR += py-libioc
     SUBDIR += py-libiocage
     SUBDIR += py-liblarch

Added: head/devel/py-libcst/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-libcst/Makefile	Sun Jan  5 04:06:53 2020	(r522084)
@@ -0,0 +1,30 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	libcst
+PORTVERSION=	0.2.6
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Concrete syntax tree with AST-like properties
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7.2:devel/py-typing-extensions@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typing-inspect>=0.3.1:devel/py-typing-inspect@${PY_FLAVOR}
+
+USES=		python:3.6+
+USE_PYTHON=	autoplist distutils
+
+NO_ARCH=	yes
+
+.include <bsd.port.pre.mk>
+
+.if ${PYTHON_REL} < 3700
+RUN_DEPENDS+=	${PYTHON_PKGNAMEPREFIX}dataclasses>=0:devel/py-dataclasses@${PY_FLAVOR}
+.endif
+
+.include <bsd.port.post.mk>

Added: head/devel/py-libcst/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-libcst/distinfo	Sun Jan  5 04:06:53 2020	(r522084)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1578125673
+SHA256 (libcst-0.2.6.tar.gz) = e8718c6b9d66e851246f60d3e3ee11aad7da989832c4d5e589326ba1c63f7268
+SIZE (libcst-0.2.6.tar.gz) = 345424

Added: head/devel/py-libcst/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/devel/py-libcst/pkg-descr	Sun Jan  5 04:06:53 2020	(r522084)
@@ -0,0 +1,12 @@
+LibCST is a Concrete Syntax Tree (CST) parser and serializer library for Python.
+
+LibCST parses Python source code as a CST tree that keeps all formatting details
+(comments, whitespaces, parentheses, etc). It's useful for building automated
+refactoring (codemod) applications and linters.
+
+LibCST creates a compromise between an Abstract Syntax Tree (AST) and a
+traditional Concrete Syntax Tree (CST). By carefully reorganizing and naming
+node types and fields, we've created a lossless CST that looks and feels like an
+AST.
+
+WWW: https://github.com/Instagram/LibCST



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