pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/lang/py-libcst



Module Name:    pkgsrc
Committed By:   adam
Date:           Mon May 16 19:20:04 UTC 2022

Modified Files:
        pkgsrc/lang/py-libcst: Makefile PLIST distinfo

Log Message:
py-libcst: updated to 0.4.3

0.4.3 - 2022-05-11

Fixed
* Restore the 0.4.1 behavior for libcst.helpers.get_absolute_module

0.4.2 - 2022-05-04

Fixed
* native: Avoid crashing by making IntoPy conversion fallible
* native: make sure ParserError's line is zero-indexed
* Fix space validation for AsName and Await
* Qualified Name Provider: Fix returned qname for symbols that are prefixes of each other
* Rename Codemod: Correct last renamed import from
* Many changes to the Apply Type Comments codemod:
  * Allow for skipping quotes when applying type comments
  * Port pyre fixes
  * Preserve as-imports when merging type annotations.
  * Qualify imported symbols when the dequalified form would cause a conflict
  * Add an argument to always qualify imported type annotations.

Added
* Create an AddTrailingCommas codemod
* Define gather global names visitor

Updated
* Support module and package names in the codemod context
* Drop support for running libcst using a python 3.6 interpreter
* Update relative import logic to match cpython
* Scope Provider: Consider access information when computing qualified names for nodes


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 pkgsrc/lang/py-libcst/Makefile \
    pkgsrc/lang/py-libcst/distinfo
cvs rdiff -u -r1.1 -r1.2 pkgsrc/lang/py-libcst/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/lang/py-libcst/Makefile
diff -u pkgsrc/lang/py-libcst/Makefile:1.2 pkgsrc/lang/py-libcst/Makefile:1.3
--- pkgsrc/lang/py-libcst/Makefile:1.2  Sat Mar  5 11:23:11 2022
+++ pkgsrc/lang/py-libcst/Makefile      Mon May 16 19:20:04 2022
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.2 2022/03/05 11:23:11 wiz Exp $
+# $NetBSD: Makefile,v 1.3 2022/05/16 19:20:04 adam Exp $
 
-DISTNAME=      libcst-0.4.1
+DISTNAME=      libcst-0.4.3
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME}
 CATEGORIES=    lang python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=l/libcst/}
@@ -16,11 +16,12 @@ DEPENDS+=   ${PYPKGPREFIX}-typing-extensio
 DEPENDS+=      ${PYPKGPREFIX}-typing-inspect>=0.4.0:../../devel/py-typing-inspect
 DEPENDS+=      ${PYPKGPREFIX}-yaml>=5.2:../../textproc/py-yaml
 
+USE_LANGUAGES=         c c++   # Rust, but needs toolchain for linking
+
 PYTHON_VERSIONS_INCOMPATIBLE=  27
 
-.include "cargo-depends.mk"
-# for updating cargo-depends, uncomment the next line since Cargo.lock lives there
-#WRKSRC=               ${WRKDIR}/${DISTNAME}/native
+CARGO_WRKSRC=  ${WRKSRC}/native
+MAKE_ENV+=     CARGO_NET_OFFLINE=true
 
 # Depends on an unpublished crate. Can't use cargo.mk to fetch it.
 RUST_PEG_REV=  4b146b4b78a80c07e43d7ace2d97f65bfde279a8
@@ -28,14 +29,25 @@ DISTFILES=  ${DEFAULT_DISTFILES}
 DISTFILES+=    rust-peg-${RUST_PEG_REV}.tar.gz
 SITES.rust-peg-${RUST_PEG_REV}.tar.gz+=        -${MASTER_SITE_GITHUB:=kevinmehall/}rust-peg/archive/${RUST_PEG_REV}.tar.gz
 
-USE_LANGUAGES=         c c++   # Rust, but needs toolchain for linking
 INSTALLATION_DIRS=     bin ${PKGMANDIR}/man1
 
 post-extract:
-       mv ${WRKDIR}/rust-peg* ${WRKDIR}/rust-peg
+       ${MV} ${WRKDIR}/rust-peg-${RUST_PEG_REV} ${WRKDIR}/rust-peg
+
+pre-build:
+       cd ${WRKSRC}/.cargo && ${LN} -f -s ../native/.cargo/config config
 
 CHECK_WRKREF_SKIP+=    ${PYSITELIB}/libcst/native.so
 
+.include "../../mk/bsd.prefs.mk"
+.if ${OPSYS} == "Darwin"
+post-install:
+       install_name_tool -id ${PREFIX}/${PYSITELIB}/libcst/native.so \
+       ${DESTDIR}${PREFIX}/${PYSITELIB}/libcst/native.so
+.endif
+
+.include "cargo-depends.mk"
+
 .include "../../lang/python/egg.mk"
 .include "../../lang/rust/cargo.mk"
 .include "../../mk/bsd.pkg.mk"
