public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Michał Górny" <mgorny@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/libcst/
Date: Thu, 23 May 2024 02:11:41 +0000 (UTC)	[thread overview]
Message-ID: <1716430293.7997fd1af7451942e028f45e30f5b36eafd5f95d.mgorny@gentoo> (raw)

commit:     7997fd1af7451942e028f45e30f5b36eafd5f95d
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu May 23 02:04:55 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu May 23 02:11:33 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7997fd1a

dev-python/libcst: Bump to 1.4.0

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

 dev-python/libcst/Manifest            |   1 +
 dev-python/libcst/libcst-1.4.0.ebuild | 187 ++++++++++++++++++++++++++++++++++
 2 files changed, 188 insertions(+)

diff --git a/dev-python/libcst/Manifest b/dev-python/libcst/Manifest
index 12a368a8f32b..cdda2f319f33 100644
--- a/dev-python/libcst/Manifest
+++ b/dev-python/libcst/Manifest
@@ -41,6 +41,7 @@ DIST js-sys-0.3.58.crate 78794 BLAKE2B d664fda1e19a7ebb621596cd4773e7ebe86b3749e
 DIST lazy_static-1.4.0.crate 10443 BLAKE2B 25b2e61bbac48f0dcbc79c81d7bf01f2403d8269ecb6be3ea6147bd00f7a588df15a91f44dfc18ada19b21faa71de4637c7d493a8628cbecd0e547d74e616a23 SHA512 e124c0521ec7c950f3c4a066821918da7a9c6e711115d98009ae7c351928fdddead852e7596fea5937a9c30e4e4ce8eee7099b20248b5d6e3b2494b6a6d88cb8
 DIST libc-0.2.149.crate 715592 BLAKE2B 21dd5d4f9351f3c75790077c7b025046db665f2d48d7a72cda7667bc60febf79d82708cf7d39a323a594397cd590bd3d2a2f85349b4473b90ea4da918382ed0a SHA512 0def64d400d473d6eed30e985522d36801ee6472b15f90e74dc4592e0a8ffbaf30b731be280de52b30255cf60aeca8efe817b67049227dc7000c807e007d7289
 DIST libcst-1.3.1.tar.gz 765034 BLAKE2B 0a7a4b26402d0f7cae851eb2d5a45b845ce42878a30cd9608eec85d637e43874f4d2ba591486684da1bca4711b08046e518892a5a1864a91af9fc17d5108eb53 SHA512 c5ac467bab0ff2808db4510620444cb7705d1af88f0e3f41c43c9ab493206d58561ca2ffb9ee98f14286ee182b4271103d9ca3c3935fef5a8f8dcf60dfae5b50
+DIST libcst-1.4.0.tar.gz 771364 BLAKE2B 8ff1eac643b78e25e295d878bb4c74b503911083f4781fb3be162ad679fb92dbfcb77d85d3dde9413bf041f2fc73d5c1b5a293e167df753ae54781e6e6e4de95 SHA512 4f83f072d5adf120be80713b9553261fcd40842fdca4eb29a5d2beb2d6581f02d7c7eb77770845f183860b23f91482907df847e276d385f19e802088568eadce
 DIST linux-raw-sys-0.4.10.crate 1407767 BLAKE2B 8bc633d99bc1ee1a6fdfa19501fd034a4475fa9ebe18a206e4254309d91aee7a91fc70faf9775efa5157a1b2fb7e5f827bde40a770b066643356113f2cf38b5d SHA512 107f61add087bff55869798d5c71bc6ac9ecb27a603d8f9071b856189de8b7b0a7f9243fa1433700f52a0c3020eff5604dbf6e0653109d0dd277b98ab45fae21
 DIST lock_api-0.4.7.crate 25371 BLAKE2B 9ed08433ffa70af60193dcf307287991a3154f0ef16b485f32a6c83e64962661a6e08ef83a6b217d6cbf5bd964c0638d8ed86b290087677c1fb3218321c4bbf8 SHA512 b1a5227fd131edaa70e017f7ddb43af8b4efa58488007b898ca1dfc818a3a441b732b7adbf1270e72a68ee5d2a99a5d48f33b2bca8e2cf78694953d20d27636d
 DIST log-0.4.17.crate 38028 BLAKE2B b46be3719fc0a53e50b1f342762e188587e9f1ceb692c72473ce2663edfb8253742d30024e68c1444780ab7fc0e2d5b0601b8ea7228dc3405a9342a57548e605 SHA512 2477d88db42b1d92c30708d88823212e236f613b3465e85eb425f83f8d16fadfaf0352f06c2999a1852102edd2f6ffb10ecb539d8a3b6c48f552a25622ccffa2

