From 4c51ef39a9b443061a7071e002d7daa2a4d16141 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Sun, 29 Jan 2023 14:55:22 +0000 Subject: gentoo auto-resync : 29:01:2023 - 14:55:22 --- dev-python/Manifest.gz | Bin 257411 -> 257589 bytes dev-python/aesara/Manifest | 3 + dev-python/aesara/aesara-2.8.10.ebuild | 122 ++++++++++++ .../aesara/files/aesara-2.8.10-fix-tuple.patch | 19 ++ dev-python/chart-studio/Manifest | 2 + .../chart-studio/chart-studio-1.1.0-r2.ebuild | 55 ++++++ dev-python/funcy/Manifest | 2 +- dev-python/funcy/funcy-1.18.ebuild | 2 +- dev-python/gentoo-common/Manifest | 2 + dev-python/gentoo-common/gentoo-common-0.ebuild | 30 +++ dev-python/gentoo-common/metadata.xml | 8 + dev-python/nbval/Manifest | 2 + dev-python/nbval/nbval-0.10.0.ebuild | 46 +++++ dev-python/plotly-geo/Manifest | 2 + dev-python/plotly-geo/plotly-geo-1.0.0-r2.ebuild | 31 ++++ dev-python/plotly/Manifest | 2 + dev-python/plotly/plotly-5.13.0.ebuild | 98 ++++++++++ dev-python/pypy3/Manifest | 2 +- dev-python/pypy3/pypy3-7.3.11-r1.ebuild | 205 +++++++++++++++++++++ dev-python/pypy3/pypy3-7.3.11.ebuild | 203 -------------------- dev-python/whatever/Manifest | 2 + dev-python/whatever/whatever-0.7.ebuild | 25 +++ 22 files changed, 657 insertions(+), 206 deletions(-) create mode 100644 dev-python/aesara/aesara-2.8.10.ebuild create mode 100644 dev-python/aesara/files/aesara-2.8.10-fix-tuple.patch create mode 100644 dev-python/chart-studio/chart-studio-1.1.0-r2.ebuild create mode 100644 dev-python/gentoo-common/Manifest create mode 100644 dev-python/gentoo-common/gentoo-common-0.ebuild create mode 100644 dev-python/gentoo-common/metadata.xml create mode 100644 dev-python/nbval/nbval-0.10.0.ebuild create mode 100644 dev-python/plotly-geo/plotly-geo-1.0.0-r2.ebuild create mode 100644 dev-python/plotly/plotly-5.13.0.ebuild create mode 100644 dev-python/pypy3/pypy3-7.3.11-r1.ebuild delete mode 100644 dev-python/pypy3/pypy3-7.3.11.ebuild create mode 100644 dev-python/whatever/whatever-0.7.ebuild (limited to 'dev-python') diff --git a/dev-python/Manifest.gz b/dev-python/Manifest.gz index 653f0851a876..78aac470980b 100644 Binary files a/dev-python/Manifest.gz and b/dev-python/Manifest.gz differ diff --git a/dev-python/aesara/Manifest b/dev-python/aesara/Manifest index c294a4542c37..393371a9216e 100644 --- a/dev-python/aesara/Manifest +++ b/dev-python/aesara/Manifest @@ -1,4 +1,7 @@ AUX aesara-2.6.5-compiledir-tid.patch 1707 BLAKE2B 77f8fa3618f930dddad8e864dee3e73fc0b965018d508be5877d5bcae4430024c4e4f90e905ac912da22a4d4934d6fc71acf4ebd49b7e8efb12c90dfaa072ed2 SHA512 9b6bbd8bc56f61c89dfd85cb18251ff8d73d717d91178efa9309e6b897dbda28937dea84f1d7d1a917c285219d51c0adcee1233112f2dcdb9f8c7b714a6c6c12 +AUX aesara-2.8.10-fix-tuple.patch 649 BLAKE2B bfc2b2971fdaa452c5d14d75f68af5931b979dcb2951baf8bb1cf759058b4c0f341233b33d907722302ea8374cbd965e4d09e87f069ee2b1a558bf4e9a7309c9 SHA512 2c5846c723f214a8f623593f518194edb113f0d7c64ab1d69d6e4c5278125910f1c775cffdb46871d23ddf5332bbd84f252ed58e2560663c0c36520f1fb72372 +DIST aesara-rel-2.8.10.gh.tar.gz 4342183 BLAKE2B 3e6dcb362d613ce9fb621408d3d7c6f6d3f30e52fe39f484fbe6c9d834d59b428e736b13275d99b204774c719cc532fc42e877685b0639b344fa5b2965dfe602 SHA512 360419a79eb0571d431bb146e5fcf2d63a9c8b40e3ee0a31d7d38aeeceaa47da10ab3f640a4b4011f0a9b28438f20a0feb3ea64d07289d0e9513cb32d066820b DIST aesara-rel-2.8.9.gh.tar.gz 4351952 BLAKE2B ffdc3d33caba5cf5edd3dd15e62cd295dd23f944ac6d76461e9e43717a4126669391dadfee51c6117911dc4236e8787d3e9ab712a0fcbd1dcb137e64f9f994c4 SHA512 3fb4374899ab71366961a07c750f594505467cdab01b6851b36d1dd924b816117ebe488a6cae548650df393c8447de69e21ce2cf6eafe34e951b98f27c3a4f6c +EBUILD aesara-2.8.10.ebuild 3836 BLAKE2B bb28d09ea801fad5acf8a972ba77a3850d8e3bb7284a5e9275947e44b582789b102372b991b0b30dacc04439e331913309166d9f783f8163ee8be89ae2d5a130 SHA512 3a8fd94f617ce95844bdc2cb6b73a904240aa613ded10923491f64a5a8a2bf6df9968863e77b0bbccf72cc7759db572166ade9a0adce27280d150023d9684edd EBUILD aesara-2.8.9.ebuild 2912 BLAKE2B 77e49a34d7c327192ed3c03d5684246cf6c351eebd73bed7c97efdd88934561e2fbf3c0bf5de3a58f64eff64a93592df475fa60e5f56f5ac9c786d0bdfd7c3f1 SHA512 b0ed08342541395a07dcabd8a85aef3e8e2dbeadc1330ed18d0978d9033bfd166539f2080acd78a65dae1caba75a8c6773b1b91f95f01ecc3e3c887f57f91758 MISC metadata.xml 506 BLAKE2B be65b6be62282fa47152985d79892fd04105a47e00a427ee8341d27aeff21b144bee7e7d0f16b2f4b617c941bdf5ebd9de37a42c39d117cdfd579c3035d35a74 SHA512 a207ec3db85a8e6f03feabd14da588f0b9ca9a88ab2495ade0f40b516b3bbd20fe78b14698d28da7ceed238737a9f4d63f587156ef609e846b485132d598c6bb diff --git a/dev-python/aesara/aesara-2.8.10.ebuild b/dev-python/aesara/aesara-2.8.10.ebuild new file mode 100644 index 000000000000..4b8039b62529 --- /dev/null +++ b/dev-python/aesara/aesara-2.8.10.ebuild @@ -0,0 +1,122 @@ +# Copyright 2021-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +# A whole bunch of test failures with 3.11 +PYTHON_COMPAT=( python3_{9..10} ) + +inherit distutils-r1 multiprocessing optfeature + +MY_P=aesara-rel-${PV} +DESCRIPTION="Library for operating on mathematical expressions with multi-dimensional arrays" +HOMEPAGE=" + https://github.com/aesara-devs/aesara/ + https://pypi.org/project/aesara/ +" +SRC_URI=" + https://github.com/aesara-devs/aesara/archive/rel-${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~riscv ~x86" + +RDEPEND=" + dev-python/cons[${PYTHON_USEDEP}] + dev-python/etuples[${PYTHON_USEDEP}] + dev-python/logical-unification[${PYTHON_USEDEP}] + dev-python/minikanren[${PYTHON_USEDEP}] + dev-python/filelock[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-vcs/git + dev-python/setuptools_scm[${PYTHON_USEDEP}] + test? ( + dev-python/pytest-xdist[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}"/aesara-2.6.5-compiledir-tid.patch + "${FILESDIR}"/aesara-2.8.10-fix-tuple.patch +) + +distutils_enable_sphinx doc 'dev-python/sphinx_rtd_theme' +distutils_enable_tests pytest + +src_prepare() { + # do not claim "bin" package (sic!) + rm bin/__init__.py || die + # setuptools_scm wants to read PV from git + touch setup.cfg || die + git init -q || die + git config --global user.email "larry@gentoo.org" || die + git config --global user.name "Larry the Cow" || die + git add . || die + git commit -qm "init" || die + git tag -a "rel-${PV}" -m "rel-${PV}" || die + distutils-r1_src_prepare +} + +python_test() { + local EPYTEST_DESELECT=( + # speed tests are unreliable + tests/scan/test_basic.py::test_speed + tests/scan/test_basic.py::test_speed_rnn + tests/scan/test_basic.py::test_speed_batchrnn + tests/link/test_vm.py::test_speed + tests/link/test_vm.py::test_speed_lazy + tests/tensor/test_gc.py::test_merge_opt_runtime + + # rounding problem? + # https://github.com/aesara-devs/aesara/issues/477 + tests/tensor/test_math_scipy.py::TestGammaUBroadcast::test_good + tests/tensor/test_math_scipy.py::TestGammaUInplaceBroadcast::test_good + + # Deprecation warning causes unexpected additional output + tests/tensor/test_basic.py::TestLongTensor::test_fit_int64 + + # dunno + tests/tensor/test_elemwise.py::TestDimShuffle::test_memory_leak + tests/tensor/signal/test_pool.py::TestDownsampleFactorMax::test_DownsampleFactorMaxGradGrad_grad + + # TODO + tests/link/c/test_op.py::test_ExternalCOp_c_code_cache_version + tests/sparse/sandbox/test_sp.py::TestSP::test_multilayer_conv + tests/sparse/sandbox/test_sp.py::TestSP::test_maxpool + + # TODO: Package pytest-benchmark + tests/scan/test_basic.py::TestExamples::test_reordering + tests/scan/test_basic.py::TestExamples::test_scan_as_tensor_on_gradients + tests/scan/test_basic.py::TestExamples::test_multiple_outs_taps + tests/scan/test_rewriting.py::TestPushOutAddScan::test_pregreedy_optimizer + tests/scan/test_rewriting.py::TestSaveMem::test_savemem_opt + tests/scan/test_basic.py::test_cython_performance + ) + local EPYTEST_IGNORE=( + # we do not package jax or numba + tests/link/jax + tests/link/numba + ) + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x AESARA_FLAGS="cxx=${CXX}" + AESARA_FLAGS+=",config.gcc__cxxflags=\"${CXXFLAGS}\"" + AESARA_FLAGS+=',compiledir_format="compiledir_%(thread_id)s"' + + epytest -p xdist.plugin -n "$(makeopts_jobs)" + # clean up the compiledir, as it can grow pretty large + rm -r "${HOME}"/.aesara || die +} + +pkg_postinst() { + optfeature "GPU code generation/execution on NVIDIA gpus" dev-util/nvidia-cuda-toolkit + optfeature "GPU/CPU code generation on CUDA and OpenCL devices" dev-libs/libgpuarray dev-python/pycuda +} diff --git a/dev-python/aesara/files/aesara-2.8.10-fix-tuple.patch b/dev-python/aesara/files/aesara-2.8.10-fix-tuple.patch new file mode 100644 index 000000000000..7eb537d54286 --- /dev/null +++ b/dev-python/aesara/files/aesara-2.8.10-fix-tuple.patch @@ -0,0 +1,19 @@ +diff --git a/aesara/tensor/nnet/corr.py b/aesara/tensor/nnet/corr.py +index e89054d..77ed344 100644 +--- a/aesara/tensor/nnet/corr.py ++++ b/aesara/tensor/nnet/corr.py +@@ -692,12 +692,12 @@ class CorrMM(BaseCorrMM): + if kern.type.ndim != 4: + raise TypeError("kern must be 4D tensor") + +- out_shape = tuple( ++ out_shape = tuple([ + 1 if img.type.shape[0] == 1 else None, + 1 if kern.type.shape[0] == 1 else None, + None, + None, +- ) ++ ]) + dtype = img.type.dtype + return Apply(self, [img, kern], [TensorType(dtype, shape=out_shape)()]) + diff --git a/dev-python/chart-studio/Manifest b/dev-python/chart-studio/Manifest index 2f024e36e1a2..580479ab26a2 100644 --- a/dev-python/chart-studio/Manifest +++ b/dev-python/chart-studio/Manifest @@ -1,3 +1,5 @@ DIST chart-studio-1.1.0.tar.gz 51680 BLAKE2B 02aeb188dae3c1ff73faea891b0a9bef775ecac58e79ec4a43f2c0e0ca1ad71f5ba0cd93bd35779e7358b9495549915e23acb2817cb7ecd3becd4afccec71077 SHA512 1ee049b79df9e5f781cf279f03df718597ef4c0cc0dc02975a16b5a8f34f9330636453868f54e12e9ec8484a23c3481dc6a367995b359e1a4c2363860a962256 +DIST plotly.py-5.13.0.gh.tar.gz 30683340 BLAKE2B 0e2c5638c766e5da6e2067d7be270576afed984b45deec0955fa10698d37bd082f3ebc568a8290c17554c672ef9e31cee81b0fae18b9f3249591fe62510ce5fd SHA512 c874b46ac43520519951aad55f93bfcfe03910873fd273f283fe16ae2a4150cfa35104be422c21b65785c77f468f084847278f76bce3d9179cc2a339809c42e3 EBUILD chart-studio-1.1.0-r1.ebuild 517 BLAKE2B dbf476ca4b9fe3534105f60bfc3b7ebac1f626c42bfa2d10a1be76d3fe92b41ea113357b4257caf85e58728d5f2742198acacba15be11490bb815d5811da87ee SHA512 dbcb34789459491ad16fb0bb500ee25b969c32c4cfe431f963c7e711796e9b384a211756a1a8182a7d6e057d2b49ef316a8ed8e9a628b8510c3449aee788c65a +EBUILD chart-studio-1.1.0-r2.ebuild 1792 BLAKE2B ab5a7d569f7cc72abfde4feeca30eb1fbd8dd4113386bad4da7c5ec6f56045af246fde873a450daeb360cf168df5ec1b1abcfb604e8b89e43ac9f3ba57059b17 SHA512 2cfe240ca3c6abf1b577ce95999fd2d5ed63dec8481104511b031d0042f54a4465c5df6edc343549f04aae2b57238f565bfcca8e43a04a9e923a75a15ed7579f MISC metadata.xml 608 BLAKE2B b735f54ea7fa4dc06e9f522304a2f7b297380d6504ba8520e80d6abc31dc231154b244d3bc788dcfc8b413924c3792fdb1258739bbeb20fdcba7aeba16451c78 SHA512 909661d7e9dec9661674301c2685f1b38caf7e889c103ef89ffd84c17d4f3fad60971a904152ce01f5bc48dba7d38bbd9320a96b6340e0b71a2a3495e6020151 diff --git a/dev-python/chart-studio/chart-studio-1.1.0-r2.ebuild b/dev-python/chart-studio/chart-studio-1.1.0-r2.ebuild new file mode 100644 index 000000000000..1e8acc2da743 --- /dev/null +++ b/dev-python/chart-studio/chart-studio-1.1.0-r2.ebuild @@ -0,0 +1,55 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +PLOTLY_PV="5.13.0" + +DESCRIPTION="Browser-based graphing library for Python" +HOMEPAGE="https://plotly.com/python/" +SRC_URI="https://github.com/plotly/plotly.py/archive/refs/tags/v${PLOTLY_PV}.tar.gz -> plotly.py-${PLOTLY_PV}.gh.tar.gz" +S="${WORKDIR}/plotly.py-${PLOTLY_PV}/packages/python/${PN}" +# PyPI tarball does not include the tests, sources are in the same repo as plotly. + +PROPERTIES="test_network" +RESTRICT="test" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/plotly[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/retrying[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/decorator[${PYTHON_USEDEP}] + dev-python/ipykernel[${PYTHON_USEDEP}] + dev-python/ipython[${PYTHON_USEDEP}] + dev-python/ipywidgets[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pandas[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + ) +" + +EPYTEST_DESELECT=( + # URL is somehow wrong + "chart_studio/tests/test_core/test_tools/test_get_embed.py::test_get_valid_embed" + "chart_studio/tests/test_core/test_tools/test_get_embed.py::TestGetEmbed::test_get_embed_url_with_share_key" + "chart_studio/tests/test_optional/test_matplotlylib/test_plot_mpl.py::PlotMPLTest::test_update" + "chart_studio/tests/test_plot_ly/test_spectacle_presentation/test_spectacle_presentation.py::TestPresentation::test_expected_pres" +) + +# There are sphinx docs but we are missing a bunch of dependencies. +# distutils_enable_sphinx ../../../doc/apidoc +distutils_enable_tests pytest diff --git a/dev-python/funcy/Manifest b/dev-python/funcy/Manifest index 21a404678890..b5f55a4cfd39 100644 --- a/dev-python/funcy/Manifest +++ b/dev-python/funcy/Manifest @@ -1,5 +1,5 @@ DIST funcy-1.17.tar.gz 112383 BLAKE2B 150133f72ed165bdc9adc3a9f4954dfd5b846dea7b1ee2cae0d6621ebaec3e2ba986cd6596fd86482036aad6476913caec0868db9cf55c067fdbf62ac10953e2 SHA512 d48ce3b7a7b8ee7512df109d651f40ca4dadf681acca6ab0a4857a2ea408f20f6345b9b416ca8b1e924050a842648192b8fe79381c202361bc4d2e25bd55ad05 DIST funcy-1.18.tar.gz 277530 BLAKE2B 78e86e23b3908924de1de62dd567ff8ff52079a9a7529923c84f67a3c5f768d232164d758763db1ce941986c28012dbcb3c146412998b1d1d6064efcc0ff4bf9 SHA512 274fec59c1fddc58248b5f8c81686955706333bbd33a1d567f62694c70449ef2488fae6bf76418b8ff3c6655fad12ed344cc6c90a84c5b10412e32fbdda016fe EBUILD funcy-1.17.ebuild 484 BLAKE2B 570a5c1969cf16e65fb2fc7a840f777f5aa4b9fa95439e05c277f69848929b72a15b9ceb22f5fbd877371e03856d50b555e02c7550ca0fc692d9da8722842c24 SHA512 dc7963bf04635626b278b8011ab47c7e3529ce442d78b7a898721269c57b9abb3641ef19a8f965d9b5565769e3b14afbde67b7dd714a1ecfb0ac215237179234 -EBUILD funcy-1.18.ebuild 552 BLAKE2B 699b6b54df8fb023dec2badd2d3df6301d7befd7dcd2aac6a301e6255e403ed93ecd0695d7db722989a7ac45ef732612447ae025eb0432ee953b53ce313ed44c SHA512 1b46d3735fc095c175aa4d50b241ecd7add50e2b6c6c5e589ec4d92d99ea1934dd11d47aaf39adf4f76d5a6a61629a413754e8c1f9549630bc8dbd606730cabf +EBUILD funcy-1.18.ebuild 552 BLAKE2B aec842bf4f2fd3014e1b38ad27e352fc516c8f287c1c4c8ae6e0c84d1507479b90abbfec4cb402ef41e3c37e60f0a585e4e587da0c188801fd1219cd4c381296 SHA512 400cacb605fed458ca1a0f01a815bfe6cbee2abec11d78e443c678abe2a893a7b7483a64bf5aed040a86374e2e15d9d969fdbcad093dfc7484066b48110db1cb MISC metadata.xml 491 BLAKE2B 70c6646bc4496af1ef98d1178b2b4bf9d876ee0a3664e878af184d12b162c9c926d14bd8dd7987355c4bef86ce53fb65ea96abe2384198f2c054c3835e78f982 SHA512 31d13ddb7d20c36c98e5a4068e96881200122425608e8877c133483117b565b44d65800bcc61dc6ad7e407b6c9953a3f53afd52aebd1a5c25aa1ceacc067c744 diff --git a/dev-python/funcy/funcy-1.18.ebuild b/dev-python/funcy/funcy-1.18.ebuild index 9a149505ee00..0d8188000de2 100644 --- a/dev-python/funcy/funcy-1.18.ebuild +++ b/dev-python/funcy/funcy-1.18.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9..10} ) +PYTHON_COMPAT=( python3_{9..11} ) inherit distutils-r1 diff --git a/dev-python/gentoo-common/Manifest b/dev-python/gentoo-common/Manifest new file mode 100644 index 000000000000..ae07a965799f --- /dev/null +++ b/dev-python/gentoo-common/Manifest @@ -0,0 +1,2 @@ +EBUILD gentoo-common-0.ebuild 868 BLAKE2B a059e1e233767496705fde8698842dd5cb6f66cb34f49011f8d4f9487a48852c801cb796ebf577bb5366c2f6d5db18759c6fdf4a045031a5f4737c33fb7d2efa SHA512 cbb751135c5102073a4c28b2a5d2ad6ac0115b5cb7550d81ba8bba626db7fd8ac87ad6b9e27259748e02246fd351274e01275f903d4aacffab63b001cf802faa +MISC metadata.xml 243 BLAKE2B 3c6936b8f9745e6fb81fda204eada4f73210288cdb19a90b1cf913ed01d6ee9155d4a69bc5dcaf8c69a21123339626610d7b57729981a9d10800b85501baa120 SHA512 50af947c4f1de2f27e6bd29010dda35e92d2e0477bfafcd4d44ab218d2a47788324aabad58b603ef5c30e69b382084e7dc3cecc581cc0ffbbdd71ed566772a44 diff --git a/dev-python/gentoo-common/gentoo-common-0.ebuild b/dev-python/gentoo-common/gentoo-common-0.ebuild new file mode 100644 index 000000000000..58e23e58f72d --- /dev/null +++ b/dev-python/gentoo-common/gentoo-common-0.ebuild @@ -0,0 +1,30 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Common files shared by Python implementations in Gentoo" +HOMEPAGE="https://wiki.gentoo.org/wiki/Project:Python" +S=${WORKDIR} + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86" + +src_install() { + insinto /usr/lib/python + # https://peps.python.org/pep-0668/ + newins - EXTERNALLY-MANAGED <<-EOF + [externally-managed] + Error= + The system-wide Python installation in Gentoo should be maintained + using the system package manager (e.g. emerge). + + If the package in question is not packaged for Gentoo, please + consider installing it inside a virtual environment, e.g.: + + python -m venv /path/to/venv + . /path/to/venv/bin/activate + pip install mypackage + EOF +} diff --git a/dev-python/gentoo-common/metadata.xml b/dev-python/gentoo-common/metadata.xml new file mode 100644 index 000000000000..7d421671d884 --- /dev/null +++ b/dev-python/gentoo-common/metadata.xml @@ -0,0 +1,8 @@ + + + + + python@gentoo.org + + + diff --git a/dev-python/nbval/Manifest b/dev-python/nbval/Manifest index 294567a1e442..0f1cb10a970e 100644 --- a/dev-python/nbval/Manifest +++ b/dev-python/nbval/Manifest @@ -1,3 +1,5 @@ +DIST nbval-0.10.0.tar.gz 62727 BLAKE2B 5b8d2815ec38481da1c0b3b5b62f809a231c4d136499b73ef13dba6a5214c87a5d4f77db1d81488e1bf13bd3ff365414e75760763a56a3cc28e752dd316ac009 SHA512 3e0e495db40aa4969e03ed1359f0c509b7470a54b3d8b6a85731601af5da0407bd44b3f069178f1a6b3aca7bf243747aaeaca4cb2332912e917e360f705eae61 DIST nbval-0.9.6.tar.gz 60932 BLAKE2B 77f283279e16e03ec87f250b2012aabd8f580e24b222efcb0b21d9b0dadc381cea3c4a3f96a85df0104da86911de66e6c21bfd3985801fa9c3d8764b2fb26183 SHA512 d4261fc30e197e7350c07504649f0230751b5ed746fe4626b92c5920032dc15abe47ad421c93f4762e93a8b6afcbca440ca006bfd1cdbcba37d131c4e6decaa7 +EBUILD nbval-0.10.0.ebuild 982 BLAKE2B c8889a82cbd17942d5f25f56e637b7a0262d9ef8a7fe3fd40352adc4f433fa51e80baea934a1c55a93ee178c6a1265564934da39c2e361ae26d637803e4b5be8 SHA512 5ee5e1b4805af66c1b46234f629929f3328a4d5e50ea18063b9a995c846b65bdf642146ed88e8ca00b6f656648372efb88c7c15f1a7e99fed7121e7fa931d1cd EBUILD nbval-0.9.6.ebuild 978 BLAKE2B ef92b18bc87a4fb1a13c41ea028c45ca7955913d8c1a8dd74f5034864888ce560a68de0781198d6acab77afbf3eee6cd9bd2b2e04449ae98f2bc4924ade996f5 SHA512 95f5021e5cebb90cb6ad5f909e214f691955ff818976ca49cc0e628b12d30b48208d530054afbbb7f62af025549918fbf7b3b0dd0ed2b3e474ace0ba15f4b7fb MISC metadata.xml 984 BLAKE2B 1f5a69806d70ed9aa5c0cf2a7f3466afc76e8b5078923142d10aa8ac5a68ab41dc54cd2345cef061236b7b68fc13fc76ff7a072b9fec8697eae259272a32aefc SHA512 13284c08e700976e1da78dbfe0038c2cca1d1e3f286726c4096ad53ded3b6ebbaabd51e105f70781be57293a46d8e2de3116e406cee4ac35d2dc80f1a165a7f8 diff --git a/dev-python/nbval/nbval-0.10.0.ebuild b/dev-python/nbval/nbval-0.10.0.ebuild new file mode 100644 index 000000000000..df76860af4f9 --- /dev/null +++ b/dev-python/nbval/nbval-0.10.0.ebuild @@ -0,0 +1,46 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9..10} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="A pytest plugin to validate Jupyter notebooks" +HOMEPAGE="https://github.com/computationalmodelling/nbval" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +RDEPEND=" + dev-python/coverage[${PYTHON_USEDEP}] + dev-python/ipykernel[${PYTHON_USEDEP}] + dev-python/jupyter_client[${PYTHON_USEDEP}] + dev-python/nbformat[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/nbdime[${PYTHON_USEDEP}] + dev-python/sympy[${PYTHON_USEDEP}] + ) + doc? ( + virtual/pandoc + ) +" + +EPYTEST_IGNORE=( + # Mocker not packaged + tests/test_nbdime_reporter.py + + tests/test_coverage.py +) + +distutils_enable_tests pytest +distutils_enable_sphinx docs/source \ + dev-python/sphinx_rtd_theme \ + dev-python/numpy \ + dev-python/nbsphinx \ + dev-python/matplotlib diff --git a/dev-python/plotly-geo/Manifest b/dev-python/plotly-geo/Manifest index e044bf486de5..63ab0b09a77b 100644 --- a/dev-python/plotly-geo/Manifest +++ b/dev-python/plotly-geo/Manifest @@ -1,3 +1,5 @@ DIST plotly-geo-1.0.0.tar.gz 23718591 BLAKE2B f78b36cd7ac6ec10e830f6be5758ed31ad2382882454d96ef652a73a11aa9b3be46ea24fd3f49a6189d9fd9eeaa89ca6777c691be9fc65f4d2a04a4d2bd58823 SHA512 977621c0fc84a6c72b2a91bcba27cc25b277f32cc87a7098675b3d7cb8c468a8291ef66397f3ceb45fbaa3484eba53d7649f809cf9d02af6309562af0b4fdf4a +DIST plotly.py-5.13.0.gh.tar.gz 30683340 BLAKE2B 0e2c5638c766e5da6e2067d7be270576afed984b45deec0955fa10698d37bd082f3ebc568a8290c17554c672ef9e31cee81b0fae18b9f3249591fe62510ce5fd SHA512 c874b46ac43520519951aad55f93bfcfe03910873fd273f283fe16ae2a4150cfa35104be422c21b65785c77f468f084847278f76bce3d9179cc2a339809c42e3 EBUILD plotly-geo-1.0.0-r1.ebuild 405 BLAKE2B 8307bfd443258893871f60d37600a1ce35567959b054f140b1c50b8d099c6cb50ef25874f36d24c96202a0268a6c91f49cfc746492d9fa3620da943e6d44dac0 SHA512 d1a7f399e0b6f0e8453adf970ea95139e688f8feeb4d57a3591038b69c51e5c85157e458e3aeb3382e45507d9f301e1d4bb27fbe37ecd8ad2951b33d1c75d990 +EBUILD plotly-geo-1.0.0-r2.ebuild 898 BLAKE2B 69f42ba5acb69d09c0d288ea6efb1afff68b1524610f8077d86367d26166b70e65cc9b80b3ae9ff9801c15dea1a7f99c92b160f08f17b99b938c0e4556f563a1 SHA512 fe197f6864321b4ce9a59b4810d17a77927636313b72eec7d46026c4775212efc1e5d47b44a34435b3e58969b86a81a468e1aaef749f729cbbf6084a9b3add9e MISC metadata.xml 606 BLAKE2B f750ac826d136a2ecd74b197686de4736a9caa8df6fc68dc526e3e0180e41874054e2ac6334910fc46588638ce5bc9c8c81af89265d8c6f19e1c52f332c5dd04 SHA512 3141ed25994bda29d72cbd0e6c2dee2b07d1d651379c75051b08b82de7f3463eab35ebc201dec642c75cb213bf6021985df0eaaa1d1357083ed41330e1d953bc diff --git a/dev-python/plotly-geo/plotly-geo-1.0.0-r2.ebuild b/dev-python/plotly-geo/plotly-geo-1.0.0-r2.ebuild new file mode 100644 index 000000000000..c3220f5d9a8f --- /dev/null +++ b/dev-python/plotly-geo/plotly-geo-1.0.0-r2.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +PLOTLY_PV="5.13.0" + +DESCRIPTION="Browser-based graphing library for Python" +HOMEPAGE="https://plotly.com/python/" +SRC_URI="https://github.com/plotly/plotly.py/archive/refs/tags/v${PLOTLY_PV}.tar.gz -> plotly.py-${PLOTLY_PV}.gh.tar.gz" +S="${WORKDIR}/plotly.py-${PLOTLY_PV}/packages/python/${PN}" + +# The warning about tests not being enabled is a false positive. +# Add distutils_enable_tests and restrict the tests to suppress the warning. +RESTRICT="test" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-python/plotly[${PYTHON_USEDEP}] +" + +# There are sphinx docs but we are missing a bunch of dependencies. +# distutils_enable_sphinx ../../../doc/apidoc +distutils_enable_tests pytest diff --git a/dev-python/plotly/Manifest b/dev-python/plotly/Manifest index 6c78356fa3e9..d4e4edbddce5 100644 --- a/dev-python/plotly/Manifest +++ b/dev-python/plotly/Manifest @@ -1,4 +1,6 @@ AUX plotly-5.8.0-fix-versioneer-import.patch 541 BLAKE2B 51ff6cbab8d9124243445f758aa4b976b7c26e1d3ce633e943bff133b81c0a7587feeb9d5e98a63f319c6afed8dc06e06fafe765ffd51fec245215c849fb4955 SHA512 db4743e538dddfe66e4c9c766698844af4d09c68188afefe92b6419adfe7cc0b1e9c1266d702d590b0b8dfc14bffbc8f08262ead0bff4dae3b5c71fa1259a4b9 DIST plotly-5.10.0.tar.gz 7600627 BLAKE2B cb83d2b14553b0336db098977a29e0417ce8f65ef5088bfa7fbd4ab5ee7cc561e3f3e32504604a402be395d8c46b0948379e9350dff37b225eba3298f2549cfd SHA512 f30f78ad8683d8b8ccd6a1c383772eddf6719fd47b4be693a72e9ae2c6d567fbf683e87aecc24dcd4c1fd89697366e510cfd93e6599d859554b687e6f6cfb416 +DIST plotly.py-5.13.0.gh.tar.gz 30683340 BLAKE2B 0e2c5638c766e5da6e2067d7be270576afed984b45deec0955fa10698d37bd082f3ebc568a8290c17554c672ef9e31cee81b0fae18b9f3249591fe62510ce5fd SHA512 c874b46ac43520519951aad55f93bfcfe03910873fd273f283fe16ae2a4150cfa35104be422c21b65785c77f468f084847278f76bce3d9179cc2a339809c42e3 EBUILD plotly-5.10.0-r1.ebuild 1628 BLAKE2B 7a1384cc973db298c98fc32e80fa9a4bfd0034cbd42959a032f7ca24d35e90a16b27cd7197d81df83f849795d001ec4fba69402a7be8e8de660bc930d4cbf81d SHA512 cdef52846578274c98dedc910674697e3d818c447cc10d1cbd61ca2f3eaee5e25e6fe88914d00f20c49a4a0bb5504d03a7576841f95dadece176fc664e90fd57 +EBUILD plotly-5.13.0.ebuild 2973 BLAKE2B e1382c0b397f49dcaa81228b04cfc6c462767ec94c17823dfe4d08b4b667e65f8abaf9f9cf7c97c93f06f2eb6c9056267f5eb65a651b6f189b83d3494b6efa9d SHA512 674866c32ba359f75ffce562c828ca66278da6893f879c01323d2ebf1f464a01068c533b28537c0912c03e3d8365599c478d33fc98c54f4d153dfd99a53abe48 MISC metadata.xml 627 BLAKE2B 453adb04f4caba9790fe5223635245c8bca7ca5c6dc1930f09537045580b88b5fa1649e47158b13be6cc5cb09b4479a47690e37ef13208b47a95f82d14793a91 SHA512 a5183e9d217d1312e8d383ccb4ade66b92575492b6c8ed8987e3af18e9e456836b62b2d572ce62f9e01aae47b4a2bcbd12f79b4bb6acabfe69c2b63b20315bd3 diff --git a/dev-python/plotly/plotly-5.13.0.ebuild b/dev-python/plotly/plotly-5.13.0.ebuild new file mode 100644 index 000000000000..504511612d27 --- /dev/null +++ b/dev-python/plotly/plotly-5.13.0.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{10..11} ) +DISTUTILS_USE_PEP517=setuptools +inherit distutils-r1 + +DESCRIPTION="Browser-based graphing library for Python" +HOMEPAGE="https://plotly.com/python/" +SRC_URI="https://github.com/plotly/plotly.py/archive/refs/tags/v${PV}.tar.gz -> plotly.py-${PV}.gh.tar.gz" +S="${WORKDIR}/plotly.py-${PV}/packages/python/${PN}" +# The tests are not included in the PyPI tarball, to use the GitHub tarball +# we have to skip npm, which means that the resulting install will +# unfortunately lack the jupyterlab extension. + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/tenacity-6.2.0[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/ipykernel[${PYTHON_USEDEP}] + dev-python/ipython[${PYTHON_USEDEP}] + dev-python/ipywidgets[${PYTHON_USEDEP}] + dev-python/jupyter[${PYTHON_USEDEP}] + dev-python/jupyterlab[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/pandas[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/pytz[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + dev-python/shapely[${PYTHON_USEDEP}] + dev-python/statsmodels[${PYTHON_USEDEP}] + dev-python/xarray[${PYTHON_USEDEP}] + sci-libs/scikit-image[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}"/${PN}-5.8.0-fix-versioneer-import.patch +) + +EPYTEST_IGNORE=( + # Needs porting to newer numpy + _plotly_utils/tests/validators/test_integer_validator.py + + # kaleido not packaged + plotly/tests/test_optional/test_kaleido + + # plotly-orca not packaged + plotly/tests/test_orca +) + +EPYTEST_DESELECT=( + # Also needs porting to newer numpy + plotly/tests/test_io/test_to_from_plotly_json.py::test_object_numpy_encoding + + # kaleido not packaged + plotly/tests/test_orca/test_to_image.py::test_bytesio + + # Fails if not already installed + test_init/test_dependencies_not_imported.py::test_dependencies_not_imported + test_init/test_lazy_imports.py::test_lazy_imports + + # Minor matplotlib incompatibility + plotly/matplotlylib/mplexporter/tests/test_basic.py::test_path_collection + plotly/matplotlylib/mplexporter/tests/test_basic.py::test_legend_dots + plotly/matplotlylib/mplexporter/tests/test_utils.py::test_linestyle + + # In python 3.11 the produced error is slightly different + plotly/tests/test_core/test_errors/test_dict_path_errors.py::test_described_subscript_error_on_type_error +) + +# There are sphinx docs but we are missing a bunch of dependencies. +# distutils_enable_sphinx ../../../doc/apidoc +distutils_enable_tests pytest + +python_prepare_all() { + # Do not try to fetch stuff with npm + export SKIP_NPM=1 + distutils-r1_python_prepare_all +} + +python_install_all() { + distutils-r1_python_install_all + + mkdir -p "${ED}"/etc/ || die + mv "${ED}"/usr/etc/jupyter "${ED}"/etc/ || die + rmdir "${ED}"/usr/etc || die +} diff --git a/dev-python/pypy3/Manifest b/dev-python/pypy3/Manifest index fd1e6d197dcf..40df79c316ad 100644 --- a/dev-python/pypy3/Manifest +++ b/dev-python/pypy3/Manifest @@ -3,5 +3,5 @@ DIST pypy3.9-gentoo-patches-7.3.11.tar.xz 6444 BLAKE2B adcc1ae4c3ae2c5317a05d6de DIST pypy3.9-v7.3.10-src.tar.bz2 23416039 BLAKE2B 1b13e8bbe6c38c4b9183a632063aeed593986bc7906cfe527fa7534d29f9b1ae0f1e6d3795ff73be19f5737c3fd9d1b3cc2777f30d9237d853e4266bea60a5bb SHA512 1ed3fc9cdda7f3144141fc6a37b124e7141cb3f294ce8b5ca3c3aa30a3c58715e168879decaa796c890a9a287c82c2dbabb81db5f6b8d17f4215d7d3261fe9a8 DIST pypy3.9-v7.3.11-src.tar.bz2 23460769 BLAKE2B fa8a827c28813243926c8689addb008c0a43acdc3f81a18749a8f2c1926b6294f2c0c95a4c315e3b77ce84b4f337af7a0bce5daf8dcb60ead965532d4af183cb SHA512 33c978ffbeeb39453028d1d1646ccfdace062ce48a5d939245bea41643038dd3687e80e34f88fa0622bcb175d7dd78f75cbe36b24229c8052f09d2d17dcdfd8c EBUILD pypy3-7.3.10_p1.ebuild 5769 BLAKE2B 80f603635d1d8d9195810bc5d7d9810d233a3cb52a406c10493d9412ede33a93836e0038e4982a130d84e13b910d4a5110993aaa825326050287687adce3b2a0 SHA512 dffdd2e3c15e8493444cbb0714b9c3484d90f485aa0f3ae8b3b13733d58ef6162cfcdb0b6315b587e25bfa6fd7023d5fbd0311774ae1d80cd700d2197802ff54 -EBUILD pypy3-7.3.11.ebuild 5771 BLAKE2B 111c1e31c4d2ea4e9ee140c3b53f17a7ba8845308ec931a9657976c0a55b8ba9085b0a1e538e5ab4aa01d5f42fb7950201b210e0c7b79853c2052e371c35e4bb SHA512 2e8a602cf7bd47c6dda0585f79a81835c9e959ef5b5e628cbdc18c67c26171182c39bd1245f6ba768f02d9a25e04ea194b183e1bc979adf9f6e0ed17a30fe3cc +EBUILD pypy3-7.3.11-r1.ebuild 5862 BLAKE2B 0c2d2ab149bc6faf94f8949c42c6c0b3b30f5986828da58d348e2114585ea9bd899e01fa179e3c50973b8d8dc40135134e5458f34c91f79d233803012462c370 SHA512 02a9692f3b534b13bf8570d279ae3726fc8c6791a4491031cc2edd08b301b3d3b8234cfe671727e60b827329d1190bf4af2d0f2b313caa7cecb1359db7a49742 MISC metadata.xml 531 BLAKE2B 0f727c7ced9fb24ba0dc0b41d51c177b3711de33b838bf46cfdde5d8b751de9694873c13fe8153747f2cb533c078c54f004ee84b1c3c57b6f8d62128ffb9dba2 SHA512 331b66647a58047ded4bcf1529e3ca16b21cbb37afa82d8be0a4b6ad605e17bf3f1478fad1ea3b9c970bdf5162cb41e6adcb029a261fcbf894e807998b9219f6 diff --git a/dev-python/pypy3/pypy3-7.3.11-r1.ebuild b/dev-python/pypy3/pypy3-7.3.11-r1.ebuild new file mode 100644 index 000000000000..d0f7918e6b5f --- /dev/null +++ b/dev-python/pypy3/pypy3-7.3.11-r1.ebuild @@ -0,0 +1,205 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit pax-utils python-utils-r1 toolchain-funcs + +PYPY_PV=${PV%_p*} +MY_P=pypy3.9-v${PYPY_PV/_rc/rc} +PATCHSET="pypy3.9-gentoo-patches-${PV/_rc/rc}" + +DESCRIPTION="A fast, compliant alternative implementation of the Python (3.9) language" +HOMEPAGE=" + https://www.pypy.org/ + https://foss.heptapod.net/pypy/pypy/ +" +SRC_URI=" + https://buildbot.pypy.org/pypy/${MY_P}-src.tar.bz2 + https://dev.gentoo.org/~mgorny/dist/python/${PATCHSET}.tar.xz +" +S="${WORKDIR}/${MY_P}-src" + +LICENSE="MIT" +# pypy3 -c 'import sysconfig; print(sysconfig.get_config_var("SOABI"))' +# also check pypy/interpreter/pycode.py -> pypy_incremental_magic +SLOT="0/pypy39-pp73-336" +KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" +IUSE="+ensurepip gdbm +jit ncurses sqlite tk" +# many tests are failing upstream +# see https://buildbot.pypy.org/summary?branch=py3.9 +RESTRICT="test" + +RDEPEND=" + || ( + >=dev-python/pypy3-exe-${PYPY_PV}:3.9-${PYPY_PV}[bzip2(+),ncurses?] + >=dev-python/pypy3-exe-bin-${PYPY_PV}:3.9-${PYPY_PV} + ) + dev-lang/python-exec[python_targets_pypy3(-)] + dev-libs/openssl:0= + dev-python/gentoo-common + ensurepip? ( dev-python/ensurepip-wheels ) + gdbm? ( sys-libs/gdbm:0= ) + sqlite? ( dev-db/sqlite:3= ) + tk? ( + dev-lang/tk:0= + dev-tcltk/tix:0= + ) +" +DEPEND=" + ${RDEPEND} +" + +src_prepare() { + local PATCHES=( + "${WORKDIR}/${PATCHSET}" + ) + default + + eapply_user +} + +src_configure() { + tc-export CC +} + +src_compile() { + mkdir bin || die + # switch to the layout expected for cffi module builds + mkdir include/pypy3.9 || die + # copy over to make sys.prefix happy + cp -p "${BROOT}"/usr/bin/pypy3.9-c-${PYPY_PV} pypy3.9-c || die + cp -p "${BROOT}"/usr/include/pypy3.9/${PYPY_PV}/* include/pypy3.9/ || die + # (not installed by pypy-exe) + rm pypy/module/cpyext/include/_numpypy/numpy/README || die + mv pypy/module/cpyext/include/* include/pypy3.9/ || die + mv pypy/module/cpyext/parse/*.h include/pypy3.9/ || die + pax-mark m pypy3.9-c + + # verify the subslot + local soabi=$( + ./pypy3.9-c - <<-EOF + import importlib.util + import sysconfig + soabi = sysconfig.get_config_var("SOABI") + magic = importlib.util._RAW_MAGIC_NUMBER & 0xffff + print(f"{soabi}-{magic}") + EOF + ) + [[ ${soabi} == ${SLOT#*/} ]] || die "update subslot to ${soabi}" + + # Add epython.py to the distribution + echo 'EPYTHON="pypy3"' > lib-python/3/epython.py || die + + einfo "Generating caches and CFFI modules ..." + + # Generate sysconfig data + local host_gnu_type=$(sh pypy/tool/release/config.guess) + local overrides=( + HOST_GNU_TYPE "${host_gnu_type:-unknown}" + INCLUDEPY "${EPREFIX}/usr/include/pypy3.9" + LIBDIR "${EPREFIX}/usr/$(get_libdir)" + TZPATH "${EPREFIX}/usr/share/zoneinfo" + WHEEL_PKG_DIR "${EPREFIX}/usr/lib/python/ensurepip" + ) + ./pypy3.9-c -m sysconfig --generate-posix-vars "${overrides[@]}" || die + local outdir + outdir=$( pypy_incremental_magic -SLOT="0/pypy39-pp73-336" -KEYWORDS="~amd64 ~arm64 ~ppc64 ~x86 ~amd64-linux ~x86-linux" -IUSE="+ensurepip gdbm +jit ncurses sqlite tk" -# many tests are failing upstream -# see https://buildbot.pypy.org/summary?branch=py3.9 -RESTRICT="test" - -RDEPEND=" - || ( - >=dev-python/pypy3-exe-${PYPY_PV}:3.9-${PYPY_PV}[bzip2(+),ncurses?] - >=dev-python/pypy3-exe-bin-${PYPY_PV}:3.9-${PYPY_PV} - ) - dev-lang/python-exec[python_targets_pypy3(-)] - dev-libs/openssl:0= - ensurepip? ( dev-python/ensurepip-wheels ) - gdbm? ( sys-libs/gdbm:0= ) - sqlite? ( dev-db/sqlite:3= ) - tk? ( - dev-lang/tk:0= - dev-tcltk/tix:0= - ) -" -DEPEND=" - ${RDEPEND} -" - -src_prepare() { - local PATCHES=( - "${WORKDIR}/${PATCHSET}" - ) - default - - eapply_user -} - -src_configure() { - tc-export CC -} - -src_compile() { - mkdir bin || die - # switch to the layout expected for cffi module builds - mkdir include/pypy3.9 || die - # copy over to make sys.prefix happy - cp -p "${BROOT}"/usr/bin/pypy3.9-c-${PYPY_PV} pypy3.9-c || die - cp -p "${BROOT}"/usr/include/pypy3.9/${PYPY_PV}/* include/pypy3.9/ || die - # (not installed by pypy-exe) - rm pypy/module/cpyext/include/_numpypy/numpy/README || die - mv pypy/module/cpyext/include/* include/pypy3.9/ || die - mv pypy/module/cpyext/parse/*.h include/pypy3.9/ || die - pax-mark m pypy3.9-c - - # verify the subslot - local soabi=$( - ./pypy3.9-c - <<-EOF - import importlib.util - import sysconfig - soabi = sysconfig.get_config_var("SOABI") - magic = importlib.util._RAW_MAGIC_NUMBER & 0xffff - print(f"{soabi}-{magic}") - EOF - ) - [[ ${soabi} == ${SLOT#*/} ]] || die "update subslot to ${soabi}" - - # Add epython.py to the distribution - echo 'EPYTHON="pypy3"' > lib-python/3/epython.py || die - - einfo "Generating caches and CFFI modules ..." - - # Generate sysconfig data - local host_gnu_type=$(sh pypy/tool/release/config.guess) - local overrides=( - HOST_GNU_TYPE "${host_gnu_type:-unknown}" - INCLUDEPY "${EPREFIX}/usr/include/pypy3.9" - LIBDIR "${EPREFIX}/usr/$(get_libdir)" - TZPATH "${EPREFIX}/usr/share/zoneinfo" - WHEEL_PKG_DIR "${EPREFIX}/usr/lib/python/ensurepip" - ) - ./pypy3.9-c -m sysconfig --generate-posix-vars "${overrides[@]}" || die - local outdir - outdir=$(