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 9E0E1158091 for ; Sun, 5 Jun 2022 10:19:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id DA028E07EE; Sun, 5 Jun 2022 10:19:56 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 BE0B0E07EE for ; Sun, 5 Jun 2022 10:19:56 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 smtp.gentoo.org (Postfix) with ESMTPS id 7C2AC341A63 for ; Sun, 5 Jun 2022 10:19:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 075014ED for ; Sun, 5 Jun 2022 10:19:54 +0000 (UTC) From: "Anna Vyalkova" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anna Vyalkova" Message-ID: <1654424382.33db4a97ce5767c1ae8f2cf158cfd1479cd84ec3.cybertailor@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-office/beancount/ X-VCS-Repository: repo/proj/guru X-VCS-Files: app-office/beancount/Manifest app-office/beancount/beancount-2.3.3.ebuild app-office/beancount/beancount-2.3.5.ebuild X-VCS-Directories: app-office/beancount/ X-VCS-Committer: cybertailor X-VCS-Committer-Name: Anna Vyalkova X-VCS-Revision: 33db4a97ce5767c1ae8f2cf158cfd1479cd84ec3 X-VCS-Branch: dev Date: Sun, 5 Jun 2022 10:19:54 +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: 8a5a127f-7ab0-479d-a7b8-9bfce22ed123 X-Archives-Hash: 93259822b312e156f9e25fd392afffc6 commit: 33db4a97ce5767c1ae8f2cf158cfd1479cd84ec3 Author: Anna (cybertailor) Vyalkova sysrq in> AuthorDate: Sun Jun 5 10:18:13 2022 +0000 Commit: Anna Vyalkova sysrq in> CommitDate: Sun Jun 5 10:19:42 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=33db4a97 app-office/beancount: add 2.3.5, drop 2.3.3 Closes: https://bugs.gentoo.org/848114 Signed-off-by: Anna (cybertailor) Vyalkova sysrq.in> app-office/beancount/Manifest | 2 +- app-office/beancount/beancount-2.3.3.ebuild | 56 ------------------------- app-office/beancount/beancount-2.3.5.ebuild | 63 +++++++++++++++++++++++++++++ 3 files changed, 64 insertions(+), 57 deletions(-) diff --git a/app-office/beancount/Manifest b/app-office/beancount/Manifest index 69ea66a13..afb4ee689 100644 --- a/app-office/beancount/Manifest +++ b/app-office/beancount/Manifest @@ -1 +1 @@ -DIST beancount-2.3.3.tar.gz 1784037 BLAKE2B ff62ef30d3bcadd3f1dc195adf71cb58703e50c93e12cf71ef699c651ce67daf89ea8285b53b43811687fb132c02d8d6364651d87bc3e092f9485e6934883110 SHA512 420369105939bcdcf2b7caaba27ab1d486b3dfc18e0a3286d917a6380345eaf5fa64ff5e0779fd2275129b7088de24f4a2dbd0232a482aceb124064e5c56ccc4 +DIST beancount-2.3.5.gh.tar.gz 1718715 BLAKE2B 2bcbf250e6947c6ea93f7c4308fac2ea03c0b5b722dc4a6eb396133880ca201235ceb8cbb2e3a6e63afe573e1b3ab8bb945444a1edc73791b73200fb4d45bd18 SHA512 a3f1343ddf54cf13ef60802de210dc89e9ae202bca802b1b4eb532588f71d51fa4b71672b4e6a1e9676135d406fd55c421b80c439fa2f5f4279e61211f558a2a diff --git a/app-office/beancount/beancount-2.3.3.ebuild b/app-office/beancount/beancount-2.3.3.ebuild deleted file mode 100644 index 4d81e6dfe..000000000 --- a/app-office/beancount/beancount-2.3.3.ebuild +++ /dev/null @@ -1,56 +0,0 @@ -# Copyright 2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -PYTHON_COMPAT=( python3_{8..9} ) - -DISTUTILS_SINGLE_IMPL=1 - -inherit distutils-r1 - -DESCRIPTION="A double-entry accounting system that uses text files as input" -HOMEPAGE="https://github.com/beancount/beancount" -SRC_URI="https://github.com/beancount/beancount/archive/${PV}.tar.gz -> ${P}.tar.gz" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="test" -RESTRICT="!test? ( test )" - -PATCHES=( - "${FILESDIR}/${PN}-2.3.3-disable-network-tests.patch" - "${FILESDIR}/${PN}-2.3.3-disable-tmp-access-tests.patch" - "${FILESDIR}/${PN}-2.3.3-disable-install-test.patch" -) - -RDEPEND=" - $(python_gen_cond_dep ' - dev-python/beautifulsoup4[${PYTHON_USEDEP}] - >=dev-python/bottle-0.12[${PYTHON_USEDEP}] - >=dev-python/google-api-python-client-1.8.2[${PYTHON_USEDEP}] - >=dev-python/httplib2-0.10[${PYTHON_USEDEP}] - >=dev-python/lxml-3.0[${PYTHON_USEDEP}] - >=dev-python/oauth2client-4.0[${PYTHON_USEDEP}] - >=dev-python/ply-3.4[${PYTHON_USEDEP}] - >=dev-python/python-dateutil-2.6.0[${PYTHON_USEDEP}] - >=dev-python/python-magic-0.4.12[${PYTHON_USEDEP}] - >=dev-python/requests-2.0[${PYTHON_USEDEP}] - ') -" - -BDEPEND=" - test? ( - ${RDEPEND} - $(python_gen_cond_dep ' - >=dev-python/pytest-5.4.2[${PYTHON_USEDEP}] - ') - ) -" - -python_test(){ - esetup.py build_ext -i - make ctest - make test -} diff --git a/app-office/beancount/beancount-2.3.5.ebuild b/app-office/beancount/beancount-2.3.5.ebuild new file mode 100644 index 000000000..f92273fb2 --- /dev/null +++ b/app-office/beancount/beancount-2.3.5.ebuild @@ -0,0 +1,63 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +DITUTILS_USE_PEP517=setuptools +DISTUTILS_SINGLE_IMPL=1 +inherit distutils-r1 + +DESCRIPTION="A double-entry accounting system that uses text files as input" +HOMEPAGE="https://beancount.github.io https://github.com/beancount/beancount" +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +PATCHES=( + "${FILESDIR}/${PN}-2.3.3-disable-network-tests.patch" + "${FILESDIR}/${PN}-2.3.3-disable-tmp-access-tests.patch" + "${FILESDIR}/${PN}-2.3.3-disable-install-test.patch" +) + +RDEPEND="$(python_gen_cond_dep ' + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + >=dev-python/bottle-0.12[${PYTHON_USEDEP}] + dev-python/google-auth-oauthlib[${PYTHON_USEDEP}] + >=dev-python/google-api-python-client-1.8.2[${PYTHON_USEDEP}] + >=dev-python/httplib2-0.10[${PYTHON_USEDEP}] + >=dev-python/lxml-3.0[${PYTHON_USEDEP}] + >=dev-python/oauth2client-4.0[${PYTHON_USEDEP}] + >=dev-python/ply-3.4[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.6.0[${PYTHON_USEDEP}] + >=dev-python/python-magic-0.4.12[${PYTHON_USEDEP}] + >=dev-python/requests-2.0[${PYTHON_USEDEP}] +')" + +distutils_enable_tests pytest + +src_prepare() { + sed "/def find_repository_root/a\ return '${S}'" \ + -i ${PN}/utils/test_utils.py || die + sed "s/\[PROGRAM\]/['${EPYTHON}', PROGRAM]/" \ + -i ${PN}/tools/treeify_test.py || die + sed "/DATA_DIR =/c\ DATA_DIR = '${S}/${PN}/utils/file_type_testdata'" \ + -i ${PN}/utils/file_type_test.py || die + distutils-r1_src_prepare +} + +python_compile() { + distutils-r1_python_compile + + # keep in sync with hashsrc.py, otherwise expect test failures + cp beancount/parser/{lexer.l,grammar.y,decimal.h,decimal.c,macros.h,parser.h,parser.c,tokens.h} "${BUILD_DIR}"/lib/${PN}/parser || die +} + +python_test(){ + emake ctest + + cd "${T}" || die + epytest --pyargs ${PN} +}