diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-08-07 06:41:14 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2023-08-07 06:41:14 +0000 |
| commit | 6a06f13c270b45025db2fd4542cc43cd5e1a8e51 (patch) | |
| tree | a8d8e1851035bbf1a87711c6ef07f15ee2f8fb9c /dev-python | |
| parent | 2a0a7842613c7b604b93722ec657df60efede78e (diff) | |
| download | baldeagleos-repo-6a06f13c270b45025db2fd4542cc43cd5e1a8e51.tar.gz baldeagleos-repo-6a06f13c270b45025db2fd4542cc43cd5e1a8e51.tar.xz baldeagleos-repo-6a06f13c270b45025db2fd4542cc43cd5e1a8e51.zip | |
Adding metadata
Diffstat (limited to 'dev-python')
24 files changed, 585 insertions, 0 deletions
diff --git a/dev-python/aiocache/Manifest b/dev-python/aiocache/Manifest index 421a8f796e2c..10dac826433c 100644 --- a/dev-python/aiocache/Manifest +++ b/dev-python/aiocache/Manifest @@ -1 +1,2 @@ DIST aiocache-0.12.0.tar.gz 127002 BLAKE2B efb07ff146d777e99154c839d01665d35fbba410e1a1ca80d4c71f639e69abf43509d79398679027f0a94eb24cfdf933f5762418bd3f43dd441281cc1b1b5236 SHA512 8437c148cc2d40737c0352b0a2fa19636124b71bc03f206066e5c7b8910aa0f0bddfa40587d50a4acd86abd88e8db595a92e267d4b25234f20ccba94e5a63e7e +DIST aiocache-0.12.2.tar.gz 131851 BLAKE2B a8467ec12321248f7673245c427567d2c8ef345a6a34694618fce0969e186de47097d64c3b94cbf047a281a1ed09889075862d9770f7787daaf9469f245b2493 SHA512 ce57e3fdbd428e8a8a94a45e5196e339d40f4fffa49851c3486b264e6344d72fe39407bd958a97baa7af06433c08a0e9d6a7ae44eff515dfc40012804ac876f2 diff --git a/dev-python/aiocache/aiocache-0.12.2.ebuild b/dev-python/aiocache/aiocache-0.12.2.ebuild new file mode 100644 index 000000000000..d0b77d5def67 --- /dev/null +++ b/dev-python/aiocache/aiocache-0.12.2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2023 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,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Asyncio cache manager" +HOMEPAGE=" + https://github.com/aio-libs/aiocache/ + https://pypi.org/project/aiocache/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +BDEPEND=" + test? ( + dev-db/redis + >=dev-python/msgpack-0.5.5[${PYTHON_USEDEP}] + dev-python/pytest-asyncio[${PYTHON_USEDEP}] + >=dev-python/redis-4.2.0[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_IGNORE=( + # benchmarks + tests/performance + # requires aiomcache + tests/ut/backends/test_memcached.py + ) + + epytest -o addopts= -m "not memcached" +} + +src_test() { + local redis_pid="${T}"/redis.pid + local redis_port=6379 + + # Spawn Redis for testing purposes + 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 ::1 + EOF + + # Run the tests + distutils-r1_src_test + + # Clean up afterwards + kill "$(<"${redis_pid}")" || die +} diff --git a/dev-python/bitarray/Manifest b/dev-python/bitarray/Manifest index 427692dbbcf1..ff0b8200e198 100644 --- a/dev-python/bitarray/Manifest +++ b/dev-python/bitarray/Manifest @@ -1,2 +1,3 @@ DIST bitarray-2.7.6.tar.gz 124627 BLAKE2B 2beafbcd4906a56bad3c6310671ab16db27f03c32eb91c73058b859e1642f24edfed07920da853b08aa8f7c4703e05b57b25a83dddaaa14e0921798fbe2b1faa SHA512 e425664bec8976ac42bb62c3f80bf835efe41bff803afc77c82c267af2d831d55dd9b962f157aebc64a2df6a7d427523ec155a67991c49956e13b205e66e55f1 DIST bitarray-2.8.0.tar.gz 127371 BLAKE2B 59f90afc1bac49de13ee49b29221b0617511f39eb2fb2d9b5b9d96e6ae52b54cfafb037366dff8a1772d9daf97f598bf7565c32fcd5c5abf0c56441d5748286e SHA512 6e30a0a4f0b7058102fa5cb6841565520ac09a938c4ccd51c880c0923f69a15198646e60256914985d06a428f26456965a18c64e2c2e2323b9156a47f0bb577f +DIST bitarray-2.8.1.tar.gz 128846 BLAKE2B 5f7792c58a61e3aeaf510376e7dec5c808bd6a3d545cd3245ae430d7f742694e96176e07b07a3e98233f3b7ba5106ba5b8019da1d6278603df5aa6eb88ee8e93 SHA512 c3d59630ff3a907c1a86a8283075609d6fbd870fe884e007bdd092fcca0b2ed7b6d28c062924ba39ca0d7dad403df0349e29d2bf48851640bb51f8e1b1b7eae6 diff --git a/dev-python/bitarray/bitarray-2.8.1.ebuild b/dev-python/bitarray/bitarray-2.8.1.ebuild new file mode 100644 index 000000000000..0caa62759874 --- /dev/null +++ b/dev-python/bitarray/bitarray-2.8.1.ebuild @@ -0,0 +1,24 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Efficient arrays of booleans -- C extension" +HOMEPAGE=" + https://github.com/ilanschnell/bitarray/ + https://pypi.org/project/bitarray/ +" + +SLOT="0" +LICENSE="PSF-2" +KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + +python_test() { + "${EPYTHON}" bitarray/test_bitarray.py -v || die "Tests fail with ${EPYTHON}" +} diff --git a/dev-python/hypothesis/Manifest b/dev-python/hypothesis/Manifest index c1a3751a2ae4..23450e68c5d8 100644 --- a/dev-python/hypothesis/Manifest +++ b/dev-python/hypothesis/Manifest @@ -3,3 +3,4 @@ DIST hypothesis-6.81.1.gh.tar.gz 9377813 BLAKE2B 6ba0d9bd8fd12d521909151c7bb04ea DIST hypothesis-6.81.2.gh.tar.gz 9378154 BLAKE2B d4654e8de621af93fa6ab013bf45ea1c2e8b273f38cf0dddbe00853d197487acf2a9457a33e59fd59b9c5c7dca08a84867a835cdfa8e4a63181df5105889c360 SHA512 41f5e6b8382c08dd0e4285836a3f1308f6666d86387e10899c5ef8839598e097d31a5360cf7d47f2d30c287ad575787ecb44c236ad83c52202cf8895046c56a0 DIST hypothesis-6.82.0.gh.tar.gz 9378337 BLAKE2B fb99a499c7b850c4d81f01b99969d611ee8a39a1b1d1a5306b72999b1ca20d605fb42adbc090eedbe06359056d05860e2166be9f8f8001460ea61b398a432de6 SHA512 2f8b16c1a32340a3aa742627cbbc958cb06e8966b704bd389c8677d58fc3e76e6988705315d570daeb46975839b1c725f5f6a937ff1c326cbed144659ec44d05 DIST hypothesis-6.82.1.gh.tar.gz 9378717 BLAKE2B 2127d101f5c477fa99abe07df09928d0be475dd052f8f121ec038488eb4b5b35508b09524ae06ae8fe41712724fbb50f8db4aa72472a7315cc3ad68b9000371e SHA512 3fb983b2246aaa9860694f07eee9fafb28f560b3ba105544d3d4345ba323543f194109b710c639e86287572ad5ed141c2edf6c89c0f4a71a003505a797effddc +DIST hypothesis-6.82.2.gh.tar.gz 9378887 BLAKE2B 8b1c65ea9080bb280a6f7b761aef0c24539c707b0875621baa2b011188839d8179dcbcac051c97fe36c870404d67ec28124857646f8d95d34b44bea081ef1658 SHA512 cd5dfa439f4f5bdbf744e25bf24b5265515c7077d142eecbb77825056e44417124ffd1f97755d6804d412424e0ef78a77e77e112cafb7972cdae1be028ab5ca6 diff --git a/dev-python/hypothesis/hypothesis-6.82.2.ebuild b/dev-python/hypothesis/hypothesis-6.82.2.ebuild new file mode 100644 index 000000000000..45ac15b82e26 --- /dev/null +++ b/dev-python/hypothesis/hypothesis-6.82.2.ebuild @@ -0,0 +1,91 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +CLI_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) +PYTHON_REQ_USE="threads(+),sqlite" + +inherit distutils-r1 multiprocessing optfeature + +TAG=hypothesis-python-${PV} +MY_P=hypothesis-${TAG} +DESCRIPTION="A library for property based testing" +HOMEPAGE=" + https://github.com/HypothesisWorks/hypothesis/ + https://pypi.org/project/hypothesis/ +" +SRC_URI=" + https://github.com/HypothesisWorks/hypothesis/archive/${TAG}.tar.gz + -> ${P}.gh.tar.gz +" +S="${WORKDIR}/${MY_P}/hypothesis-python" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +IUSE="cli" + +RDEPEND=" + >=dev-python/attrs-19.2.0[${PYTHON_USEDEP}] + >=dev-python/sortedcontainers-2.1.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/exceptiongroup-1.0.0_rc8[${PYTHON_USEDEP}] + ' 3.9 3.10) + cli? ( + $(python_gen_cond_dep ' + dev-python/black[${PYTHON_USEDEP}] + dev-python/click[${PYTHON_USEDEP}] + ' "${CLI_COMPAT[@]}") + ) +" +BDEPEND=" + test? ( + dev-python/mock[${PYTHON_USEDEP}] + dev-python/pexpect[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + !!<dev-python/requests-toolbelt-0.10.1 + ) +" + +distutils_enable_tests pytest + +python_test() { + # subtests are broken by warnings from random plugins + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x PYTEST_PLUGINS=xdist.plugin,pytest_forked,_hypothesis_pytestplugin + local -x HYPOTHESIS_NO_PLUGINS=1 + + # NB: paths need to be relative to pytest.ini, + # i.e. start with hypothesis-python/ + local EPYTEST_DESELECT=() + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # failing due to warnings from numpy/cython + hypothesis-python/tests/pytest/test_fixtures.py::test_given_plus_overridden_fixture + ) + ;; + esac + + epytest -o filterwarnings= -n "$(makeopts_jobs)" \ + tests/cover tests/pytest tests/quality +} + +python_install() { + distutils-r1_python_install + if ! use cli || ! has "${EPYTHON}" "${CLI_COMPAT[@]/_/.}"; then + rm -r "${ED}/usr/bin" "${D}$(python_get_scriptdir)" || die + fi +} + +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/libnacl/Manifest b/dev-python/libnacl/Manifest index d2d1fa7285f1..2f4089d6027d 100644 --- a/dev-python/libnacl/Manifest +++ b/dev-python/libnacl/Manifest @@ -1,3 +1,4 @@ DIST libnacl-1.8.0.gh.tar.gz 43351 BLAKE2B 4ba0ebcb50755d80418ffe7238c65d9309954cb2a0eac61937c488144b56093f3fcd87f0bf22a290c7b415c70cb781fbf7a2c608863d43694230fe34b3ad418e SHA512 7a39d646083591782691c4d58fd4d743b385ee553bcc4c4741707a237fa3b1213629b5070390526175bdfe8436859aa7711779ff8b22a981227edb30b94e82d6 DIST libnacl-1.9.0.gh.tar.gz 43752 BLAKE2B 4a604958aeb9c4b26351b74fa3452b72b7e822c9ea28f4a070464568f1eed184615f0ad5624a2838bf055cf221a9a0f493419b16f2bf2be26c608b396d3f234c SHA512 1c1011f218864f4eab6a985a957f7ec5b8a227ed107ab336a0bc076be10bae6d598f3e81f3a20177e81f25f93c36b23118f515b98f87e11b1f727cae3db1e267 DIST libnacl-2.0.0.gh.tar.gz 44710 BLAKE2B 50fa7d446370bb6043d942b28364b5bf2a23efcd6f3c82a59ee0ef0f7666a9ebe8e3dcf487d43e6ecb548ededb5e6228b3da401dc30924fef90047da40888168 SHA512 f8159ae479d920058662ffde2ac3bad2c8b413d55ca0bd442b81c7071b4cfca90eae277f85e7bf0bb63cd71ee1e0ad4cbbb03468ed55d1bcbe06d2e9a0976b72 +DIST libnacl-2.1.0.tar.gz 42189 BLAKE2B 9b7330ad89ed7ca01f1893deda93fd88011f92b03946a06b5706adf25387db0f664e89fb7a0442d300b47188ec061d220167c694725cd7ec74d14687794b63b2 SHA512 9a3bc2d6d21e982cdd7015daf76beb494c8b969f17a17288a47db5ff545e0a0085e37bb723e92a1919338134be2817b47cd2354f55604ec93e638e243ffa5e1a diff --git a/dev-python/libnacl/libnacl-2.1.0.ebuild b/dev-python/libnacl/libnacl-2.1.0.ebuild new file mode 100644 index 000000000000..e72b772375bd --- /dev/null +++ b/dev-python/libnacl/libnacl-2.1.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 1999-2023 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,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python ctypes wrapper for libsodium" +HOMEPAGE=" + https://libnacl.readthedocs.io/ + https://github.com/saltstack/libnacl/ + https://pypi.org/project/libnacl/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +RDEPEND=" + dev-libs/libsodium +" +BDEPEND=" + ${RDEPEND} +" + +distutils_enable_tests unittest + +python_test() { + eunittest -p 'test_*.py' tests/ || + die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/mkdocstrings-python/Manifest b/dev-python/mkdocstrings-python/Manifest index e9fa980a5f55..079a5b4942cd 100644 --- a/dev-python/mkdocstrings-python/Manifest +++ b/dev-python/mkdocstrings-python/Manifest @@ -1 +1,2 @@ DIST mkdocstrings-python-1.2.1.gh.tar.gz 132468 BLAKE2B 287cae20510818c085bf505fea0f74e39df86538e19bfcb90aa7f6d46fb237158979dc65c7f955d73461fadb4ed35263ef47b9771f224b5793026a9f0b3c86e1 SHA512 147849a88c3bb5347c1cb4293c9ee9c54cb33933bc274dc5bc933f72deb64016c7f7b8ba817311e282c68606d0980571d5713dec7a47e8d6c51168d524af7d97 +DIST mkdocstrings-python-1.3.0.gh.tar.gz 132776 BLAKE2B 894068067f301f40ed9535cd929fdbd40aa396c9c09c0cee7887f50669465cd0422c0b9b240553193df7e7d4c90f0bf2b591000e6568ee3c47256fc5d1f79179 SHA512 caf806d6285281ef84ed78bd6295ec6732d454a602f55f825436d0a17e9ab62e33ac21510d0ccee5d33fb3c117ec416859ad90ce75d608649a277342d1dc5a1c diff --git a/dev-python/mkdocstrings-python/mkdocstrings-python-1.3.0.ebuild b/dev-python/mkdocstrings-python/mkdocstrings-python-1.3.0.ebuild new file mode 100644 index 000000000000..81c65331ae81 --- /dev/null +++ b/dev-python/mkdocstrings-python/mkdocstrings-python-1.3.0.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) +DISTUTILS_USE_PEP517=pdm-backend + +inherit distutils-r1 + +DESCRIPTION="Python handler for dev-python/mkdocstrings" +HOMEPAGE=" + https://mkdocstrings.github.io/python/ + https://github.com/mkdocstrings/python/ + https://pypi.org/project/mkdocstrings-python/ +" +# Tests need files absent from the PyPI tarballs +SRC_URI=" + https://github.com/mkdocstrings/python/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" +S="${WORKDIR}/python-${PV}" + +LICENSE="ISC" +SLOT="0" +KEYWORDS="~amd64 ~riscv" + +RDEPEND=" + <dev-python/griffe-0.33[${PYTHON_USEDEP}] + >=dev-python/griffe-0.30.0[${PYTHON_USEDEP}] + dev-python/mkdocstrings[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/mkdocs-material[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +export PDM_BUILD_SCM_VERSION=${PV} diff --git a/dev-python/nspektr/Manifest b/dev-python/nspektr/Manifest index c369f932baaa..39e612642faf 100644 --- a/dev-python/nspektr/Manifest +++ b/dev-python/nspektr/Manifest @@ -1 +1,2 @@ DIST nspektr-0.4.0.tar.gz 7734 BLAKE2B 66a52f5080c78accc75e2193dab6d07a6257330f9938ac463c160d7e1f9740294416657193e5831f564354eb0dc3112a9ab41676e1c928ac40769d2a4d218089 SHA512 c8e8dcadd3ccd49bc9b1a38d2ff9f1d8d6f85665d3830cc9d7975ec1c63b1e2f1a7a64e12457701ca658e2e0e30cac7652be6d706a4e47ba6a61ae76d9be8875 +DIST nspektr-0.5.0.tar.gz 8573 BLAKE2B a96aaaee5cd309272d5b0c78eaf9793baf1406e427a142595b67693d513d5badac064149587c02cdf02cdd7720fafeb2787fc98a9db79cc573e77d6158afd4d4 SHA512 b7293a6ccb34a5c4b87a9b28de170322296adf2d883e7671df05ac06453023190ed588eb8e1677b7c5383b6fc5962c079d363ebb214ebb9f8516cfd2039e6167 diff --git a/dev-python/nspektr/nspektr-0.5.0.ebuild b/dev-python/nspektr/nspektr-0.5.0.ebuild new file mode 100644 index 000000000000..ca4b119a9433 --- /dev/null +++ b/dev-python/nspektr/nspektr-0.5.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 2022-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +# please keep this ebuild at EAPI 7 -- sys-apps/portage dep +EAPI=7 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Distribution package dependency inspector" +HOMEPAGE=" + https://github.com/jaraco/nspektr/ + https://pypi.org/project/nspektr/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~ppc-macos ~x64-macos ~x64-solaris" + +RDEPEND=" + >=dev-python/jaraco-context-4.1.1-r2[${PYTHON_USEDEP}] + >=dev-python/jaraco-functools-3.5.0-r2[${PYTHON_USEDEP}] + >=dev-python/more-itertools-8.12.0-r1[${PYTHON_USEDEP}] + >=dev-python/packaging-21.3-r2[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_configure() { + grep -q 'build-backend = "setuptools' pyproject.toml || + die "Upstream changed build-backend, recheck" + # write a custom pyproject.toml to ease setuptools bootstrap + cat > pyproject.toml <<-EOF || die + [build-system] + requires = ["flit_core >=3.2,<4"] + build-backend = "flit_core.buildapi" + + [project] + name = "nspektr" + version = "${PV}" + description = "package inspector" + + # tests inspect itself + [project.optional-dependencies] + docs = [ + "fake-nonexisting", + ] + testing = [ + "pytest", + ] + EOF +} diff --git a/dev-python/numexpr/Manifest b/dev-python/numexpr/Manifest index da23b37c671f..9c158cceb466 100644 --- a/dev-python/numexpr/Manifest +++ b/dev-python/numexpr/Manifest @@ -1 +1,2 @@ DIST numexpr-2.8.4.gh.tar.gz 113594 BLAKE2B 65756e3a0755cd69b8586501d5026dc355f5263f852fedc4f59ecd1854576929bff702cc603c53c7230a5a0ad034a56c50db0bf2fbc2174b3f5272d3a03ffdc0 SHA512 e0a4eacb1a8721b9c2b4331f21e460fc3a1740a6a156eb43b31c495b17e191508f6d72375b8bd286a9be66ceaa1353f64f894deda0b4b29c3ac48c5b7c67cfa1 +DIST numexpr-2.8.5.gh.tar.gz 117015 BLAKE2B edf0084806cde40c7aa002a34b462f62f5d3cc37bc698f0125c4997c897333fccfff7c0df8a2ab96c0d7cf97ba7cc5955266ece50611e56c513798a3fc1306d0 SHA512 e02e8249ec62c85da1730d0932bcaf15fa10ff5e0a2ff847014c8d00b94612d441a9b1af46331b15480e63cfeb0fc84e31804db075789f23575003b4d8d1da48 diff --git a/dev-python/numexpr/numexpr-2.8.5.ebuild b/dev-python/numexpr/numexpr-2.8.5.ebuild new file mode 100644 index 000000000000..913217480953 --- /dev/null +++ b/dev-python/numexpr/numexpr-2.8.5.ebuild @@ -0,0 +1,39 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 + +DESCRIPTION="Fast numerical array expression evaluator for Python and NumPy" +HOMEPAGE=" + https://github.com/pydata/numexpr/ + https://pypi.org/project/numexpr/ +" +SRC_URI="https://github.com/pydata/numexpr/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos" + +DEPEND=" + >=dev-python/numpy-1.13.3[${PYTHON_USEDEP}] +" +RDEPEND=" + ${DEPEND} + dev-python/packaging[${PYTHON_USEDEP}] +" + +python_test() { + pushd "${BUILD_DIR}/install/usr/lib/${EPYTHON}/site-packages" >/dev/null || die + "${EPYTHON}" - <<-EOF || die "Tests failed with ${EPYTHON}" + import sys,numexpr + sys.exit(0 if numexpr.test().wasSuccessful() else 1) + EOF + pushd >/dev/null || die +} diff --git a/dev-python/overrides/Manifest b/dev-python/overrides/Manifest index 586474b1809d..bd3a1aaaa72f 100644 --- a/dev-python/overrides/Manifest +++ b/dev-python/overrides/Manifest @@ -1 +1,2 @@ DIST overrides-7.3.1.tar.gz 24766 BLAKE2B c7fc2e22b7ded0208befd483e76b0bdb444f2d2891f6b2fe4751a81c47164b2cd3a51b7d71ec03401629d4427393553aed1146d2ef60ffe966fd502bd84e824e SHA512 94a8a581dfdacc047937824ffb8afae81d92998ec796e44c4ae05778f2b9d381517e37c2c4591a1c118b091f96bd91554aaef65d0372b2fef04f6ee225e10922 +DIST overrides-7.4.0.tar.gz 24804 BLAKE2B 9a9657d15ad835695d116559f1e6f51e14d1a0a9b5a237b2d468d9c6fd8d86368af53871490c257d7e6843fe02113a874524b8e55f4b3c9bcc7c827714cd5f44 SHA512 6ffd3b38997fd207d8ef9876ba9c328ef244b39300d22ae8c8bf63862f160b485d82b99d36d24abd1676fdddd39e5324eb0f1cf8629a0e17ac96956d165b6afd diff --git a/dev-python/overrides/overrides-7.4.0.ebuild b/dev-python/overrides/overrides-7.4.0.ebuild new file mode 100644 index 000000000000..7f091684d918 --- /dev/null +++ b/dev-python/overrides/overrides-7.4.0.ebuild @@ -0,0 +1,21 @@ +# Copyright 1999-2023 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,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="A decorator to automatically detect mismatch when overriding a method." +HOMEPAGE=" + https://pypi.org/project/overrides/ + https://github.com/mkorpela/overrides/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc64 ~riscv ~s390" + +distutils_enable_tests pytest diff --git a/dev-python/pyfuse3/Manifest b/dev-python/pyfuse3/Manifest index 542b6cee71f6..3e1db09c024e 100644 --- a/dev-python/pyfuse3/Manifest +++ b/dev-python/pyfuse3/Manifest @@ -1 +1,2 @@ DIST pyfuse3-3.2.3.tar.gz 512352 BLAKE2B 1b5826ea42a72fd5d688b4cd7617c2fd08a7f9b69381d52343e8891c90ba51f8c5c79a2b9c7c42944cd20493ea645a00a26e7c04cebec10322f71241b8b12df3 SHA512 2f35ea5e0f05af7184fe83458b976742f4f500d09098c68b71982e4b8c089485677bf1e704536e037d6f690fce3006a4fdb71697c68999ed412cc9d73aef8b13 +DIST pyfuse3-3.3.0.tar.gz 867765 BLAKE2B 29a871bbd4c82298231eac0c8d4b668a75a9ea748c3dd15f093a369770fbfe080620b6209c79ce934880757764c946c3216b558dcc63cd1d1a7ef03e124174c2 SHA512 b23116104fc78e9d6688e05f495a1cc48ff2c0af03a537c1f2743f84a596ba36b59e1ccba2e8272a0483c083479df91be2ccd49bd2e0cb160ff02a74ad623d18 diff --git a/dev-python/pyfuse3/pyfuse3-3.3.0.ebuild b/dev-python/pyfuse3/pyfuse3-3.3.0.ebuild new file mode 100644 index 000000000000..78f9953845ba --- /dev/null +++ b/dev-python/pyfuse3/pyfuse3-3.3.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_EXT=1 +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python 3 bindings for libfuse 3 with asynchronous API" +HOMEPAGE=" + https://github.com/libfuse/pyfuse3/ + https://pypi.org/project/pyfuse3/ +" + +LICENSE="LGPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~riscv ~x86" + +DEPEND=" + sys-fs/fuse:3 +" +RDEPEND=" + ${DEPEND} + dev-python/trio[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] + test? ( + dev-python/pytest-trio[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_configure() { + esetup.py build_cython +} diff --git a/dev-python/pygments/Manifest b/dev-python/pygments/Manifest index 9d82f247507e..00ec05f171be 100644 --- a/dev-python/pygments/Manifest +++ b/dev-python/pygments/Manifest @@ -1 +1,2 @@ DIST Pygments-2.15.1.tar.gz 4819591 BLAKE2B f42d3342b88c5b5745fbfbd1f76913f7d17745d396311a39627aca8e968445b19983e7c633583097c495ce6f43a6a7224262a7c35645751803b6c1172062d8c0 SHA512 408f0bbbc8226ee91b82ed084d178f114657150bcf9381dd34debb704399ccdb2e78cb5578ff297797771660d7263c51c305d03b2a27ae29269110be0bca50a9 +DIST Pygments-2.16.1.tar.gz 4872980 BLAKE2B 57ec4f52f2bca3d9df993f583434d61ad0adbc2719f2d0b4ac84160672a3a57ec144509c520f2724a15f0222548abfbe0e743fa31a8dac64d54111b2d7393ae4 SHA512 9b66c79c03e7ecd36cc00efd428a0a6b372e70dbccdcaae26eff4d56c07a17e2e00d2cf0291eb6624ffd1c896b797789b973e80ccbca4240d56daad95eacfd80 diff --git a/dev-python/pygments/pygments-2.16.1.ebuild b/dev-python/pygments/pygments-2.16.1.ebuild new file mode 100644 index 000000000000..2008aba8c8ee --- /dev/null +++ b/dev-python/pygments/pygments-2.16.1.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYPI_NO_NORMALIZE=1 +PYPI_PN=${PN^} +PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) + +inherit distutils-r1 bash-completion-r1 pypi + +DESCRIPTION="Pygments is a syntax highlighting package written in Python" +HOMEPAGE=" + https://pygments.org/ + https://github.com/pygments/pygments/ + https://pypi.org/project/Pygments/ +" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" + +BDEPEND=" + test? ( + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/wcag-contrast-ratio[${PYTHON_USEDEP}] + virtual/ttf-fonts + ) +" + +EPYTEST_DESELECT=( + # fuzzing tests, very slow + tests/test_basic_api.py::test_random_input + # incompatibility with python-ctags3, apparently + # https://github.com/pygments/pygments/issues/2486 + tests/test_html_formatter.py::test_ctags +) + +distutils_enable_tests pytest + +src_install() { + distutils-r1_src_install + newbashcomp external/pygments.bashcomp pygmentize +} diff --git a/dev-python/pypdf/Manifest b/dev-python/pypdf/Manifest index 3737a00dd765..f282ad554968 100644 --- a/dev-python/pypdf/Manifest +++ b/dev-python/pypdf/Manifest @@ -1,5 +1,6 @@ DIST pypdf-3.12.2.gh.tar.gz 7560560 BLAKE2B f00047287619e49829d516f06020119f2ff19e0d4e67ccf4e45c05b1bff66ca3e69a03da99113accb818b8873ae5e637d23991925633ac01a20dcd35a15d1609 SHA512 b888c81cc3cb331f7b5709c4fa29c9f2f0790fc67679112de9e48f31cb20047b7622bcb8e555d5113e6dea96ec5d1c2759ac84696278123eb5a7faeea727b192 DIST pypdf-3.13.0.gh.tar.gz 7563894 BLAKE2B f2f34dccda87e719b326b4c48331e9813a36dbecd14d26f9268b44891939fb3dac3a2bf2e298efd927e8fe97869f43d39f2890008858d42255c31f6496e2003a SHA512 6259b242aaba8e0b63b988749850aa2138b802eaf52d146793635ff723956f19b1989c3c76278ed4240acbc88f8dd4b7e64fcf777508e98dee81093d794b2945 DIST pypdf-3.14.0.gh.tar.gz 7572714 BLAKE2B 5a706eb9f9965de9ec3e3b03e243b629700b0c43b0549d49c33cc0a4d5ab570c75aa03695ccb8b08dac99032e9c4c170f2511c0dc644fed90d14da4a3fd18dbd SHA512 f7fc45a10249d3a86e60ed73f8e9a226a8bbb3fe181efdc8102128b7005a39f2479386801d18e8d6be56e8a12b5d3c8769a9c5504df27bec981ebe9cf22da205 +DIST pypdf-3.15.0.gh.tar.gz 7673228 BLAKE2B 9516d5e7865fa5c3bed90461d2e12ad1a400b755d8254330837e8b5f313f985bd199da9a19b2a189623b392c6ae76fd757e68c1454d09a7b5ec70bc28bff3485 SHA512 a9dc59141918fe47d1b2ec0fc282e31c05ef3df137cc67e85d965172929b3b1bbc38f8827a82a576f02c18b72cdca297364f58814f960b7783a36228a7e29125 DIST pypdf-sample-files-2cf1e75af7bcb9c097deae6fb112c715d4721744.gh.tar.gz 10226061 BLAKE2B a9b32d6cd3d22bbc0aee54ca3e914c4d2eb2a9a44a1a508e54e0a8fbcb5fad9ab05e72cf66553a1b5595131104ff22dea115d2804d2970200c4cf5f808532174 SHA512 f064f0468b07bf705a1d0f3a0fc6fe535c234a39408dca268f223e7c3548e66f599a4e67156e7848b70e9a3bd1bc2756395dd93b0c828ee08fe2bb8833f2b196 DIST pypdf-sample-files-5b5ee6b0e9bf4b683490351b1e15e01d6553da7b.gh.tar.gz 10226115 BLAKE2B 7488897284b840c7d4c26525425d326024936654cea42c47f260d1bc61a32a5c1da0a7eb8a9ad532857ea5c2db3446ce5850c509f44ccf6143b8cf4cb826e6c9 SHA512 70d4f0b6957160698afdc9b5bfb9d197f55f1651bc2ec2326621bb77bae5460fe0d4d8543ddbb7ed270c2bd36ad0ccae14deae6040d7f4a01db52374b820fd7e diff --git a/dev-python/pypdf/pypdf-3.15.0.ebuild b/dev-python/pypdf/pypdf-3.15.0.ebuild new file mode 100644 index 000000000000..1dcfbbc36027 --- /dev/null +++ b/dev-python/pypdf/pypdf-3.15.0.ebuild @@ -0,0 +1,56 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{7,8,9,10,11} ) + +inherit distutils-r1 + +SAMPLE_COMMIT=5b5ee6b0e9bf4b683490351b1e15e01d6553da7b +DESCRIPTION="Python library to work with PDF files" +HOMEPAGE=" + https://pypi.org/project/pypdf/ + https://github.com/py-pdf/pypdf/ +" +SRC_URI=" + https://github.com/py-pdf/pypdf/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" + +BDEPEND=" + test? ( + dev-python/cryptography[${PYTHON_USEDEP}] + >=dev-python/pillow-8.0.0[jpeg,jpeg2k,tiff,${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 + # TODO: requires fpdf + tests/test_page.py::test_compression +) + +src_unpack() { + default + if use test; then + mv "sample-files-${SAMPLE_COMMIT}"/* "${S}"/sample-files/ || die + fi +} + +python_test() { + epytest -o addopts= -m "not enable_socket" +} diff --git a/dev-python/trimesh/Manifest b/dev-python/trimesh/Manifest index 5a2d04280396..bb55faa55635 100644 --- a/dev-python/trimesh/Manifest +++ b/dev-python/trimesh/Manifest @@ -1,2 +1,3 @@ DIST trimesh-3.22.5.gh.tar.gz 12715459 BLAKE2B d838b75acef1615fab5006cd55cd28d649fd61fbecbe076250d3f2acd6d0c6f29481862189105456e9626b15b1f6e557f419cbe49044ccff784d9ea2a8ea4dff SHA512 1756f8a589cff214ef6ecf54f363c906b26a1d7205aa1645cb5f90b691d6c43d71f904939329b599c0b5595b663529b15c4d8a747da50157a22e3020808f3f01 DIST trimesh-3.23.0.gh.tar.gz 12720387 BLAKE2B 88e57f09c1bc924a59b6ce3744ef3e3df05d144707415fe595f40d411e364591cdd22ed38a46b2004d935ab18f3387753cf66479aaeb9cc1f4d870c1e23ce7e3 SHA512 d4ac6b5c7ea09c84810a36060c6cb9a5366ef177d309d1d0bf2cfbdd0969562394ee03832f9a535d63cb71b5c026fb6bf43b815014230c8e20c56bb69f0fc3ed +DIST trimesh-3.23.1.gh.tar.gz 12721718 BLAKE2B e6f388c0b3443b46bb6a4e93b049b4a75c5c7af7e24c441f1b0c5c4247ac34d3548722ea24979897c332b4defb69681e5bf714848dd6e3d89af18b2a0adc7e18 SHA512 2a788631f7bb142da5f761ed374c1966b92799a4e4ce52687bf86ee7da3d226466771a84876eaf8fb71b5fc967d69fbce286c4638e0f14a9c8d3e80094079283 diff --git a/dev-python/trimesh/trimesh-3.23.1.ebuild b/dev-python/trimesh/trimesh-3.23.1.ebuild new file mode 100644 index 000000000000..197d9304e410 --- /dev/null +++ b/dev-python/trimesh/trimesh-3.23.1.ebuild @@ -0,0 +1,65 @@ +# Copyright 1999-2023 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,11} ) + +inherit distutils-r1 multiprocessing optfeature + +DESCRIPTION="Python library for loading and using triangular meshes" +HOMEPAGE=" + https://trimsh.org/ + https://github.com/mikedh/trimesh/ + https://pypi.org/project/trimesh/ +" +SRC_URI=" + https://github.com/mikedh/${PN}/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/colorlog[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/lxml[${PYTHON_USEDEP}] + dev-python/networkx[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/pycollada[${PYTHON_USEDEP}] + dev-python/pyglet[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + >=dev-python/shapely-1.8.2[${PYTHON_USEDEP}] + dev-python/svg-path[${PYTHON_USEDEP}] + dev-python/sympy[${PYTHON_USEDEP}] + dev-python/xxhash[${PYTHON_USEDEP}] + sci-libs/rtree[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/mapbox_earcut[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + epytest -n "$(makeopts_jobs)" --dist=worksteal +} + +pkg_postinst() { + optfeature_header "${PN} functionality can be extended by installing the following packages:" + optfeature "making GUI applications with 3D stuff" dev-python/glooey + optfeature "2D triangulations of polygons" dev-python/mapbox_earcut + optfeature "loading a number of additional mesh formats" dev-python/meshio + optfeature "figuring out how much memory we have" dev-python/psutil + optfeature "marching cubes and other nice stuff" sci-libs/scikit-image +} |
