From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 finch.gentoo.org (Postfix) with ESMTPS id 47B33158B20 for ; Thu, 06 Feb 2025 13:04:16 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (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) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 26D7D342FA2 for ; Thu, 06 Feb 2025 13:04:16 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 1CDEC1103CB; Thu, 06 Feb 2025 13:04:15 +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 bobolink.gentoo.org (Postfix) with ESMTPS id 0C5F61103CB for ; Thu, 06 Feb 2025 13:04:14 +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)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 97F3A342FA2 for ; Thu, 06 Feb 2025 13:04:14 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3189C2654 for ; Thu, 06 Feb 2025 13:04:13 +0000 (UTC) From: "Takuya Wakazono" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Takuya Wakazono" Message-ID: <1738846920.1a57e978bb399e301c5d90ac3ca898765e20639d.pastalian46@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/dateparser/ X-VCS-Repository: repo/proj/guru X-VCS-Files: dev-python/dateparser/Manifest dev-python/dateparser/dateparser-1.2.1.ebuild X-VCS-Directories: dev-python/dateparser/ X-VCS-Committer: pastalian46 X-VCS-Committer-Name: Takuya Wakazono X-VCS-Revision: 1a57e978bb399e301c5d90ac3ca898765e20639d X-VCS-Branch: dev Date: Thu, 06 Feb 2025 13:04:13 +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: 83596416-9ff8-4acd-a653-44ba3e999e6f X-Archives-Hash: b30e42bb8ffd82a609f64aae5711800b commit: 1a57e978bb399e301c5d90ac3ca898765e20639d Author: Takuya Wakazono gmail com> AuthorDate: Thu Feb 6 13:02:00 2025 +0000 Commit: Takuya Wakazono gmail com> CommitDate: Thu Feb 6 13:02:00 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1a57e978 dev-python/dateparser: add 1.2.1 Closes: https://bugs.gentoo.org/922955 Signed-off-by: Takuya Wakazono gmail.com> dev-python/dateparser/Manifest | 1 + dev-python/dateparser/dateparser-1.2.1.ebuild | 61 +++++++++++++++++++++++++++ 2 files changed, 62 insertions(+) diff --git a/dev-python/dateparser/Manifest b/dev-python/dateparser/Manifest index 44c8fffea..1dd5921b2 100644 --- a/dev-python/dateparser/Manifest +++ b/dev-python/dateparser/Manifest @@ -1 +1,2 @@ DIST dateparser-1.2.0.tar.gz 307260 BLAKE2B b4611dfc4fccaf5f129e4d9aa3debe4a6d4242a44896305b909e6c34728ba153be92659b2f0c3a5da028d3863789d9c3a4236676087346b5f3f4aeb1f57b7a1e SHA512 74d5975f515dee096d83d10b72e5dc66ab197d50f24c129560ffb87eef4abd1422d8236555496d1ab1c0bfb832729e9c0d3ea2ca2c9c49da19963f0f2c1c1eb4 +DIST dateparser-1.2.1.tar.gz 309924 BLAKE2B 09b7cf4148edea37bb80d1734b2f5a3ddac7965e6d46bc1775f2f0807d3421c80bd3927dd62135a80adc99451a85a2961b61335784d191cfdd1fdc51b3d81298 SHA512 85e1c5cabb8acebd63ec60c0913ac89b362b64edfbe5af06bcd5968ed7be6383d4035ec9f45afadc0d10fc95a3f538702285d75365c4f8e4522ac9643f4ed4da diff --git a/dev-python/dateparser/dateparser-1.2.1.ebuild b/dev-python/dateparser/dateparser-1.2.1.ebuild new file mode 100644 index 000000000..7866770ea --- /dev/null +++ b/dev-python/dateparser/dateparser-1.2.1.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..13} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 optfeature pypi + +DESCRIPTION="Date parsing library designed to parse dates from HTML pages" +HOMEPAGE=" + https://pypi.org/project/dateparser/ + https://github.com/scrapinghub/dateparser +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/python-dateutil[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/regex[${PYTHON_USEDEP}] + dev-python/tzlocal[${PYTHON_USEDEP}] +" +BDEPEND="test? ( + dev-libs/fastText[python,${PYTHON_USEDEP}] + dev-python/convertdate[${PYTHON_USEDEP}] + dev-python/hijridate[${PYTHON_USEDEP}] + dev-python/langdetect[${PYTHON_USEDEP}] + dev-python/parameterized[${PYTHON_USEDEP}] +)" + +distutils_enable_tests pytest + +distutils_enable_sphinx docs \ + dev-python/sphinx-rtd-theme + +python_test() { + # Need to set TZ when testing with gentoo docker images. + # Their /etc/{timezone,localtime} are inconsistent, which causes + # to tests to fail. + local -x TZ=UTC + + local EPYTEST_IGNORE=( + # tests that require network + tests/test_dateparser_data_integrity.py + ) + local EPYTEST_DESELECT=( + # tests that require network + tests/test_language_detect.py::CustomLangDetectParserTest::test_custom_language_detect_fast_text_{0,1} + ) + + epytest +} + +pkg_postinst() { + optfeature "calendars support" "dev-python/hijridate dev-python/convertdate" + optfeature "fasttext support" "dev-libs/fastText[python]" + optfeature "langdetect support" dev-python/langdetect +}