diff options
Diffstat (limited to 'dev-python/textdistance')
| -rw-r--r-- | dev-python/textdistance/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/textdistance/metadata.xml | 1 | ||||
| -rw-r--r-- | dev-python/textdistance/textdistance-4.2.1.ebuild (renamed from dev-python/textdistance/textdistance-4.2.0.ebuild) | 18 |
3 files changed, 16 insertions, 5 deletions
diff --git a/dev-python/textdistance/Manifest b/dev-python/textdistance/Manifest index ee6361a1a911..4a3aedf10276 100644 --- a/dev-python/textdistance/Manifest +++ b/dev-python/textdistance/Manifest @@ -1 +1 @@ -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 ead788949904..376ef7524a65 100644 --- a/dev-python/textdistance/metadata.xml +++ b/dev-python/textdistance/metadata.xml @@ -14,4 +14,5 @@ <remote-id type="github">life4/textdistance</remote-id> </upstream> <origin>gentoo-staging</origin> + <stabilize-allarches/> </pkgmetadata>
\ No newline at end of file diff --git a/dev-python/textdistance/textdistance-4.2.0.ebuild b/dev-python/textdistance/textdistance-4.2.1.ebuild index a3b35e6301c4..2259757c7395 100644 --- a/dev-python/textdistance/textdistance-4.2.0.ebuild +++ b/dev-python/textdistance/textdistance-4.2.1.ebuild @@ -9,15 +9,12 @@ inherit distutils-r1 DESCRIPTION="Compute distance between the two texts" HOMEPAGE="https://github.com/life4/textdistance" -SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +SRC_URI="https://github.com/life4/textdistance/archive/v.${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" KEYWORDS="~amd64 ~x86" -# Too many strange failures -RESTRICT="test" - BDEPEND="test? ( dev-python/abydos[${PYTHON_USEDEP}] dev-python/hypothesis[${PYTHON_USEDEP}] @@ -28,4 +25,17 @@ BDEPEND="test? ( 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 +} |
