From be94ae04eee564451203d45977c2ef7c7ace1580 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 10 Nov 2024 03:03:09 +0000 Subject: gentoo auto-resync : 10:11:2024 - 03:03:09 --- dev-python/libcst/Manifest | 2 +- dev-python/libcst/libcst-1.5.0-r1.ebuild | 200 +++++++++++++++++++++++++++++++ dev-python/libcst/libcst-1.5.0.ebuild | 195 ------------------------------ 3 files changed, 201 insertions(+), 196 deletions(-) create mode 100644 dev-python/libcst/libcst-1.5.0-r1.ebuild delete mode 100644 dev-python/libcst/libcst-1.5.0.ebuild (limited to 'dev-python/libcst') diff --git a/dev-python/libcst/Manifest b/dev-python/libcst/Manifest index 1146bdf0cef1..f6f515dfc150 100644 --- a/dev-python/libcst/Manifest +++ b/dev-python/libcst/Manifest @@ -116,5 +116,5 @@ DIST windows_x86_64_gnu-0.48.5.crate 801619 BLAKE2B aa7e7e6a6ff9f9553ada3a0a39a9 DIST windows_x86_64_gnullvm-0.48.5.crate 418486 BLAKE2B 12a2199d434617c1df1a839e9f435620ad64b40c579f6d0c3677553ad7a48e5765d12c266b04946402e15c92cff2e4ac4979ce2130750ef426e2672119680284 SHA512 c016d5b5e73832b61ff67929d92fa8c16e154656294357266ad29ce1f44db4ca2d2935dba31a6b571187dc838b1d22f1e3b41fefffd1d719a338439adf1646aa DIST windows_x86_64_msvc-0.48.5.crate 798412 BLAKE2B 8abc0721e2fb337fe17c91d278947d36122d9045b839ba0cf3e690202d242265b676f23cc301da5f9d98c56ca4ecb76f7d6f072ee71bf986a1deca87020b90e5 SHA512 fa1c5cd14ca2ff0082e2504cf59d317dc4dc6f7138d35c12f95d4476a9c13d8b7f5537d0ee251eee7c99411ad31b22263171b7fbd391daa5d3ea3488ceaa61a0 DIST winnow-0.6.18.crate 163357 BLAKE2B 7a43eba294c43b187211c6eabc449775081f44405045ec4786c5f10290639e18d002e872f9db14caa94e26fd99079c7ce2f99e70dcb20d842c0886ac203d8ca8 SHA512 3a146d9dc8fe3fcc855f7766852cd69c49a28f9048d553d3952d7722d49216cb44652d98b15ae1ddee99b2bbc3caefb107a9b85c309242dac943deeca65a81dc -EBUILD libcst-1.5.0.ebuild 3958 BLAKE2B 2f5c5801bf8ccdd300745f1eaa4f36a0c91f2d72672b22ec91428c315784c61732462c2c155107d0a8da3a05f50e42eb763cd6e8c345137eb07939d7f4a834ad SHA512 40eeca896263ac96bd20799a99378bfa61b8489a4ece232a00a40d114f336b89a9521ec88ab6b2e2eae4dd3363dc4f38adfef019654aff9146e46399db64af52 +EBUILD libcst-1.5.0-r1.ebuild 4015 BLAKE2B fd04c1084255872b009617167092bf3f2726cb72bbf4f7670d525201ecf6e6773ce5c75c5ebffeb16a02e8a3e6804540ec21229abd575d2554957ea2fd18bfd2 SHA512 13815a6d54d45d3149a92b4ebad205ffec01c4e4709ebb8dbd06b344724e2464994d85a36cf926e234196e9d1619055daa0333eb4602bb20c0a229a21ef49497 MISC metadata.xml 344 BLAKE2B 1dee439ab8e2c5e4e69c38cbdf2d6730844f73882e27dcf6dbbeaac5fb1e256eab39c854d3d0de8d91728b84b707aeec5b9bd9fe2d399baa1b4b61d9a5c33686 SHA512 9ec25b8e81d2c30502b71d33767331a5704aa708ffc5e1c36b5b91f82ad0acc0bd0f0e431d62d4e42eea9ecb30d021e5ee514f630aa6ccd7667bfecf4b4837ec diff --git a/dev-python/libcst/libcst-1.5.0-r1.ebuild b/dev-python/libcst/libcst-1.5.0-r1.ebuild new file mode 100644 index 000000000000..ef97ae4e765b --- /dev/null +++ b/dev-python/libcst/libcst-1.5.0-r1.ebuild @@ -0,0 +1,200 @@ +# Copyright 2024 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 python3_{10..12} ) + +CRATES=" + aho-corasick@1.0.4 + anes@0.1.6 + annotate-snippets@0.6.1 + anstyle@1.0.2 + autocfg@1.1.0 + bitflags@1.3.2 + bitflags@2.4.0 + bumpalo@3.12.0 + cast@0.3.0 + cc@1.0.83 + cfg-if@1.0.0 + chic@1.2.2 + ciborium-io@0.2.0 + ciborium-ll@0.2.0 + ciborium@0.2.0 + clap@4.4.0 + clap_builder@4.4.0 + clap_lex@0.5.1 + criterion-plot@0.5.0 + criterion@0.5.1 + crossbeam-deque@0.8.1 + crossbeam-epoch@0.9.9 + crossbeam-utils@0.8.10 + difference@2.0.0 + either@1.6.1 + equivalent@1.0.1 + errno-dragonfly@0.1.2 + errno@0.3.2 + glob@0.3.0 + half@1.8.2 + hashbrown@0.14.5 + heck@0.4.1 + hermit-abi@0.3.2 + indexmap@2.4.0 + indoc@2.0.4 + instant@0.1.12 + is-terminal@0.4.9 + itertools@0.10.5 + itertools@0.13.0 + itoa@1.0.2 + js-sys@0.3.58 + lazy_static@1.4.0 + libc@0.2.149 + linux-raw-sys@0.4.10 + lock_api@0.4.7 + log@0.4.17 + memchr@2.7.4 + memoffset@0.6.5 + memoffset@0.9.0 + num-traits@0.2.15 + once_cell@1.16.0 + oorandom@11.1.3 + parking_lot@0.11.2 + parking_lot_core@0.8.5 + paste@1.0.15 + peg-macros@0.8.4 + peg-runtime@0.8.3 + peg@0.8.4 + plotters-backend@0.3.2 + plotters-svg@0.3.1 + plotters@0.3.1 + proc-macro2@1.0.86 + pyo3-build-config@0.20.2 + pyo3-ffi@0.20.2 + pyo3-macros-backend@0.20.2 + pyo3-macros@0.20.2 + pyo3@0.20.2 + quote@1.0.37 + rayon-core@1.12.1 + rayon@1.10.0 + redox_syscall@0.2.13 + regex-automata@0.4.7 + regex-syntax@0.8.4 + regex@1.10.6 + rustix@0.38.19 + ryu@1.0.10 + same-file@1.0.6 + scopeguard@1.1.0 + serde@1.0.208 + serde_derive@1.0.208 + serde_json@1.0.125 + serde_spanned@0.6.7 + smallvec@1.8.1 + syn@1.0.109 + syn@2.0.75 + target-lexicon@0.12.4 + termcolor@1.1.3 + thiserror-impl@1.0.63 + thiserror@1.0.63 + tinytemplate@1.2.1 + toml@0.8.19 + toml_datetime@0.6.8 + toml_edit@0.22.20 + trybuild@1.0.99 + unicode-ident@1.0.1 + unindent@0.2.3 + walkdir@2.3.2 + wasm-bindgen-backend@0.2.81 + wasm-bindgen-macro-support@0.2.81 + wasm-bindgen-macro@0.2.81 + wasm-bindgen-shared@0.2.81 + wasm-bindgen@0.2.81 + web-sys@0.3.58 + winapi-i686-pc-windows-gnu@0.4.0 + winapi-util@0.1.5 + winapi-x86_64-pc-windows-gnu@0.4.0 + winapi@0.3.9 + windows-sys@0.48.0 + windows-targets@0.48.5 + windows_aarch64_gnullvm@0.48.5 + windows_aarch64_msvc@0.48.5 + windows_i686_gnu@0.48.5 + windows_i686_msvc@0.48.5 + windows_x86_64_gnu@0.48.5 + windows_x86_64_gnullvm@0.48.5 + windows_x86_64_msvc@0.48.5 + winnow@0.6.18 +" + +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 BSD MIT" +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_XDIST=1 +distutils_enable_tests pytest + +QA_FLAGS_IGNORED="usr/lib/py.*/site-packages/libcst/native.*" + +pkg_setup() { + distutils_r1_pkg_setup + rust_pkg_setup +} + +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 + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + 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 +} diff --git a/dev-python/libcst/libcst-1.5.0.ebuild b/dev-python/libcst/libcst-1.5.0.ebuild deleted file mode 100644 index 2eb6ef190406..000000000000 --- a/dev-python/libcst/libcst-1.5.0.ebuild +++ /dev/null @@ -1,195 +0,0 @@ -# Copyright 2024 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 python3_{10..12} ) - -CRATES=" - aho-corasick@1.0.4 - anes@0.1.6 - annotate-snippets@0.6.1 - anstyle@1.0.2 - autocfg@1.1.0 - bitflags@1.3.2 - bitflags@2.4.0 - bumpalo@3.12.0 - cast@0.3.0 - cc@1.0.83 - cfg-if@1.0.0 - chic@1.2.2 - ciborium-io@0.2.0 - ciborium-ll@0.2.0 - ciborium@0.2.0 - clap@4.4.0 - clap_builder@4.4.0 - clap_lex@0.5.1 - criterion-plot@0.5.0 - criterion@0.5.1 - crossbeam-deque@0.8.1 - crossbeam-epoch@0.9.9 - crossbeam-utils@0.8.10 - difference@2.0.0 - either@1.6.1 - equivalent@1.0.1 - errno-dragonfly@0.1.2 - errno@0.3.2 - glob@0.3.0 - half@1.8.2 - hashbrown@0.14.5 - heck@0.4.1 - hermit-abi@0.3.2 - indexmap@2.4.0 - indoc@2.0.4 - instant@0.1.12 - is-terminal@0.4.9 - itertools@0.10.5 - itertools@0.13.0 - itoa@1.0.2 - js-sys@0.3.58 - lazy_static@1.4.0 - libc@0.2.149 - linux-raw-sys@0.4.10 - lock_api@0.4.7 - log@0.4.17 - memchr@2.7.4 - memoffset@0.6.5 - memoffset@0.9.0 - num-traits@0.2.15 - once_cell@1.16.0 - oorandom@11.1.3 - parking_lot@0.11.2 - parking_lot_core@0.8.5 - paste@1.0.15 - peg-macros@0.8.4 - peg-runtime@0.8.3 - peg@0.8.4 - plotters-backend@0.3.2 - plotters-svg@0.3.1 - plotters@0.3.1 - proc-macro2@1.0.86 - pyo3-build-config@0.20.2 - pyo3-ffi@0.20.2 - pyo3-macros-backend@0.20.2 - pyo3-macros@0.20.2 - pyo3@0.20.2 - quote@1.0.37 - rayon-core@1.12.1 - rayon@1.10.0 - redox_syscall@0.2.13 - regex-automata@0.4.7 - regex-syntax@0.8.4 - regex@1.10.6 - rustix@0.38.19 - ryu@1.0.10 - same-file@1.0.6 - scopeguard@1.1.0 - serde@1.0.208 - serde_derive@1.0.208 - serde_json@1.0.125 - serde_spanned@0.6.7 - smallvec@1.8.1 - syn@1.0.109 - syn@2.0.75 - target-lexicon@0.12.4 - termcolor@1.1.3 - thiserror-impl@1.0.63 - thiserror@1.0.63 - tinytemplate@1.2.1 - toml@0.8.19 - toml_datetime@0.6.8 - toml_edit@0.22.20 - trybuild@1.0.99 - unicode-ident@1.0.1 - unindent@0.2.3 - walkdir@2.3.2 - wasm-bindgen-backend@0.2.81 - wasm-bindgen-macro-support@0.2.81 - wasm-bindgen-macro@0.2.81 - wasm-bindgen-shared@0.2.81 - wasm-bindgen@0.2.81 - web-sys@0.3.58 - winapi-i686-pc-windows-gnu@0.4.0 - winapi-util@0.1.5 - winapi-x86_64-pc-windows-gnu@0.4.0 - winapi@0.3.9 - windows-sys@0.48.0 - windows-targets@0.48.5 - windows_aarch64_gnullvm@0.48.5 - windows_aarch64_msvc@0.48.5 - windows_i686_gnu@0.48.5 - windows_i686_msvc@0.48.5 - windows_x86_64_gnu@0.48.5 - windows_x86_64_gnullvm@0.48.5 - windows_x86_64_msvc@0.48.5 - winnow@0.6.18 -" - -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 BSD MIT" -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_XDIST=1 -distutils_enable_tests pytest - -QA_FLAGS_IGNORED="usr/lib/py.*/site-packages/libcst/native.*" - -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 - ) - - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - 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 -} -- cgit v1.2.3