Index: pkgsrc/lang/py-libcst/distinfo
diff -u pkgsrc/lang/py-libcst/distinfo:1.2 pkgsrc/lang/py-libcst/distinfo:1.3
--- pkgsrc/lang/py-libcst/distinfo:1.2  Sat Mar  5 11:23:11 2022
+++ pkgsrc/lang/py-libcst/distinfo      Mon May 16 19:20:04 2022
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.2 2022/03/05 11:23:11 wiz Exp $
+$NetBSD: distinfo,v 1.3 2022/05/16 19:20:04 adam Exp $
 
 BLAKE2s (aho-corasick-0.7.18.crate) = 8925e88e2df4b5ca3b31783f527e1bb31dbe27846f409f631148fa239f3b2935
 SHA512 (aho-corasick-0.7.18.crate) = 7a23b16231a90d23ee60ad4c81bc225410599a4560d33d3a203138fc540c39cf1000100fed3aed40dcc371c3635656a3792545dca5dd1aefbde00d8774eebd00
@@ -99,9 +99,9 @@ Size (lazy_static-1.4.0.crate) = 10443 b
 BLAKE2s (libc-0.2.98.crate) = e4c08fbd0743423ffa45bc8c40f5edec0df8e07a20a93e9d82c11184e0a91cdb
 SHA512 (libc-0.2.98.crate) = 2e730b8d46c42608c7da5ff4c5475667171b552b485c2684d3821310ac0f55c1a7a12d9a2cf68a05608cdd2a0928da5e290275c70a519a379d0ed25350689689
 Size (libc-0.2.98.crate) = 522087 bytes
-BLAKE2s (libcst-0.4.1.tar.gz) = 638696a3079f4b39e6df61a5c9286de3152ed6ea1c5669241156c7def091ded5
-SHA512 (libcst-0.4.1.tar.gz) = ed298792c0a8540905f59a955b8e44a0f23d5897e716d802eb5332f766d94e954b9e9d04a57ec849a5b06b106b44e4ebbd67a21c40ddb1c4d57f28b2d36da5ad
-Size (libcst-0.4.1.tar.gz) = 715682 bytes
+BLAKE2s (libcst-0.4.3.tar.gz) = 139bed3ace69374b4029c80a9f4ba2ff2eeb31d345972bdbcc40a77f402cbb84
+SHA512 (libcst-0.4.3.tar.gz) = 34c6b848951c710d1e90982c3ac71ded8b3ded915d687926cbb69050c1ca6341d8c455c6a24e120860eee78352b57a12a02a78e07e3bb6897bb0604d81ea49b5
+Size (libcst-0.4.3.tar.gz) = 728010 bytes
 BLAKE2s (lock_api-0.4.4.crate) = 048af4b2f94155e1b58c483dbfd09a51b63c0f0f87fa7ca3f64baf6e4673d142
 SHA512 (lock_api-0.4.4.crate) = 655c8a1503b6e7f833b4c62109e1c5005727054847bff81e17d4159f91c02ac97512da0673ab227d17bc9ed0342fe3476247daf74cbc9a0b470e68c648ba706e
 Size (lock_api-0.4.4.crate) = 20356 bytes

