public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Joonas Niilola" <juippis@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/textdistance/
Date: Sun, 21 Mar 2021 13:35:52 +0000 (UTC)	[thread overview]
Message-ID: <1616333736.13d16219a4be84cc3f6dad75966d7723eadc08cf.juippis@gentoo> (raw)

commit:     13d16219a4be84cc3f6dad75966d7723eadc08cf
Author:     Andrew Ammerlaan <andrewammerlaan <AT> riseup <DOT> net>
AuthorDate: Fri Mar 19 08:59:18 2021 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Sun Mar 21 13:35:36 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=13d16219

dev-python/textdistance: version bump 4.2.1, add test support

Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> riseup.net>
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 dev-python/textdistance/Manifest                  |  1 +
 dev-python/textdistance/metadata.xml              |  1 +
 dev-python/textdistance/textdistance-4.2.1.ebuild | 41 +++++++++++++++++++++++
 3 files changed, 43 insertions(+)

diff --git a/dev-python/textdistance/Manifest b/dev-python/textdistance/Manifest
index ee6361a1a91..f4996bbfb58 100644
--- a/dev-python/textdistance/Manifest
+++ b/dev-python/textdistance/Manifest
@@ -1 +1,2 @@
 DIST textdistance-4.2.0.tar.gz 34519 BLAKE2B 0432705c57cecd66fe8c9cd4c12293220f1aa72e26c17f7a99d0a312d6ac7c2bb769a01dce9fc950a578f50a490616cb76dbafec541cbe1d61dd8f645dd51281 SHA512 8b58d02824d0c94ece9d0322180dd25af7dd0cef708e3f981efa16e262373532de3d68aed7dffd2008cfb04f30495a1792f2f22e9f1d8a802426d464c20d7b07
+DIST textdistance-4.2.1.tar.gz 45095 BLAKE2B c0b7fec8adb3a90fc2f3c939a39492887a4989e16d6bd9c548fceb1d5020323d2782dabdb69ae17dc4c3cd795425b3fbdf9bb6041b1ef7df840c2b3a9e2a7e05 SHA512 daff22077800e42ae266edd8614a1300f3f2d080868dbd38e14d035f19853e555485d27ab0392401318e0c4ddc81fbf1b537dd3aa1ba25d7a89e5f0edde8ce46

diff --git a/dev-python/textdistance/metadata.xml b/dev-python/textdistance/metadata.xml
index 7a0bdfbd91d..5b3c0dc6221 100644
--- a/dev-python/textdistance/metadata.xml
+++ b/dev-python/textdistance/metadata.xml
@@ -9,6 +9,7 @@
 		<email>proxy-maint@gentoo.org</email>
 		<name>Proxy Maintainers</name>
 	</maintainer>
+	<stabilize-allarches/>
 	<upstream>
 		<remote-id type="pypi">textdistance</remote-id>
 		<remote-id type="github">life4/textdistance</remote-id>

diff --git a/dev-python/textdistance/textdistance-4.2.1.ebuild b/dev-python/textdistance/textdistance-4.2.1.ebuild
new file mode 100644
index 00000000000..37b4900e0ef
--- /dev/null
+++ b/dev-python/textdistance/textdistance-4.2.1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{7,8} )
+
+inherit distutils-r1
+
+DESCRIPTION="Compute distance between the two texts"
+HOMEPAGE="https://github.com/life4/textdistance"
+SRC_URI="https://github.com/life4/textdistance/archive/v.${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+BDEPEND="test? (
+	dev-python/abydos[${PYTHON_USEDEP}]
+	dev-python/hypothesis[${PYTHON_USEDEP}]
+	dev-python/isort[${PYTHON_USEDEP}]
+	dev-python/jellyfish[${PYTHON_USEDEP}]
+	dev-python/numpy[${PYTHON_USEDEP}]
+	dev-python/python-levenshtein[${PYTHON_USEDEP}]
+	dev-python/pyxDamerauLevenshtein[${PYTHON_USEDEP}]
+)"
+
+S="${WORKDIR}/${PN}-v.${PV}"
+
+distutils_enable_tests --install pytest
+
+python_prepare_all() {
+	# RuntimeError: cannot import distance.hamming
+	# these optional things are missing at the moment
+	sed -i -e 's:test_compare:_&:' \
+		-e 's:test_qval:_&:' \
+		-e 's:test_list_of_numbers:_&:' \
+		tests/test_external.py || die
+
+	distutils-r1_python_prepare_all
+}


             reply	other threads:[~2021-03-21 13:35 UTC|newest]

Thread overview: 44+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-21 13:35 Joonas Niilola [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-08-03  8:44 [gentoo-commits] repo/gentoo:master commit in: dev-python/textdistance/ Michał Górny
2024-08-03  8:30 Jakov Smolić
2024-07-17 12:35 Michał Górny
2024-06-10 20:24 Petr Vaněk
2024-05-11  8:13 Michał Górny
2024-05-11  7:28 Arthur Zamarin
2024-04-24 13:42 Michał Górny
2024-01-13 12:45 Michał Górny
2024-01-13 12:02 Sam James
2023-12-29 17:08 Arthur Zamarin
2023-11-24 15:55 Arthur Zamarin
2023-11-23 19:00 Michał Górny
2023-11-17 15:35 Andrew Ammerlaan
2023-11-02  5:44 Michał Górny
2023-11-01 20:37 Arthur Zamarin
2023-09-28 17:08 Michał Górny
2023-09-14  9:13 Andrew Ammerlaan
2022-12-22 15:45 Michał Górny
2022-11-19 16:57 Arthur Zamarin
2022-11-07 21:53 Andrew Ammerlaan
2022-10-25 12:12 Michał Górny
2022-10-25 10:44 Sam James
2022-09-26  6:06 Michał Górny
2022-09-25 23:58 Sam James
2022-09-19 18:35 Arthur Zamarin
2022-08-21 17:41 Arthur Zamarin
2022-08-03  7:04 Michał Górny
2022-08-02 20:27 Sam James
2022-06-29 17:08 Arthur Zamarin
2022-06-05  5:53 Michał Górny
2022-04-24 11:06 Jakov Smolić
2021-12-02  9:39 Michał Górny
2021-12-02  8:56 Arthur Zamarin
2021-10-28  7:00 Michał Górny
2021-09-16  6:34 Arthur Zamarin
2021-06-27  6:21 Michał Górny
2021-06-27  5:38 Sam James
2021-06-27  5:38 Sam James
2021-04-13  7:36 Agostino Sarubbo
2021-04-09 11:49 Joonas Niilola
2021-04-04 16:03 Thomas Deutschmann
2021-03-21 13:35 Joonas Niilola
2021-01-16  8:05 Joonas Niilola

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=1616333736.13d16219a4be84cc3f6dad75966d7723eadc08cf.juippis@gentoo \
    --to=juippis@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