diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-09-05 00:50:05 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-09-05 00:50:05 +0000 |
| commit | 56eb5226b58a3759583c42b9584d25f1f10247a0 (patch) | |
| tree | da424ff152431e5205e1e2295d4a16a2a365ddd4 /dev-python | |
| parent | 6e6cda1a514b50dd745abd74745fbdf64db4aca6 (diff) | |
| download | baldeagleos-repo-56eb5226b58a3759583c42b9584d25f1f10247a0.tar.gz baldeagleos-repo-56eb5226b58a3759583c42b9584d25f1f10247a0.tar.xz baldeagleos-repo-56eb5226b58a3759583c42b9584d25f1f10247a0.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/PyPDF2/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/PyPDF2/PyPDF2-2.10.5.ebuild | 58 | ||||
| -rw-r--r-- | dev-python/arrow/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/arrow/arrow-1.2.3.ebuild | 39 | ||||
| -rw-r--r-- | dev-python/configshell-fb/configshell-fb-1.1.29.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/fakeredis/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/fakeredis/fakeredis-1.9.1.ebuild | 88 | ||||
| -rw-r--r-- | dev-python/graph-tool/graph-tool-2.45.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/graph-tool/graph-tool-9999.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/pybind11/pybind11-2.10.0.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/pybind11/pybind11-2.9.2-r1.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/rtslib-fb/rtslib-fb-2.1.74.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/tagpy/tagpy-2018.1-r3.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/tqdm/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/tqdm/tqdm-4.64.1.ebuild | 46 |
15 files changed, 243 insertions, 7 deletions
diff --git a/dev-python/PyPDF2/Manifest b/dev-python/PyPDF2/Manifest index 50050300ed18..de4e0e182274 100644 --- a/dev-python/PyPDF2/Manifest +++ b/dev-python/PyPDF2/Manifest @@ -2,7 +2,9 @@ DIST PyPDF2-2.10.0.gh.tar.gz 6355180 BLAKE2B 1070e4989609cb1361f966f06a23a972ba0 DIST PyPDF2-2.10.2.gh.tar.gz 6434051 BLAKE2B 36778692fc8fff4c4dba16e94128b09d366a7c10d0f2a73c85f6de1b2baf1c6545fdd816cf633757276b79893087fc983c8a0b8e756fd375a0ae319cb75fe108 SHA512 6e19bc2967abfd813f05607126e3ae07daa202428db667c6a729513f12f4d962f0350475dd5806bd36a40fafd7dc6c2073fd7d4db24321061b1a73e93225e78b DIST PyPDF2-2.10.3.gh.tar.gz 6435551 BLAKE2B 2907ef5f8fb7117d895d87326fd8281154cb5a78be54e832489c211f10a2cb2762051eff419279e2f3e70ed773645b08b59d598c9c7edba575c06d9e34fcefa6 SHA512 a8b05f280e8aecd9b54a143dc77c6aa5e095485e4d9c38c3d2ab62855e004d4c8333b88c7b663cf282d7a7eeac920595d94e6c3ba7524850272d82cb504a4f7c DIST PyPDF2-2.10.4.gh.tar.gz 6435008 BLAKE2B 00f4b2f65198026715186dbf1ced15e825cb061873f3b8d3d7716d81439d3d44b392ea90d886ce8aad45b1fd29fafcbb917e9aed795d311c98e2752643ae40be SHA512 ac865096ae370626ad7ab243a5c95fafc95e71c31e79c4f89be919205d956726d0147a7b4cf5a2bcddb021999261fa0a73942df64763cf3c8b30620274ea518d +DIST PyPDF2-2.10.5.gh.tar.gz 6443691 BLAKE2B 6b60ea4d1a044ee5f20718744118f5739a4271a0552960e2760c4904f57201ed8426d4cb81ce5f5d2170b84958e1b17ea3de843137e669ed7b202a49db8654c2 SHA512 cf07448b2ea4397f1bf5b2d563956bda218e9031b4396e86c2d689d518c7c2b17920771dbdf0e5ed6013dd96d957add12d3f4fbdf3a8bd3262a1fae38ae741d8 DIST PyPDF2-2.8.1.gh.tar.gz 5872212 BLAKE2B 19224d1b38947ad14adfb9b33201e0223f6da43072c6bffb78fae939872d0a025e6d2fd6f1eed0c0b88754a359a5459a45a36130659d81089caa884025a922d1 SHA512 6414339017c154610dbb5affcbf94fcda7ab6d1ea78f35cc348a2b8e5fc8c60216c4f20ffc114cb3abd8245ad7a8b40b4cca6161e3a98caff896fb823acc7bea DIST PyPDF2-2.9.0.gh.tar.gz 5877910 BLAKE2B afea03f9ac21e4b39cd39ce03adf70a8e08b80315f7cdd81440e371396ba48939560a3835de9587be8020e1aab75726409ecec753ef0fb042d69fe7fc6755e80 SHA512 fefbc6e6eb7ac0a0154f662044acb66f1c034efc114e878ced109d54a3e5427bb73088cb88d765c4576c2d67459a2daf64415789f8efe9b66cf8ed2bb78ff297 DIST PyPDF2-sample-files-200644f7219811c3930ad1732ef70c570ece2d16.gh.tar.gz 5513604 BLAKE2B 1bfccaf3b50431d32341c24ea7aa203060d40d60a4b3656df35274d056918e7fccf99e11ee2539f65e6de15741ce28acaccd0ddc771ca334a8ba18a8953aee05 SHA512 5d2e1aa06e240957e9ec230406208fc653384b45b9e4b6631580c2eb4f08327e192c6ef57c2310ef3ed0604c85015b15f5ade8ef7d9f525e73733e040fe37fe5 DIST PyPDF2-sample-files-b6f4ff3de00745783d79f25cb8803901d1f20d28.gh.tar.gz 5522867 BLAKE2B 9a6cb3b92032f9ec697b972b1a257b2c2528d36cd4a7e40092ac6dbf0a4955c5b204b8c82d37f9bad4a19fccddf0070b095ee2f3b56de22d738ed3d8a3b555c0 SHA512 74aad38060f441ace87f6650de152a28f4a251e4f47574a8d46066857c8fbbb187cd3cd275caa198dce2c1557e90664b288f071995c2bbb9bf13a341210313e8 +DIST PyPDF2-sample-files-bedcbe077c4898e1b97c6c6f81d937f5048b4630.gh.tar.gz 7198720 BLAKE2B 91d177e7329fd137322972a3a38841cb0611de7f839071fe2fa5ecff0343cbffdf6976f42f4a779f520a8a2bac2d6573c5cd65bf2f1bc68395077e6e9c7322d9 SHA512 0cdaee85f1da12cf678165f06c8d351aa0808137d25f68c07f19f1bd3c929eeb52e604041dfaa0df94665379aeb7d19a43426d724a5e6602b7e4fbe7a62e753d diff --git a/dev-python/PyPDF2/PyPDF2-2.10.5.ebuild b/dev-python/PyPDF2/PyPDF2-2.10.5.ebuild new file mode 100644 index 000000000000..56014cf76ecb --- /dev/null +++ b/dev-python/PyPDF2/PyPDF2-2.10.5.ebuild @@ -0,0 +1,58 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} ) + +inherit distutils-r1 + +SAMPLE_COMMIT=bedcbe077c4898e1b97c6c6f81d937f5048b4630 +DESCRIPTION="Python library to work with PDF files" +HOMEPAGE=" + https://pypi.org/project/PyPDF2/ + https://github.com/py-pdf/PyPDF2/ +" +SRC_URI=" + https://github.com/py-pdf/PyPDF2/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz + test? ( + https://github.com/py-pdf/sample-files/archive/${SAMPLE_COMMIT}.tar.gz + -> ${PN}-sample-files-${SAMPLE_COMMIT}.gh.tar.gz + ) +" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86" +RESTRICT="test" +# 150+ tests require network, too many to deselect +PROPERTIES="test_network" + +RDEPEND=" + $(python_gen_cond_dep ' + dev-python/typing-extensions[${PYTHON_USEDEP}] + ' 3.8 3.9) +" +BDEPEND=" + dev-python/pillow[${PYTHON_USEDEP}] + test? ( + dev-python/pycryptodome[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # rely on -Werror + tests/test_utils.py::test_deprecate_no_replacement + tests/test_workflows.py::test_orientations +) + +src_unpack() { + default + if use test; then + mv "sample-files-${SAMPLE_COMMIT}"/* "${P}"/sample-files/ || die + fi +} diff --git a/dev-python/arrow/Manifest b/dev-python/arrow/Manifest index 00b1f1828774..49af92701742 100644 --- a/dev-python/arrow/Manifest +++ b/dev-python/arrow/Manifest @@ -1 +1,2 @@ DIST arrow-1.2.2.tar.gz 123174 BLAKE2B b8b8d83ede0c61840ffcc75272a0275b6120cc142197c5f95f0fdb7d53981879b431f074db9606caa8d9817761cc4847a525bbc6449c05155410808960a1541e SHA512 f88afa9a0bc967e8731a7bf1712ecf3810f12ade9cc53a94a74efd3ece750f37bea7541a054eb9acd12b99b4a6d32687eab4eae20a6f49b2c2d6f1b499221542 +DIST arrow-1.2.3.tar.gz 127552 BLAKE2B 35f5b694d819d80913b5938e4af71f413fd3944636c1e89a79e868c03cb423f75692c1f0e8d85dba21e640591f8cd0404cdc6d77dd59956490d268fb4c9fdc7b SHA512 e90276f50bf8521570cc2cdbf011ff376e0d5bada0576bbfc76f6c63730c13f7eba1d978cc3a481e7c7356b0dce7c554f19cbf3ef03b280c5515be72d2c7d177 diff --git a/dev-python/arrow/arrow-1.2.3.ebuild b/dev-python/arrow/arrow-1.2.3.ebuild new file mode 100644 index 000000000000..a9d613be574a --- /dev/null +++ b/dev-python/arrow/arrow-1.2.3.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Better dates and times for Python" +HOMEPAGE=" + https://github.com/arrow-py/arrow/ + https://pypi.org/project/arrow/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/python-dateutil-2.7.0[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/pytest-mock[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/simplejson[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + sed -e '/addopts/d' -i tox.ini || die + distutils-r1_src_prepare +} diff --git a/dev-python/configshell-fb/configshell-fb-1.1.29.ebuild b/dev-python/configshell-fb/configshell-fb-1.1.29.ebuild index 02235facbe1c..67d3eb798689 100644 --- a/dev-python/configshell-fb/configshell-fb-1.1.29.ebuild +++ b/dev-python/configshell-fb/configshell-fb-1.1.29.ebuild @@ -12,7 +12,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv x86" +KEYWORDS="amd64 ~arm ~arm64 ~ia64 ~ppc ~ppc64 ~riscv ~sparc x86" RDEPEND="dev-python/pyparsing[${PYTHON_USEDEP}] dev-python/six[${PYTHON_USEDEP}] diff --git a/dev-python/fakeredis/Manifest b/dev-python/fakeredis/Manifest index 4f2bb979ea55..fd3828aebd3e 100644 --- a/dev-python/fakeredis/Manifest +++ b/dev-python/fakeredis/Manifest @@ -1,2 +1,3 @@ DIST fakeredis-py-1.8.2.gh.tar.gz 96238 BLAKE2B 17fd75d2ca6e929fbbdab87e9a6450d72006a3dc72a2d81a3f381c1918f2ca12f273468bf8015e80df78e9df393d2f7002b13e12989d108f93beb3287472c0c6 SHA512 6a86c0fa41920f4446b66d4d152850227a23f5a031a80d0d9109117de7252965821dc8d9f022b9fd703f8ed66fad207f6542bd6ee524a54f2053bbcd2ed9965e DIST fakeredis-py-1.9.0.gh.tar.gz 85475 BLAKE2B 99c5fdf2fb665505f6450a3ec08a401a0a629c62722709b4775ac2752816e6b461579f4a3df6d7a11a07e170e369ee1703294d9ef607a52318a7a8d583ce6264 SHA512 ca379d610a62053bb417aad1cd618356240697d0afdaca0467506d7b1ec38997d46b358a31356cdec8ecd1719386f942fd220f8b0a396bfc8c5316c2143f20f1 +DIST fakeredis-py-1.9.1.gh.tar.gz 86742 BLAKE2B aa3f0b05f486219cb6eb560f561ab3e39cc32286cdc3f4f9aba667e256528b9338dcc03f3ddb00c0db30ddb181afe535e209f6ee0e98c56a0cad445e2181ec67 SHA512 27b4c95e596fdd69cecc737897edfedd6f55e7c5610394b1532e4b2aededaed6ad15763582ce6cc20821ac7ea096f60204f7080d247359d8e8d0d360a61c8e39 diff --git a/dev-python/fakeredis/fakeredis-1.9.1.ebuild b/dev-python/fakeredis/fakeredis-1.9.1.ebuild new file mode 100644 index 000000000000..d19c65f5f4a8 --- /dev/null +++ b/dev-python/fakeredis/fakeredis-1.9.1.ebuild @@ -0,0 +1,88 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 ) + +inherit distutils-r1 + +MY_P=fakeredis-py-${PV} +DESCRIPTION="Fake implementation of redis API for testing purposes" +HOMEPAGE=" + https://github.com/cunla/fakeredis-py/ + https://pypi.org/project/fakeredis/ +" +SRC_URI=" + https://github.com/cunla/fakeredis-py/archive/v${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + >=dev-python/redis-py-4.2[${PYTHON_USEDEP}] + <dev-python/redis-py-4.4[${PYTHON_USEDEP}] + >=dev-python/six-1.16.0[${PYTHON_USEDEP}] + >=dev-python/sortedcontainers-2.4.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-db/redis + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-mock[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # unpin redis + sed -i -e '/redis/s:<[0-9.]*:*:' pyproject.toml || die + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # also lupa + test/test_aioredis2.py::test_failed_script_error + # TODO + "test/test_fakeredis.py::test_set_get_nx[StrictRedis]" + "test/test_fakeredis.py::test_lpop_count[StrictRedis]" + "test/test_fakeredis.py::test_rpop_count[StrictRedis]" + "test/test_fakeredis.py::test_zadd_minus_zero[StrictRedis]" + ) + local EPYTEST_IGNORE=( + # these tests fail a lot... + test/test_hypothesis.py + ) + 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 + + einfo "Spawning Redis" + einfo "NOTE: Port ${redis_port} must be free" + "${EPREFIX}"/usr/sbin/redis-server - <<- EOF || die "Unable to start redis server" + daemonize yes + pidfile ${redis_pid} + port ${redis_port} + bind 127.0.0.1 + EOF + + # Run the tests + distutils-r1_src_test + + # Clean up afterwards + kill "$(<"${redis_pid}")" || die +} diff --git a/dev-python/graph-tool/graph-tool-2.45.ebuild b/dev-python/graph-tool/graph-tool-2.45.ebuild index e30e2dbde51b..8fdb35d42653 100644 --- a/dev-python/graph-tool/graph-tool-2.45.ebuild +++ b/dev-python/graph-tool/graph-tool-2.45.ebuild @@ -25,7 +25,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}" RDEPEND=" ${PYTHON_DEPS} - >=dev-libs/boost-1.70:=[context,python,${PYTHON_USEDEP}] + dev-libs/boost:=[context,python,${PYTHON_USEDEP}] dev-libs/expat dev-python/numpy[${PYTHON_USEDEP}] dev-python/scipy[${PYTHON_USEDEP}] diff --git a/dev-python/graph-tool/graph-tool-9999.ebuild b/dev-python/graph-tool/graph-tool-9999.ebuild index e30e2dbde51b..8fdb35d42653 100644 --- a/dev-python/graph-tool/graph-tool-9999.ebuild +++ b/dev-python/graph-tool/graph-tool-9999.ebuild @@ -25,7 +25,7 @@ REQUIRED_USE="${PYTHON_REQUIRED_USE}" RDEPEND=" ${PYTHON_DEPS} - >=dev-libs/boost-1.70:=[context,python,${PYTHON_USEDEP}] + dev-libs/boost:=[context,python,${PYTHON_USEDEP}] dev-libs/expat dev-python/numpy[${PYTHON_USEDEP}] dev-python/scipy[${PYTHON_USEDEP}] diff --git a/dev-python/pybind11/pybind11-2.10.0.ebuild b/dev-python/pybind11/pybind11-2.10.0.ebuild index 6ebdacd991d1..e18c85d27bd6 100644 --- a/dev-python/pybind11/pybind11-2.10.0.ebuild +++ b/dev-python/pybind11/pybind11-2.10.0.ebuild @@ -29,7 +29,7 @@ RDEPEND=" BDEPEND=" test? ( >=dev-cpp/catch-2.13.5 - >=dev-libs/boost-1.56 + dev-libs/boost ) " diff --git a/dev-python/pybind11/pybind11-2.9.2-r1.ebuild b/dev-python/pybind11/pybind11-2.9.2-r1.ebuild index d9f39cdd9b26..e324e717e50a 100644 --- a/dev-python/pybind11/pybind11-2.9.2-r1.ebuild +++ b/dev-python/pybind11/pybind11-2.9.2-r1.ebuild @@ -29,7 +29,7 @@ RDEPEND=" BDEPEND=" test? ( >=dev-cpp/catch-2.13.5 - >=dev-libs/boost-1.56 + dev-libs/boost ) " diff --git a/dev-python/rtslib-fb/rtslib-fb-2.1.74.ebuild b/dev-python/rtslib-fb/rtslib-fb-2.1.74.ebuild index b82dfb54fbd7..75e41eea0958 100644 --- a/dev-python/rtslib-fb/rtslib-fb-2.1.74.ebuild +++ b/dev-python/rtslib-fb/rtslib-fb-2.1.74.ebuild @@ -13,7 +13,7 @@ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" -KEYWORDS="amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv x86 ~amd64-linux ~x86-linux" +KEYWORDS="amd64 ~arm ~arm64 ~ia64 ~mips ~ppc ~ppc64 ~riscv ~sparc x86 ~amd64-linux ~x86-linux" RDEPEND="dev-python/pyudev[${PYTHON_USEDEP}] dev-python/six[${PYTHON_USEDEP}]" diff --git a/dev-python/tagpy/tagpy-2018.1-r3.ebuild b/dev-python/tagpy/tagpy-2018.1-r3.ebuild index 758e5efc39ab..4bb1c1cf6ca0 100644 --- a/dev-python/tagpy/tagpy-2018.1-r3.ebuild +++ b/dev-python/tagpy/tagpy-2018.1-r3.ebuild @@ -19,7 +19,7 @@ KEYWORDS="amd64 ppc ppc64 ~sparc x86" IUSE="examples" RDEPEND=" - >=dev-libs/boost-1.70:=[python,threads(+),${PYTHON_USEDEP}] + dev-libs/boost:=[python,${PYTHON_USEDEP}] >=media-libs/taglib-1.8" DEPEND="${RDEPEND}" diff --git a/dev-python/tqdm/Manifest b/dev-python/tqdm/Manifest index dba4b9568441..755a43b58b8d 100644 --- a/dev-python/tqdm/Manifest +++ b/dev-python/tqdm/Manifest @@ -1 +1,2 @@ DIST tqdm-4.64.0.tar.gz 169499 BLAKE2B a6b9587a366c026716c63af4358ddba693b52be3490a161071bc750fffcd50429bc639255635d96c950a130d9fe994dc2abc98f3fbaf0a0c344140c8ae972596 SHA512 84d243b86ea3665e915e6a79e7887a4d0487b166971d211e34229b7a46429f4e4f5808c03f24420b20fb85d274e1e6b36ed852af99c5c9d177c8ce71f0ce0c17 +DIST tqdm-4.64.1.tar.gz 169599 BLAKE2B 4c48f647beb46f22e3c065e2e9c1dc29755c74a2fd29cb8ad8b0dfeab529499d0fbca9296d06453012b3bbf9f9870f95da5e2f37f4c8ba29a71cbee3bd15116b SHA512 bc7ab34145722229737d25d87895c8760b82271c345e1174c83f5896cc893f92a27901d83575472ad124329acdad69bd21e7d68e79aeeefb0e66c83b11989d18 diff --git a/dev-python/tqdm/tqdm-4.64.1.ebuild b/dev-python/tqdm/tqdm-4.64.1.ebuild new file mode 100644 index 000000000000..4edbbeb8e4f3 --- /dev/null +++ b/dev-python/tqdm/tqdm-4.64.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} pypy3 ) + +inherit bash-completion-r1 distutils-r1 + +DESCRIPTION="Add a progress meter to your loops in a second" +HOMEPAGE=" + https://github.com/tqdm/tqdm/ + https://pypi.org/project/tqdm/ +" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" +IUSE="examples" + +BDEPEND=" + dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + dev-python/pytest-timeout[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +EPYTEST_IGNORE=( + # Skip unpredictable performance tests + tests/tests_perf.py +) + +python_install_all() { + doman tqdm/tqdm.1 + newbashcomp tqdm/completion.sh tqdm + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF}/examples + fi + distutils-r1_python_install_all +} |