diff --git a/dev-python/libcst/libcst-1.4.0.ebuild b/dev-python/libcst/libcst-1.4.0.ebuild
new file mode 100644
index 000000000000..19fd96d2908f
--- /dev/null
+++ b/dev-python/libcst/libcst-1.4.0.ebuild
@@ -0,0 +1,187 @@
+# 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-channel@0.5.5
+	crossbeam-deque@0.8.1
+	crossbeam-epoch@0.9.9
+	crossbeam-utils@0.8.10
+	difference@2.0.0
+	either@1.6.1
+	errno-dragonfly@0.1.2
+	errno@0.3.2
+	glob@0.3.0
+	half@1.8.2
+	heck@0.4.1
+	hermit-abi@0.1.19
+	hermit-abi@0.3.2
+	indoc@2.0.4
+	instant@0.1.12
+	is-terminal@0.4.9
+	itertools@0.10.5
+	itertools@0.11.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.5.0
+	memoffset@0.6.5
+	memoffset@0.9.0
+	num-traits@0.2.15
+	num_cpus@1.13.1
+	once_cell@1.16.0
+	oorandom@11.1.3
+	parking_lot@0.11.2
+	parking_lot_core@0.8.5
+	paste@1.0.9
+	peg-macros@0.8.1
+	peg-runtime@0.8.1
+	peg@0.8.1
+	plotters-backend@0.3.2
+	plotters-svg@0.3.1
+	plotters@0.3.1
+	proc-macro2@1.0.70
+	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.33
+	rayon-core@1.11.0
+	rayon@1.7.0
+	redox_syscall@0.2.13
+	regex-automata@0.3.6
+	regex-syntax@0.7.4
+	regex@1.9.3
+	rustix@0.38.19
+	ryu@1.0.10
+	same-file@1.0.6
+	scopeguard@1.1.0
+	serde@1.0.145
+	serde_derive@1.0.145
+	serde_json@1.0.81
+	smallvec@1.8.1
+	syn@1.0.109
+	syn@2.0.41
+	target-lexicon@0.12.4
+	termcolor@1.1.3
+	thiserror-impl@1.0.37
+	thiserror@1.0.37
+	tinytemplate@1.2.1
+	toml@0.5.9
+	trybuild@1.0.71
+	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
+"
+
+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"
+
+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_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
+}


             reply	other threads:[~2024-05-23  2:11 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-05-23  2:11 Michał Górny [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-14  6:32 [gentoo-commits] repo/gentoo:master commit in: dev-python/libcst/ Michał Górny
2025-03-13 20:03 Arthur Zamarin
2025-01-25 11:41 Michał Górny
2025-01-25 11:01 Arthur Zamarin
2025-01-10 20:43 Michał Górny
2024-12-10 13:51 Michał Górny
2024-12-10  4:30 Sam James
2024-11-19  4:45 Michał Górny
2024-11-19  4:42 Michał Górny
2024-11-11 13:00 Sam James
2024-10-26 17:48 Michał Górny
2024-10-26 17:42 Arthur Zamarin
2024-10-10 18:25 Michał Górny
2024-09-17 16:00 Sam James
2024-09-06 16:34 Michał Górny
2024-05-29 14:45 Jakov Smolić
2024-05-12 13:05 Michał Górny
2024-05-12 13:05 Michał Górny
2024-05-06 15:29 Michał Górny
2024-05-01 11:48 Michał Górny
2024-05-01 11:15 Michał Górny

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1716430293.7997fd1af7451942e028f45e30f5b36eafd5f95d.mgorny@gentoo \
    --to=mgorny@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox