summaryrefslogtreecommitdiff
path: root/dev-python
diff options
context:
space:
mode:
authorLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-09-16 13:42:02 +0000
committerLiguros - Gitlab CI/CD [develop] <gitlab@liguros.net>2021-09-16 13:42:02 +0000
commit276cdd449d1edd50a21492372136bbfb175e1515 (patch)
treea175386992dc090774588224cb3741bc8c3bade0 /dev-python
parent2ed3fd4de6584dd715d835d3860e7c7a5a5cd732 (diff)
downloadbaldeagleos-repo-276cdd449d1edd50a21492372136bbfb175e1515.tar.gz
baldeagleos-repo-276cdd449d1edd50a21492372136bbfb175e1515.tar.xz
baldeagleos-repo-276cdd449d1edd50a21492372136bbfb175e1515.zip
Adding metadata
Diffstat (limited to 'dev-python')
-rw-r--r--dev-python/abydos/abydos-0.5.0-r1.ebuild7
-rw-r--r--dev-python/abydos/files/abydos-0.5.0-fix-py3.10.patch33
-rw-r--r--dev-python/autoprop/Manifest1
-rw-r--r--dev-python/autoprop/autoprop-4.0.2.ebuild24
-rw-r--r--dev-python/black/black-21.9_beta0.ebuild3
-rw-r--r--dev-python/fakeredis/Manifest1
-rw-r--r--dev-python/fakeredis/fakeredis-1.6.1.ebuild76
-rw-r--r--dev-python/gst-python/gst-python-1.18.4.ebuild2
-rw-r--r--dev-python/hypothesis/Manifest1
-rw-r--r--dev-python/hypothesis/hypothesis-6.21.4.ebuild62
-rw-r--r--dev-python/lunr/lunr-0.6.0.ebuild6
-rw-r--r--dev-python/nltk/metadata.xml1
-rw-r--r--dev-python/nltk/nltk-3.6.2-r1.ebuild1
-rw-r--r--dev-python/signature_dispatch/Manifest1
-rw-r--r--dev-python/signature_dispatch/signature_dispatch-1.0.0.ebuild23
-rw-r--r--dev-python/textdistance/textdistance-4.2.1-r1.ebuild17
-rw-r--r--dev-python/txaio/txaio-21.2.1.ebuild13
-rw-r--r--dev-python/websockets/websockets-9.1-r1.ebuild2
18 files changed, 248 insertions, 26 deletions
diff --git a/dev-python/abydos/abydos-0.5.0-r1.ebuild b/dev-python/abydos/abydos-0.5.0-r1.ebuild
index da0465a9a953..0d97daa06a24 100644
--- a/dev-python/abydos/abydos-0.5.0-r1.ebuild
+++ b/dev-python/abydos/abydos-0.5.0-r1.ebuild
@@ -11,12 +11,13 @@ DESCRIPTION="Abydos NLP/IR library"
HOMEPAGE="https://github.com/chrislit/abydos"
SRC_URI="https://github.com/chrislit/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-LICENSE="GPL-3"
+LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="amd64 x86"
# Requires access to the internet
RESTRICT="test"
+PROPERTIES="test_network"
RDEPEND="
dev-python/deprecation[${PYTHON_USEDEP}]
@@ -27,6 +28,10 @@ BDEPEND="test? (
dev-python/nltk[${PYTHON_USEDEP}]
)"
+PATCHES=(
+ "${FILESDIR}/${P}-fix-py3.10.patch"
+)
+
distutils_enable_tests pytest
# Extension error: You must configure the bibtex_bibfiles setting
#distutils_enable_sphinx docs dev-python/sphinx_rtd_theme dev-python/sphinxcontrib-bibtex
diff --git a/dev-python/abydos/files/abydos-0.5.0-fix-py3.10.patch b/dev-python/abydos/files/abydos-0.5.0-fix-py3.10.patch
new file mode 100644
index 000000000000..9cdcf77f4674
--- /dev/null
+++ b/dev-python/abydos/files/abydos-0.5.0-fix-py3.10.patch
@@ -0,0 +1,33 @@
+--- a/abydos/distance/_synoname.py
++++ b/abydos/distance/_synoname.py
+@@ -19,7 +19,7 @@
+ Synoname.
+ """
+
+-from collections import Iterable
++from collections.abc import Iterable
+
+ from deprecation import deprecated
+
+--- a/abydos/tokenizer/_q_grams.py
++++ b/abydos/tokenizer/_q_grams.py
+@@ -19,7 +19,7 @@
+ QGrams multi-set class
+ """
+
+-from collections import Iterable
++from collections.abc import Iterable
+
+ from ._tokenizer import _Tokenizer
+
+--- a/abydos/tokenizer/_q_skipgrams.py
++++ b/abydos/tokenizer/_q_skipgrams.py
+@@ -19,7 +19,7 @@
+ Q-Skipgrams multi-set class
+ """
+
+-from collections import Iterable
++from collections.abc import Iterable
+ from itertools import combinations
+
+ from ._tokenizer import _Tokenizer
diff --git a/dev-python/autoprop/Manifest b/dev-python/autoprop/Manifest
index 722879edebe9..a44822ff5205 100644
--- a/dev-python/autoprop/Manifest
+++ b/dev-python/autoprop/Manifest
@@ -1,2 +1,3 @@
DIST autoprop-3.0.0.tar.gz 14082 BLAKE2B 9881dd924b8d66e83dccb3e7ca1d753bec924e8f348d96d0522a76e857c85311ef7ada37b0080c1b3a0e719bf84e807d12c7e4dff4bbfc111273b340f92244a5 SHA512 4730155130b98fc02bea991837ee6d875f19ffa14ae542909314264950d20a34cdbff9e21b31431136624de0dac5eb2a50a9cf677da01862b38cae9c10bec92f
DIST autoprop-4.0.1.tar.gz 19998 BLAKE2B aefff2e8f1d583c45e77a2b0530a07e03be9229977f9f1229cfd832f609d2f31d4cd05ad741189ceb7a01d846e286c85158439952e587dd007526794c6b9a993 SHA512 d77caec360f59f247cd23a1636771808bdcbaa6ba96241cafeabc144e88975b607b604800d2d374c5b6f80b68bf631ab74278c19fe1544112a6c6813190c744f
+DIST autoprop-4.0.2.tar.gz 20050 BLAKE2B 06165a02dfee0755ccf375041487f015e632b56b24766ac3d4bd484caaf1c99a0506994f16ace753f5890b782690b640196ee0cd6fcce0078ef51f8addcfcfe6 SHA512 27c8578e8f023715b07ebe21f4f46e98e606c863d3257bb1c8c31d9f59551d2494ef99e24eed856b308c8c77e1a3276f9e370434aa3e61ebb0b32a9b44fceee7
diff --git a/dev-python/autoprop/autoprop-4.0.2.ebuild b/dev-python/autoprop/autoprop-4.0.2.ebuild
new file mode 100644
index 000000000000..c05e7933b113
--- /dev/null
+++ b/dev-python/autoprop/autoprop-4.0.2.ebuild
@@ -0,0 +1,24 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_SETUPTOOLS=no
+PYTHON_COMPAT=( python3_{6,7,8,9,10} )
+
+inherit distutils-r1
+
+DESCRIPTION="Infer properties from accessor methods"
+HOMEPAGE="
+ https://github.com/kalekundert/autoprop/
+ https://pypi.org/project/autoprop/"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+KEYWORDS="~amd64"
+SLOT="0"
+
+RDEPEND="
+ >=dev-python/signature_dispatch-1.0.0[${PYTHON_USEDEP}]"
+
+distutils_enable_tests pytest
diff --git a/dev-python/black/black-21.9_beta0.ebuild b/dev-python/black/black-21.9_beta0.ebuild
index a6fdb13d6ba8..f482572e89cd 100644
--- a/dev-python/black/black-21.9_beta0.ebuild
+++ b/dev-python/black/black-21.9_beta0.ebuild
@@ -43,7 +43,8 @@ export SETUPTOOLS_SCM_PRETEND_VERSION=${MY_PV}
src_prepare() {
# remove unnecessary bind that worked around broken 6.1.0/6.2.0 releases
- sed -i -e '/setuptools_scm/s:~=:>=:' setup.cfg || die
+ sed -i -e '/setuptools_scm/s:~=:>=:' \
+ -e 's/setuptools_scm\[toml\]>=[0-9.]*/setuptools_scm[toml]/' setup.cfg || die
distutils-r1_src_prepare
}
diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest
index 86c02f6b2d57..cf11b444080a 100644
--- a/dev-python/fakeredis/Manifest
+++ b/dev-python/fakeredis/Manifest
@@ -1,2 +1,3 @@
DIST fakeredis-1.5.1.gh.tar.gz 67064 BLAKE2B 6eac029b7de6fb2c9b56a60655b6a224cdcba25fa86662a0423044ab97248984c4c6cfbaacbe4bbb2e3fc6826693791f232c6c55d7f15995d0e5bd00370a9ba8 SHA512 74a238573f9f911e9a39885b52d8c908d51d5620e346b8927c161111ce193566c315999f71d3edb1cb1326970985fd73d533b5483afe0c98ad76798a3c15e242
DIST fakeredis-1.6.0.gh.tar.gz 70034 BLAKE2B 3e9526bf8a7bdafe2b471f0a9d488f0d654e93666863513444521eefd0ca31dbba7e589431b5dee64b27dbf9c2bcc05c1517f659942aa4491cae42b1d11f45b9 SHA512 7a3aefc161b2396e748b284152e088fc31a49a859259888cf8dcfd3a72045e84079977b0e8f11b571ab00d6c00fcf82dc28a1a50fa75633cf17215553bbd019b
+DIST fakeredis-1.6.1.gh.tar.gz 70171 BLAKE2B f10ac8aaec73871153ac7557a40984e6752b7e3720c1890380bda4aad828003403b6207c5e4f4ace18814e6ad33355acca08ff53cc33cb43acb5d9955ea6e5fc SHA512 1a8718d277d15a887901ed29691af83a2aea57605edf8cf2dbdc00c397a62ea8c1ed21440adadcda431a8ae8f33c85b549c5458a958b1fb74996e54ab612cd13
diff --git a/dev-python/fakeredis/fakeredis-1.6.1.ebuild b/dev-python/fakeredis/fakeredis-1.6.1.ebuild
new file mode 100644
index 000000000000..41c536305bc2
--- /dev/null
+++ b/dev-python/fakeredis/fakeredis-1.6.1.ebuild
@@ -0,0 +1,76 @@
+# Copyright 2020-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 )
+inherit distutils-r1 optfeature
+
+DESCRIPTION="Fake implementation of redis API for testing purposes"
+HOMEPAGE="
+ https://github.com/jamesls/fakeredis/
+ https://pypi.org/project/fakeredis/"
+SRC_URI="
+ https://github.com/jamesls/fakeredis/archive/${PV}.tar.gz
+ -> ${P}.gh.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~sparc ~x86"
+
+RDEPEND="
+ dev-python/redis-py[${PYTHON_USEDEP}]
+ dev-python/six[${PYTHON_USEDEP}]
+ dev-python/sortedcontainers[${PYTHON_USEDEP}]
+"
+BDEPEND="
+ test? (
+ dev-db/redis
+ dev-python/aioredis[${PYTHON_USEDEP}]
+ dev-python/hypothesis[${PYTHON_USEDEP}]
+ dev-python/pytest-mock[${PYTHON_USEDEP}]
+ )
+"
+
+distutils_enable_tests pytest
+
+EPYTEST_DESELECT=(
+ test/test_aioredis2.py::test_blocking_unblock
+ test/test_aioredis2.py::test_pubsub
+ "test/test_aioredis2.py::test_repr[fake]"
+ test/test_hypothesis.py::TestJoint::test
+ test/test_hypothesis.py::TestFuzz::test
+)
+
+python_test() {
+ local args=(
+ # tests requiring lupa (lua support)
+ -k 'not test_eval and not test_lua and not test_script'
+ )
+ epytest "${args[@]}"
+}
+
+src_test() {
+ local redis_pid="${T}"/redis.pid
+ local redis_port=6379
+ local redis_test_config="
+ daemonize yes
+ pidfile ${redis_pid}
+ port ${redis_port}
+ bind 127.0.0.1
+ "
+
+ einfo "Spawning Redis"
+ einfo "NOTE: Port ${redis_port} must be free"
+ "${EPREFIX}"/usr/sbin/redis-server - <<< "${redis_test_config}" || die
+
+ # Run the tests
+ distutils-r1_src_test
+
+ # Clean up afterwards
+ kill "$(<"${redis_pid}")" || die
+}
+
+pkg_postinst() {
+ optfeature "Mock aioredis" dev-python/aioredis
+}
diff --git a/dev-python/gst-python/gst-python-1.18.4.ebuild b/dev-python/gst-python/gst-python-1.18.4.ebuild
index a9958fde63c4..139f974dfc96 100644
--- a/dev-python/gst-python/gst-python-1.18.4.ebuild
+++ b/dev-python/gst-python/gst-python-1.18.4.ebuild
@@ -13,7 +13,7 @@ SRC_URI="https://gstreamer.freedesktop.org/src/${PN}/${P}.tar.xz"
LICENSE="LGPL-2+"
SLOT="1.0"
-KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
+KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-solaris"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="${PYTHON_DEPS}
diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest
index 3a880ab50371..1d55e804a4ad 100644
--- a/dev-python/hypothesis/Manifest
+++ b/dev-python/hypothesis/Manifest
@@ -8,3 +8,4 @@ DIST hypothesis-python-6.20.1.tar.gz 9146416 BLAKE2B ae3e10ffe2853009b8d698e0eae
DIST hypothesis-python-6.21.0.tar.gz 9162663 BLAKE2B a5a2fbb7b377e6cf769c3454ca89615551164e1b0dae24abee15191fcdff2eb1f01b9462c7aff68a7ea801477105bdfe5f6a33f098eb506325031d3511914ae5 SHA512 7d91d83580403da3afac0f4e0a72935c63d7da2ff28429423a3001b0a19a1b6216fe36eb526e91fe9e7f0cae481aa3f446695f7407ec2201c5f8abc6e3ea19a8
DIST hypothesis-python-6.21.1.tar.gz 9162836 BLAKE2B af52db17d51801d03496036f14b9b1e79667de64b4d5df925bffe00f67e11fb652f0e027bf250d3f4286e113052b3413b75fcd6c8922702924ca0eb9c46849dd SHA512 4e9d994e1323ee90cd4555ae3f310bcf4661079b287e000a65fbda7771e02c265c387df3bbbd0425d54b342de4fb20632b6a35842bc7a66affbdda159048359b
DIST hypothesis-python-6.21.3.tar.gz 9165503 BLAKE2B ee57b10021d5a8fd4731563e41e2583c879efd602779f5dfaa21a549b34bece29ebdd8386bcb637039b1c679a634f61ff68128c7d1e427ef4ca5ff571197b401 SHA512 0446df21f467cbabc6918a68b8a678db458ac798adaaf57090a756ff3a9b749dee550e77e1f78292d4bfe6f24caac175b104b4f4f1607521776c497649ac9c66
+DIST hypothesis-python-6.21.4.tar.gz 9165577 BLAKE2B f2bf805d1ff1d469b2f62aa7095183a6eef2fa6f0e1cbd611a7e62dd978456ae199f64479ac43a7d34ffa7f3ae6b35c4aa1691dc863e6cc509914a23aa767f89 SHA512 7fd8a4c6a35417ac14999cfa668b9976314e022bc432a20387ef82b97021b626fe8a25e43ae92e5ecfdba8ab9cee0f182621132287c82511d64231272365fd06
diff --git a/dev-python/hypothesis/hypothesis-6.21.4.ebuild b/dev-python/hypothesis/hypothesis-6.21.4.ebuild
new file mode 100644
index 000000000000..8b48444a4699
--- /dev/null
+++ b/dev-python/hypothesis/hypothesis-6.21.4.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{6,7,8,9,10} pypy3 )
+PYTHON_REQ_USE="threads(+),sqlite"
+
+inherit distutils-r1 multiprocessing optfeature
+
+DESCRIPTION="A library for property based testing"
+HOMEPAGE="https://github.com/HypothesisWorks/hypothesis https://pypi.org/project/hypothesis/"
+SRC_URI="https://github.com/HypothesisWorks/${PN}/archive/${PN}-python-${PV}.tar.gz"
+S="${WORKDIR}/${PN}-${PN}-python-${PV}/${PN}-python"
+
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos"
+IUSE="cli"
+
+RDEPEND="
+ >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}]
+ >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}]
+ cli? (
+ $(python_gen_cond_dep '
+ dev-python/black[${PYTHON_USEDEP}]
+ dev-python/click[${PYTHON_USEDEP}]
+ ' python3_{7..9})
+ )
+"
+BDEPEND="
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pexpect[${PYTHON_USEDEP}]
+ dev-python/pytest-xdist[${PYTHON_USEDEP}]
+ !!<dev-python/typing-3.7.4.1
+ )
+"
+
+distutils_enable_tests --install pytest
+
+python_prepare() {
+ if ! use cli || ! has "${EPYTHON}" python3.{7..9}; then
+ sed -i -e '/console_scripts/d' setup.py || die
+ fi
+}
+
+python_test() {
+ distutils_install_for_testing
+ epytest tests/cover tests/pytest tests/quality \
+ -p no:pytest-describe \
+ -n "$(makeopts_jobs "${MAKEOPTS}" "$(get_nproc)")"
+}
+
+pkg_postinst() {
+ optfeature "datetime support" dev-python/pytz
+ optfeature "dateutil support" dev-python/python-dateutil
+ optfeature "numpy support" dev-python/numpy
+ optfeature "django support" dev-python/django dev-python/pytz
+ optfeature "pandas support" dev-python/pandas
+ optfeature "pytest support" dev-python/pytest
+}
diff --git a/dev-python/lunr/lunr-0.6.0.ebuild b/dev-python/lunr/lunr-0.6.0.ebuild
index 994c74bf1d4e..b15f0ece0c02 100644
--- a/dev-python/lunr/lunr-0.6.0.ebuild
+++ b/dev-python/lunr/lunr-0.6.0.ebuild
@@ -27,6 +27,6 @@ BDEPEND="
distutils_enable_tests pytest
-python_test() {
- epytest --ignore tests/acceptance_tests
-}
+EPYTEST_DESELECT=(
+ tests/acceptance_tests
+)
diff --git a/dev-python/nltk/metadata.xml b/dev-python/nltk/metadata.xml
index 069e83748708..fc6f889949ac 100644
--- a/dev-python/nltk/metadata.xml
+++ b/dev-python/nltk/metadata.xml
@@ -9,4 +9,5 @@
<remote-id type="pypi">nltk</remote-id>
</upstream>
<origin>gentoo-staging</origin>
+ <stabilize-allarches/>
</pkgmetadata> \ No newline at end of file
diff --git a/dev-python/nltk/nltk-3.6.2-r1.ebuild b/dev-python/nltk/nltk-3.6.2-r1.ebuild
index f9fb76d1217f..a479e94a812e 100644
--- a/dev-python/nltk/nltk-3.6.2-r1.ebuild
+++ b/dev-python/nltk/nltk-3.6.2-r1.ebuild
@@ -3,7 +3,6 @@
EAPI=7
-DISTUTILS_USE_SETUPTOOLS=rdepend
PYTHON_COMPAT=( python3_{6,7,8,9,10} )
PYTHON_REQ_USE="sqlite,tk?,xml(+)"
diff --git a/dev-python/signature_dispatch/Manifest b/dev-python/signature_dispatch/Manifest
index 8cb04a2dcf84..e586ee04ef77 100644
--- a/dev-python/signature_dispatch/Manifest
+++ b/dev-python/signature_dispatch/Manifest
@@ -1,2 +1,3 @@
DIST signature_dispatch-0.1.0.tar.gz 8715 BLAKE2B c62f5d0b0b263e50215d588e83bab4b5ca6dff82f856ad6265a0bb2dd64e2a3a8dfd0b8989ec17424828575607bd4dccc5802ef072af271eddb88c2479e6b8e7 SHA512 687a1de540a61d274e93510d2c5a93c736a52587b0215aef91364e34ad8932b880361b53fb84e68f9c2083652fa97c759705b4d61bc74caeba73a4ff37b42785
DIST signature_dispatch-0.2.0.tar.gz 11422 BLAKE2B 3e3297ef34bb4f7352fe867edd2c804d627d5f8e854b1551c88dcdea2f83a6e2cde9c0f088d263e405f29ccd7114717c9348dc59d60ccd00a4ebb84db800d398 SHA512 e2fedfe3260be641c319364a8f79b2d1444179c824e409fb8304352cc9f73fc2cfb8fbdab6788c14d08e716d4655cda72bc15b406596d43520f959973fc612c5
+DIST signature_dispatch-1.0.0.tar.gz 15102 BLAKE2B d0fe384551136d23f815129849ec70c0d1bd8616dab571122b7407578f3cc0d614fc5c44f3de5d9541bed9e9e3a0887517fff1183fd6c782bde603d774fe09f1 SHA512 c13ac92f50a8bd7a9fcd0b231f74a14539fd9c0303fdb29860a93116512a20113708c3207c4b2d8f61a48a9632e8cd21f7ea3fcb49ae3a4b1c79eb6a71df4eab
diff --git a/dev-python/signature_dispatch/signature_dispatch-1.0.0.ebuild b/dev-python/signature_dispatch/signature_dispatch-1.0.0.ebuild
new file mode 100644
index 000000000000..f218c2825b72
--- /dev/null
+++ b/dev-python/signature_dispatch/signature_dispatch-1.0.0.ebuild
@@ -0,0 +1,23 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_SETUPTOOLS=no
+PYTHON_COMPAT=( python3_{6,7,8,9,10} )
+inherit distutils-r1
+
+DESCRIPTION="Execute the first function that matches the given arguments"
+HOMEPAGE="
+ https://github.com/kalekundert/signature_dispatch/
+ https://pypi.org/project/signature-dispatch/"
+SRC_URI="mirror://pypi/${PN::1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+distutils_enable_tests pytest
+
+RDEPEND="
+ dev-python/typeguard[${PYTHON_USEDEP}]"
diff --git a/dev-python/textdistance/textdistance-4.2.1-r1.ebuild b/dev-python/textdistance/textdistance-4.2.1-r1.ebuild
index c99dbd1cae49..4e3dfc2627a8 100644
--- a/dev-python/textdistance/textdistance-4.2.1-r1.ebuild
+++ b/dev-python/textdistance/textdistance-4.2.1-r1.ebuild
@@ -4,12 +4,12 @@
EAPI=7
PYTHON_COMPAT=( python3_{6,7,8,9,10} )
-
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"
+S="${WORKDIR}/${PN}-v.${PV}"
LICENSE="MIT"
SLOT="0"
@@ -25,17 +25,8 @@ 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
-}
+EPYTEST_DESELECT=(
+ tests/test_external.py
+)
diff --git a/dev-python/txaio/txaio-21.2.1.ebuild b/dev-python/txaio/txaio-21.2.1.ebuild
index 4a5755c11f1f..c5527682c9f4 100644
--- a/dev-python/txaio/txaio-21.2.1.ebuild
+++ b/dev-python/txaio/txaio-21.2.1.ebuild
@@ -2,9 +2,9 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python3_{6,7,8,9,10} )
-inherit distutils-r1
+PYTHON_COMPAT=( python3_{6,7,8,9,10} )
+inherit distutils-r1 optfeature
DESCRIPTION="Compatibility API between asyncio/Twisted/Trollius"
HOMEPAGE="https://github.com/crossbario/txaio https://pypi.org/project/txaio/"
@@ -24,9 +24,12 @@ distutils_enable_sphinx docs \
'>=dev-python/sphinx_rtd_theme-0.1.9'
distutils_enable_tests pytest
-src_prepare() {
- default_src_prepare
+EPYTEST_DESELECT=(
# Take out failing tests known to pass when run manually
# we certainly don't need to test "python setup.py sdist" here
- rm "${S}/test/test_packaging.py" || die
+ test/test_packaging.py
+)
+
+pkg_postinst() {
+ optfeature "Twisted support" "dev-python/twisted dev-python/zope-interface"
}
diff --git a/dev-python/websockets/websockets-9.1-r1.ebuild b/dev-python/websockets/websockets-9.1-r1.ebuild
index ed163a51ec4a..2078c54e447d 100644
--- a/dev-python/websockets/websockets-9.1-r1.ebuild
+++ b/dev-python/websockets/websockets-9.1-r1.ebuild
@@ -16,7 +16,7 @@ SRC_URI="
LICENSE="BSD"
SLOT="0"
-KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
+KEYWORDS="~amd64 arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86"
distutils_enable_tests unittest