git: 519954713573 - main - devel/py-libcst03: Add py-libcst03 0.3.23 (copied from py-libcst)

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Fri, 30 Dec 2022 18:07:11 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=5199547135734099c2c66c00c44fe7e1fdded1f1

commit 5199547135734099c2c66c00c44fe7e1fdded1f1
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2022-12-30 18:07:06 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2022-12-30 18:07:06 +0000

    devel/py-libcst03: Add py-libcst03 0.3.23 (copied from py-libcst)
    
    - Add PORTSCOUT
---
 devel/Makefile              |  1 +
 devel/py-libcst03/Makefile  | 29 +++++++++++++++++++++++++++++
 devel/py-libcst03/distinfo  |  3 +++
 devel/py-libcst03/pkg-descr | 10 ++++++++++
 4 files changed, 43 insertions(+)

diff --git a/devel/Makefile b/devel/Makefile
index a8510e442d64..a57c144a979a 100644
--- a/devel/Makefile
+++ b/devel/Makefile
@@ -4763,6 +4763,7 @@
     SUBDIR += py-lazy
     SUBDIR += py-lazy-object-proxy
     SUBDIR += py-libcst
+    SUBDIR += py-libcst03
     SUBDIR += py-libioc
     SUBDIR += py-libpeas
     SUBDIR += py-libplist
diff --git a/devel/py-libcst03/Makefile b/devel/py-libcst03/Makefile
new file mode 100644
index 000000000000..6b88586aed48
--- /dev/null
+++ b/devel/py-libcst03/Makefile
@@ -0,0 +1,29 @@
+PORTNAME=	libcst
+PORTVERSION=	0.3.23
+CATEGORIES=	devel python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+PKGNAMESUFFIX=	03
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Concrete syntax tree with AST-like properties
+WWW=		https://github.com/Instagram/LibCST
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	${PYTHON_PKGNAMEPREFIX}setuptools_scm>=0:devel/py-setuptools_scm@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}yaml>=5.2:devel/py-yaml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typing-extensions>=3.7.4.2:devel/py-typing-extensions@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}typing-inspect>=0.4.0:devel/py-typing-inspect@${PY_FLAVOR}
+
+USES=		python:3.6+
+USE_PYTHON=	autoplist concurrent distutils
+
+NO_ARCH=	yes
+
+CONFLICTS_INSTALL=	${PYTHON_PKGNAMEPREFIX}libcst
+
+PORTSCOUT=	limit:^0\.3\.
+
+.include <bsd.port.mk>
diff --git a/devel/py-libcst03/distinfo b/devel/py-libcst03/distinfo
new file mode 100644
index 000000000000..2425179ba82f
--- /dev/null
+++ b/devel/py-libcst03/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1638556576
+SHA256 (libcst-0.3.23.tar.gz) = 330f9082a309bad808e283e80845a843200303bb256690185b98ca458a62c4f8
+SIZE (libcst-0.3.23.tar.gz) = 579195
diff --git a/devel/py-libcst03/pkg-descr b/devel/py-libcst03/pkg-descr
new file mode 100644
index 000000000000..74375e1c900e
--- /dev/null
+++ b/devel/py-libcst03/pkg-descr
@@ -0,0 +1,10 @@
+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.