commit:     231b1ed7b0896ae1239ba04c6e75f8b8c805936a
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 27 03:59:12 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Sep 27 03:59:12 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=231b1ed7

dev-python/libcst: Bump to 1.8.5

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/libcst/Manifest            |   1 +
 dev-python/libcst/libcst-1.8.5.ebuild | 190 ++++++++++++++++++++++++++++++++++
 2 files changed, 191 insertions(+)

diff --git a/dev-python/libcst/Manifest b/dev-python/libcst/Manifest
index 9a4284a9fbad..c0c6d19510e3 100644
--- a/dev-python/libcst/Manifest
+++ b/dev-python/libcst/Manifest
@@ -34,6 +34,7 @@ DIST js-sys-0.3.77.crate 55538 BLAKE2B 
8a4c04a8e93bf5dab63784a24320a314cc5cb629d
 DIST libc-0.2.149.crate 715592 BLAKE2B 
21dd5d4f9351f3c75790077c7b025046db665f2d48d7a72cda7667bc60febf79d82708cf7d39a323a594397cd590bd3d2a2f85349b4473b90ea4da918382ed0a
 SHA512 
0def64d400d473d6eed30e985522d36801ee6472b15f90e74dc4592e0a8ffbaf30b731be280de52b30255cf60aeca8efe817b67049227dc7000c807e007d7289
 DIST libcst-1.8.2.tar.gz 881534 BLAKE2B 
e68e0af99c3db0e1280529bce2dacccea5c01a5d19635d195c13c128c8f485d8e4ac621de34f51a25daaa342aee58c5d0af238affb674a30465deabceda654ed
 SHA512 
dd501de64e13dcb6cbfa4ebe8c89513cf8b2d27fa97d34b02553c1462c3052bc65253cf55a1bce1124e87108bdc834f7e7f5bc1180217a678304efa1130e2a3e
 DIST libcst-1.8.4.tar.gz 884416 BLAKE2B 
e633723a4c59fdee07f27e51fd161971aa69f99c087613a016205c43eadb75e54078a233a0f0350eb514bc8d77463eac8f450ba752c6c8b037e03863a3f2f465
 SHA512 
3d6f96d75e05853c92e1ee10a146d86b405f0d3286049f7676c6f7b81f6bd0c3de8b9e7948f4a589748187d76b04a5759a1e14627e47f067d8df2e56195054ec
+DIST libcst-1.8.5.tar.gz 884582 BLAKE2B 
b79c7c91050d5401c50cdcdbb8e9f8784dfe06d6a100795c20d67595f209f84996be4a46cc1f82ed7768212b829a245205f1846f202c7e60969a8a744676cd92
 SHA512 
30070d7f4ed973934b37e58313fe27d66402877f9db3ff644ad488978758053bdc41d7d073441bce4466f92ec9a3b01ecd4e7e58462a84cc55ddf46c0ee0c7b2
 DIST log-0.4.17.crate 38028 BLAKE2B 
b46be3719fc0a53e50b1f342762e188587e9f1ceb692c72473ce2663edfb8253742d30024e68c1444780ab7fc0e2d5b0601b8ea7228dc3405a9342a57548e605
 SHA512 
2477d88db42b1d92c30708d88823212e236f613b3465e85eb425f83f8d16fadfaf0352f06c2999a1852102edd2f6ffb10ecb539d8a3b6c48f552a25622ccffa2
 DIST memchr-2.7.4.crate 96670 BLAKE2B 
da38114beca670467c3e1fbf4e415af6f22d52e3223715d52e181babb89b872b46511563985bcc16d7ff4e82f812c6e83ad904b0fe2501b14445119dfa8240e6
 SHA512 
8d0e8b9c30208897d4b1b920f1bdcccd0c2b75d92a06abe4a1b2407938768abb6487d63de56c6a80419798fe69517210643dfaf11f5f5540185f0eccf220adb2
 DIST memoffset-0.6.5.crate 7686 BLAKE2B 