Index: pkgsrc/lang/py-libcst/PLIST
diff -u pkgsrc/lang/py-libcst/PLIST:1.1 pkgsrc/lang/py-libcst/PLIST:1.2
--- pkgsrc/lang/py-libcst/PLIST:1.1     Wed Feb 23 11:32:52 2022
+++ pkgsrc/lang/py-libcst/PLIST Mon May 16 19:20:04 2022
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.1 2022/02/23 11:32:52 wiz Exp $
+@comment $NetBSD: PLIST,v 1.2 2022/05/16 19:20:04 adam Exp $
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
 ${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
 ${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
@@ -455,6 +455,9 @@ ${PYSITELIB}/libcst/codemod/commands/__i
 ${PYSITELIB}/libcst/codemod/commands/add_pyre_directive.py
 ${PYSITELIB}/libcst/codemod/commands/add_pyre_directive.pyc
 ${PYSITELIB}/libcst/codemod/commands/add_pyre_directive.pyo
+${PYSITELIB}/libcst/codemod/commands/add_trailing_commas.py
+${PYSITELIB}/libcst/codemod/commands/add_trailing_commas.pyc
+${PYSITELIB}/libcst/codemod/commands/add_trailing_commas.pyo
 ${PYSITELIB}/libcst/codemod/commands/convert_format_to_fstring.py
 ${PYSITELIB}/libcst/codemod/commands/convert_format_to_fstring.pyc
 ${PYSITELIB}/libcst/codemod/commands/convert_format_to_fstring.pyo
@@ -494,6 +497,9 @@ ${PYSITELIB}/libcst/codemod/commands/tes
 ${PYSITELIB}/libcst/codemod/commands/tests/test_add_pyre_directive.py
 ${PYSITELIB}/libcst/codemod/commands/tests/test_add_pyre_directive.pyc
 ${PYSITELIB}/libcst/codemod/commands/tests/test_add_pyre_directive.pyo
+${PYSITELIB}/libcst/codemod/commands/tests/test_add_trailing_commas.py
+${PYSITELIB}/libcst/codemod/commands/tests/test_add_trailing_commas.pyc
+${PYSITELIB}/libcst/codemod/commands/tests/test_add_trailing_commas.pyo
 ${PYSITELIB}/libcst/codemod/commands/tests/test_convert_format_to_fstring.py
 ${PYSITELIB}/libcst/codemod/commands/tests/test_convert_format_to_fstring.pyc
 ${PYSITELIB}/libcst/codemod/commands/tests/test_convert_format_to_fstring.pyo
@@ -537,9 +543,6 @@ ${PYSITELIB}/libcst/codemod/tests/__init
 ${PYSITELIB}/libcst/codemod/tests/__init__.pyc
 ${PYSITELIB}/libcst/codemod/tests/__init__.pyo
 ${PYSITELIB}/libcst/codemod/tests/codemod_formatter_error_input.py.txt
-${PYSITELIB}/libcst/codemod/tests/test_cli.py
-${PYSITELIB}/libcst/codemod/tests/test_cli.pyc
-${PYSITELIB}/libcst/codemod/tests/test_cli.pyo
 ${PYSITELIB}/libcst/codemod/tests/test_codemod.py
 ${PYSITELIB}/libcst/codemod/tests/test_codemod.pyc
 ${PYSITELIB}/libcst/codemod/tests/test_codemod.pyo
@@ -567,6 +570,9 @@ ${PYSITELIB}/libcst/codemod/visitors/_ga
 ${PYSITELIB}/libcst/codemod/visitors/_gather_exports.py
 ${PYSITELIB}/libcst/codemod/visitors/_gather_exports.pyc
 ${PYSITELIB}/libcst/codemod/visitors/_gather_exports.pyo
+${PYSITELIB}/libcst/codemod/visitors/_gather_global_names.py
+${PYSITELIB}/libcst/codemod/visitors/_gather_global_names.pyc
+${PYSITELIB}/libcst/codemod/visitors/_gather_global_names.pyo
 ${PYSITELIB}/libcst/codemod/visitors/_gather_imports.py
 ${PYSITELIB}/libcst/codemod/visitors/_gather_imports.pyc
 ${PYSITELIB}/libcst/codemod/visitors/_gather_imports.pyo
@@ -597,6 +603,9 @@ ${PYSITELIB}/libcst/codemod/visitors/tes
 ${PYSITELIB}/libcst/codemod/visitors/tests/test_gather_exports.py
 ${PYSITELIB}/libcst/codemod/visitors/tests/test_gather_exports.pyc
 ${PYSITELIB}/libcst/codemod/visitors/tests/test_gather_exports.pyo
+${PYSITELIB}/libcst/codemod/visitors/tests/test_gather_global_names.py
+${PYSITELIB}/libcst/codemod/visitors/tests/test_gather_global_names.pyc
+${PYSITELIB}/libcst/codemod/visitors/tests/test_gather_global_names.pyo
 ${PYSITELIB}/libcst/codemod/visitors/tests/test_gather_imports.py
 ${PYSITELIB}/libcst/codemod/visitors/tests/test_gather_imports.pyc
 ${PYSITELIB}/libcst/codemod/visitors/tests/test_gather_imports.pyo
@@ -612,9 +621,6 @@ ${PYSITELIB}/libcst/codemod/visitors/tes
 ${PYSITELIB}/libcst/helpers/__init__.py
 ${PYSITELIB}/libcst/helpers/__init__.pyc
 ${PYSITELIB}/libcst/helpers/__init__.pyo
-${PYSITELIB}/libcst/helpers/_statement.py
-${PYSITELIB}/libcst/helpers/_statement.pyc
-${PYSITELIB}/libcst/helpers/_statement.pyo
 ${PYSITELIB}/libcst/helpers/_template.py
 ${PYSITELIB}/libcst/helpers/_template.pyc
 ${PYSITELIB}/libcst/helpers/_template.pyo
@@ -636,9 +642,6 @@ ${PYSITELIB}/libcst/helpers/tests/test_e
 ${PYSITELIB}/libcst/helpers/tests/test_module.py
 ${PYSITELIB}/libcst/helpers/tests/test_module.pyc
 ${PYSITELIB}/libcst/helpers/tests/test_module.pyo
-${PYSITELIB}/libcst/helpers/tests/test_statement.py
-${PYSITELIB}/libcst/helpers/tests/test_statement.pyc
-${PYSITELIB}/libcst/helpers/tests/test_statement.pyo
 ${PYSITELIB}/libcst/helpers/tests/test_template.py
 ${PYSITELIB}/libcst/helpers/tests/test_template.pyc
 ${PYSITELIB}/libcst/helpers/tests/test_template.pyo



Home | Main Index | Thread Index | Old Index