From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 6E2E615808C for ; Mon, 21 Mar 2022 08:54:54 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E28E5E0869; Mon, 21 Mar 2022 08:54:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B1B3AE0869 for ; Mon, 21 Mar 2022 08:54:52 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B8806342FF5 for ; Mon, 21 Mar 2022 08:54:51 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 19DEF32F for ; Mon, 21 Mar 2022 08:54:50 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1647852879.3adb4469beb2594991bfaca1e342edbec0d450c2.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/textx/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/textx/Manifest dev-python/textx/metadata.xml dev-python/textx/textx-3.0.0.ebuild X-VCS-Directories: dev-python/textx/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 3adb4469beb2594991bfaca1e342edbec0d450c2 X-VCS-Branch: master Date: Mon, 21 Mar 2022 08:54:50 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 35b0b496-5413-4ea8-ae68-d90bda430f52 X-Archives-Hash: ddceba63cdc2bc44b3bbaa4d4c666e94 commit: 3adb4469beb2594991bfaca1e342edbec0d450c2 Author: Michał Górny gentoo org> AuthorDate: Mon Mar 21 08:02:01 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Mon Mar 21 08:54:39 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3adb4469 dev-python/textx: Bump to 3.0.0 Signed-off-by: Michał Górny gentoo.org> dev-python/textx/Manifest | 1 + dev-python/textx/metadata.xml | 2 +- dev-python/textx/textx-3.0.0.ebuild | 61 +++++++++++++++++++++++++++++++++++++ 3 files changed, 63 insertions(+), 1 deletion(-) diff --git a/dev-python/textx/Manifest b/dev-python/textx/Manifest index 4c6a31a92455..2010f82f0da7 100644 --- a/dev-python/textx/Manifest +++ b/dev-python/textx/Manifest @@ -1 +1,2 @@ DIST textX-1.4.tar.gz 21967 BLAKE2B b9e5b15715e370795470be855e0425075b1f704cab0ea2f24021345d8748f9f1a36e84618207c7684cadf86dae2ee0d613af3aaf217a881ba922385a544064ba SHA512 7783f4dd1358d8e0df126f1be893c58e32f57015fd577bd20d00a17b63111d6e48222c9b78420a307fcd0833f6d9ac3a1398d55986681251f7c378cdcd68c8a4 +DIST textX-3.0.0.gh.tar.gz 1827894 BLAKE2B 1b4dff3919838b8aa27faee9387fafd6771891b730c221e10a5f2593d138634950d6ced5a7344944913d99e591ed87adfac403add582baa50b0b94c9c6498572 SHA512 59b175a3f68b0a5b9b3522e814602c791df3fa7dffb8fabffdeed79ce746ae698ee61c748ce991d8cfee15e094c9437530912e84bdeed4531d0bd96d07477c90 diff --git a/dev-python/textx/metadata.xml b/dev-python/textx/metadata.xml index 3d4b8ec02717..de4b16fe0e05 100644 --- a/dev-python/textx/metadata.xml +++ b/dev-python/textx/metadata.xml @@ -6,6 +6,6 @@ textX - igordejanovic/textX + textX/textX diff --git a/dev-python/textx/textx-3.0.0.ebuild b/dev-python/textx/textx-3.0.0.ebuild new file mode 100644 index 000000000000..5d3a9735321c --- /dev/null +++ b/dev-python/textx/textx-3.0.0.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 + +MY_P=textX-${PV} +DESCRIPTION="Meta-language for DSL implementation inspired by Xtext" +HOMEPAGE=" + https://pypi.org/project/textX/ + https://github.com/textX/textX/ +" +SRC_URI=" + https://github.com/textX/textX/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/arpeggio-2.0.0[${PYTHON_USEDEP}] + dev-python/future[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/click[${PYTHON_USEDEP}] + dev-python/html5lib[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + cp -a "${BUILD_DIR}"/{install,test} || die + local -x PATH=${BUILD_DIR}/test/usr/bin:${PATH} + + # Update the shebang + sed -e "s:install/usr/bin/${EPYTHON}:test/usr/bin/${EPYTHON}:" \ + -i "${BUILD_DIR}"/test/usr/bin/textx || die + + # Install necessary plugins + local plugins=( + tests/functional/subcommands/example_project + tests/functional/registration/projects/* + ) + local p + for p in "${plugins[@]}"; do + pushd "${p}" >/dev/null || die + distutils_pep517_install "${BUILD_DIR}"/test + popd >/dev/null || die + done + + epytest tests/functional +}