9a797388702389076c426052c3d54dc62802d5db8bc5c9c83990429f2ffaec4fab4c7dd3f09cd0704d1ea555e87976563bb43408ba54b5e66ce7e406d4604009
 SHA512 
11bdd9185b99dfee8e659e051b09ee301c7142a372a8117864745a5085c015436d2efbb1478192886f09cbc562529e209d2e3325d94938a64bc75b1d91d2bf3f

diff --git a/dev-python/libcst/libcst-1.8.5.ebuild 
b/dev-python/libcst/libcst-1.8.5.ebuild
new file mode 100644
index 000000000000..7cf292b6aa84
--- /dev/null
+++ b/dev-python/libcst/libcst-1.8.5.ebuild
@@ -0,0 +1,190 @@
+# Copyright 2024-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_EXT=1
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( pypy3_11 python3_{11..13} )
+
+RUST_MIN_VER="1.80.0"
+CRATES="
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+       [email protected]
+"
+
+inherit cargo distutils-r1 pypi
+
+DESCRIPTION="A concrete syntax tree with AST-like properties for Python"
+HOMEPAGE="
+       https://github.com/Instagram/LibCST/
+       https://pypi.org/project/libcst/
+"
+SRC_URI+="
+       ${CARGO_CRATE_URIS}
+"
+
+LICENSE="MIT Apache-2.0 PSF-2"
+# Dependent crate licenses
+LICENSE+=" Apache-2.0 Apache-2.0-with-LLVM-exceptions MIT Unicode-3.0"
+SLOT="0"
+KEYWORDS="~amd64 ~riscv"
+
+RDEPEND="
+       >=dev-python/pyyaml-5.2[${PYTHON_USEDEP}]
+"
+BDEPEND="
+       dev-python/setuptools-rust[${PYTHON_USEDEP}]
+       dev-python/setuptools-scm[${PYTHON_USEDEP}]
+       test? (
+               dev-python/black[${PYTHON_USEDEP}]
+       )
+"
+
+EPYTEST_PLUGINS=()
+EPYTEST_XDIST=1
+distutils_enable_tests pytest
+
+QA_FLAGS_IGNORED="usr/lib/py.*/site-packages/libcst/native.*"
+
+src_prepare() {
+       distutils-r1_src_prepare
+
+       # do not require the freethreading fork for regular 3.13
+       sed -i -e '/pyyaml-ft/d' pyproject.toml || die
+}
+
+python_test() {
+       local EPYTEST_DESELECT=(
+               # TODO
+               
libcst/codemod/tests/test_codemod_cli.py::TestCodemodCLI::test_codemod_formatter_error_input
+       )
+       local EPYTEST_IGNORE=(
+               # fuzzing, require hypothesmith
+               libcst/tests/test_fuzz.py
+               # require pyre-check
+               libcst/metadata/tests/test_type_inference_provider.py
+               # requires `python -m libcst.codegen.generate` which has extra
+               # deps and needs patching to work in our venv
+               # TODO: figure out if we don't need that for revdeps anyway
+               libcst/codegen/tests/test_codegen_clean.py
+       )
+
+       case ${EPYTHON} in
+               pypy3*)
+                       EPYTEST_DESELECT+=(
+                               # 
https://github.com/Instagram/LibCST/issues/1278
+                               
libcst/codemod/commands/tests/test_rename_typing_generic_aliases.py::TestRenameCommand::test_rename_typing_generic_alias
+                       )
+                       ;;
+       esac
+
+       cd "${BUILD_DIR}/install$(python_get_sitedir)" || die
+       # fixtures
+       ln -s "${S}/native" . || die
+
+       nonfatal epytest
+       local ret=${?}
+
+       rm native || die
+
+       [[ ${ret} -ne 0 ]] && die "Tests failed on ${EPYTHON}"
+}
+
+python_test_all() {
+       cd native || die
+       cargo_src_test
+}

Reply via email to