diff options
Diffstat (limited to 'dev-python')
| -rw-r--r-- | dev-python/django-bootstrap5/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/django-bootstrap5/django-bootstrap5-24.3.ebuild | 25 | ||||
| -rw-r--r-- | dev-python/django-bootstrap5/metadata.xml | 14 | ||||
| -rw-r--r-- | dev-python/numexpr/numexpr-2.10.1.ebuild | 2 | ||||
| -rw-r--r-- | dev-python/numpy/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/numpy/numpy-2.0.2-r1.ebuild | 50 | ||||
| -rw-r--r-- | dev-python/numpy/numpy-2.1.1.ebuild | 149 | ||||
| -rw-r--r-- | dev-python/numpy/numpy-2.1.2.ebuild | 49 | ||||
| -rw-r--r-- | dev-python/pydata-sphinx-theme/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/pydata-sphinx-theme/pydata-sphinx-theme-0.16.0.ebuild | 57 | ||||
| -rw-r--r-- | dev-python/spyder-kernels/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/spyder-kernels/spyder-kernels-3.0.1.ebuild | 93 | ||||
| -rw-r--r-- | dev-python/spyder/Manifest | 2 | ||||
| -rw-r--r-- | dev-python/spyder/spyder-6.0.2.ebuild | 195 | ||||
| -rw-r--r-- | dev-python/zenlib/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/zenlib/zenlib-2.3.1.ebuild | 26 |
16 files changed, 483 insertions, 185 deletions
diff --git a/dev-python/django-bootstrap5/Manifest b/dev-python/django-bootstrap5/Manifest new file mode 100644 index 000000000000..964a86d48346 --- /dev/null +++ b/dev-python/django-bootstrap5/Manifest @@ -0,0 +1 @@ +DIST django_bootstrap5-24.3.tar.gz 54344 BLAKE2B a1a793266190eaccc44f683ce3a12ea9a6076d44498b477ba1ada5b8158bdbf4ca02fcd7db214eedb492ac1219cbf11a886107417f9571f64cb3dc68f433a8b0 SHA512 087ad0d79e1fcbd2a8506080e0d137c721572f322290969310265039ac19eee8d9e1909f421e5a4d3a6b10c669785fa9565d6d14fc7d1a31152f87f1677f2e8d diff --git a/dev-python/django-bootstrap5/django-bootstrap5-24.3.ebuild b/dev-python/django-bootstrap5/django-bootstrap5-24.3.ebuild new file mode 100644 index 000000000000..ae615b824290 --- /dev/null +++ b/dev-python/django-bootstrap5/django-bootstrap5-24.3.ebuild @@ -0,0 +1,25 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Bootstrap 5 for Django." +HOMEPAGE=" + https://pypi.org/project/django-bootstrap5/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64" + +distutils_enable_tests pytest + +python_test() { + "${EPYTHON}" -m django test tests --settings tests.app.settings \ + || die "Tests failed with ${EPYTHON}" +} diff --git a/dev-python/django-bootstrap5/metadata.xml b/dev-python/django-bootstrap5/metadata.xml new file mode 100644 index 000000000000..697d76fa2747 --- /dev/null +++ b/dev-python/django-bootstrap5/metadata.xml @@ -0,0 +1,14 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + </maintainer> + <maintainer type="person"> + <email>tupone@gentoo.org</email> + <name>Tupone Alfredo</name> + </maintainer> + + <origin>gentoo-staging</origin> + <stabilize-allarches/> +</pkgmetadata>
\ No newline at end of file diff --git a/dev-python/numexpr/numexpr-2.10.1.ebuild b/dev-python/numexpr/numexpr-2.10.1.ebuild index 6c40cb6d7771..04eed7d7721f 100644 --- a/dev-python/numexpr/numexpr-2.10.1.ebuild +++ b/dev-python/numexpr/numexpr-2.10.1.ebuild @@ -19,7 +19,7 @@ SRC_URI="https://github.com/pydata/numexpr/archive/v${PV}.tar.gz -> ${P}.gh.tar. LICENSE="MIT" SLOT="0" -KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 ~sparc x86 ~amd64-linux ~x86-linux ~arm64-macos ~x64-macos" DEPEND=" >=dev-python/numpy-2.0.0_rc:=[${PYTHON_USEDEP}] diff --git a/dev-python/numpy/Manifest b/dev-python/numpy/Manifest index 8530ac7ab169..1d1702edc9ee 100644 --- a/dev-python/numpy/Manifest +++ b/dev-python/numpy/Manifest @@ -1,5 +1,4 @@ DIST numpy-1.26.4.tar.gz 15786129 BLAKE2B ee759d3a857111bc494d5e989a7b005375d942b2a89cda69be4a3bd7c6cb195003fd2a8a0535f1858d8977ff688b0ec36360dcba9c3160206eedce5e28f191ef SHA512 f7121ab4099fa0686f9c095d456baa4a5869d651d7b7a06385f885f329cf08f11024b5df5e7b4ee705970062a8102ec4f709512eabbfd5c9fccce4ef83b9c208 DIST numpy-2.0.0.tar.gz 18326228 BLAKE2B e3d1084b79e0e55cd9087bb34dc116e6c9d6ab14a416a07f727b9f5d5a9db236ecf74a53b7e758d078781c5e565e5557912962f2ddbfff7251ec5b231fabe01d SHA512 cd5612ce2db4be87afa8479c508c256c9ff7f1b15a6b010eb06ba962759cc26552b512ec82711680bab1ebedeb06dfc8d7bff9cec63c94efacaadd719448b287 DIST numpy-2.0.2.tar.gz 18902015 BLAKE2B 63f993e3429bff1dac1ff79fad23a36a2493fd2c8a825ef96b6b87d82b0e68393d2829c5ecd9065df345c8bfbb1f8f385077f154264f7d2810d311d1d6672bd7 SHA512 d769fd4f07e082fae1661c6856d6d726e189f6931f3028c6819f9806aa9dfd15ab2b49c48b94bfd925eb3f74fddb6f044c9ba93bbb785b5476440dd1cf0b4999 -DIST numpy-2.1.1.tar.gz 18874860 BLAKE2B c828f2106e32429831aa8c64b3b94dfda1b097bcb7f3475b33306bed0b03c2aeb0af4e43ea47c6b3d5e6387b37e3f9ecdf6ae2a3fd4f526da5d121931b9521f1 SHA512 94843f88a32cc1df3e572ac13f294e49201a1f50fbd28707a500839cdff61958823c5b8748a7a54cd866a1acc9bd11efde53042141a81cca44393ee7cee78cdc DIST numpy-2.1.2.tar.gz 18878063 BLAKE2B b976b72bb113fc9c5e5a17c9d89038b6a11f2a09521ef46a610dd1fd04b0b11f08491728b2397ca5e3e9613aab3ad8c63b2b15a6378c535cf0e735226d517617 SHA512 3d69f6583e093e8fd0f441ec7dc4658c88fb714bb29574cd9510091ba059553f79c52492037353caf50b6cff1f7bd1e2501e445c7adde41bd9e08bab363e06e9 diff --git a/dev-python/numpy/numpy-2.0.2-r1.ebuild b/dev-python/numpy/numpy-2.0.2-r1.ebuild index 89b62e871bb8..e89a1c785b7f 100644 --- a/dev-python/numpy/numpy-2.0.2-r1.ebuild +++ b/dev-python/numpy/numpy-2.0.2-r1.ebuild @@ -20,10 +20,10 @@ HOMEPAGE=" LICENSE="BSD" SLOT="0/2" -KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc ~x86" # +lapack because the internal fallbacks are pretty slow. Building without blas # is barely supported anyway, see bug #914358. -IUSE="+lapack" +IUSE="big-endian +lapack" RDEPEND=" lapack? ( @@ -95,13 +95,55 @@ python_test() { typing/tests/test_typing.py # Uses huge amount of memory core/tests/test_mem_overlap.py - 'core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]' ) if [[ $(uname -m) == armv8l ]]; then # Degenerate case of arm32 chroot on arm64, bug #774108 EPYTEST_DESELECT+=( - core/tests/test_cpu_features.py::Test_ARM_Features::test_features + _core/tests/test_cpu_features.py::Test_ARM_Features::test_features + ) + fi + + case ${ARCH} in + arm) + EPYTEST_DESELECT+=( + # TODO: warnings + _core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception + + # TODO + _core/tests/test_function_base.py::TestLinspace::test_denormal_numbers + f2py/tests/test_kind.py::TestKind::test_real + f2py/tests/test_kind.py::TestKind::test_quad_precision + ) + ;& + ppc|x86) + EPYTEST_DESELECT+=( + # require too much memory + '_core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]' + '_core/tests/test_multiarray.py::TestDot::test_huge_vectordot[float64]' + ) + ;; + esac + + if [[ ${CHOST} == powerpc64le-* ]]; then + EPYTEST_DESELECT+=( + # long double thingy + _core/tests/test_scalarprint.py::TestRealScalars::test_ppc64_ibm_double_double128 + ) + fi + + if use big-endian; then + EPYTEST_DESELECT+=( + # ppc64 + _core/tests/test_cpu_features.py::TestEnvPrivation::test_impossible_feature_enable + + # ppc64 and sparc + linalg/tests/test_linalg.py::TestDet::test_generalized_sq_cases + linalg/tests/test_linalg.py::TestDet::test_sq_cases + "f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[s1]" + "f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[t1]" + "f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[s1]" + "f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[t1]" ) fi diff --git a/dev-python/numpy/numpy-2.1.1.ebuild b/dev-python/numpy/numpy-2.1.1.ebuild deleted file mode 100644 index 1469c2c4b458..000000000000 --- a/dev-python/numpy/numpy-2.1.1.ebuild +++ /dev/null @@ -1,149 +0,0 @@ -# Copyright 1999-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -DISTUTILS_USE_PEP517=meson-python -PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) -PYTHON_REQ_USE="threads(+)" -FORTRAN_NEEDED=lapack - -inherit distutils-r1 flag-o-matic fortran-2 pypi - -DESCRIPTION="Fast array and numerical python library" -HOMEPAGE=" - https://numpy.org/ - https://github.com/numpy/numpy/ - https://pypi.org/project/numpy/ -" - -LICENSE="BSD" -SLOT="0/2" -KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" -# +lapack because the internal fallbacks are pretty slow. Building without blas -# is barely supported anyway, see bug #914358. -IUSE="+lapack" - -RDEPEND=" - lapack? ( - >=virtual/cblas-3.8 - >=virtual/lapack-3.8 - ) -" -BDEPEND=" - ${RDEPEND} - >=dev-build/meson-1.1.0 - >=dev-python/cython-3.0.6[${PYTHON_USEDEP}] - lapack? ( - virtual/pkgconfig - ) - test? ( - $(python_gen_cond_dep ' - >=dev-python/cffi-1.14.0[${PYTHON_USEDEP}] - ' 'python*') - dev-python/charset-normalizer[${PYTHON_USEDEP}] - >=dev-python/hypothesis-5.8.0[${PYTHON_USEDEP}] - >=dev-python/pytz-2019.3[${PYTHON_USEDEP}] - ) -" - -QA_CONFIG_IMPL_DECL_SKIP=( - # https://bugs.gentoo.org/925367 - vrndq_f32 -) - -EPYTEST_XDIST=1 -distutils_enable_tests pytest - -python_prepare_all() { - # bug #922457 - filter-lto - # https://github.com/numpy/numpy/issues/25004 - append-flags -fno-strict-aliasing - - distutils-r1_python_prepare_all -} - -python_configure_all() { - DISTUTILS_ARGS=( - -Dallow-noblas=$(usex !lapack true false) - -Dblas=$(usev lapack cblas) - -Dlapack=$(usev lapack lapack) - # TODO: cpu-* options - ) -} - -python_test() { - local EPYTEST_DESELECT=( - # Very disk-and-memory-hungry - numpy/lib/tests/test_io.py::TestSaveTxt::test_large_zip - numpy/lib/tests/test_io.py::TestSavezLoad::test_closing_fid - numpy/lib/tests/test_io.py::TestSavezLoad::test_closing_zipfile_after_load - - # Precision problems - numpy/_core/tests/test_umath_accuracy.py::TestAccuracy::test_validate_transcendentals - - # Runs the whole test suite recursively, that's just crazy - numpy/core/tests/test_mem_policy.py::test_new_policy - - numpy/typing/tests/test_typing.py - # Uses huge amount of memory - numpy/core/tests/test_mem_overlap.py - 'numpy/core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]' - ) - - if [[ $(uname -m) == armv8l ]]; then - # Degenerate case of arm32 chroot on arm64, bug #774108 - EPYTEST_DESELECT+=( - numpy/core/tests/test_cpu_features.py::Test_ARM_Features::test_features - ) - fi - - case ${EPYTHON} in - python3.13) - EPYTEST_DESELECT+=( - numpy/_core/tests/test_nditer.py::test_iter_refcount - numpy/_core/tests/test_limited_api.py::test_limited_api - numpy/f2py/tests/test_f2py2e.py::test_gh22819_cli - ) - ;& - python3.12) - EPYTEST_DESELECT+=( - # flaky - numpy/f2py/tests/test_crackfortran.py - numpy/f2py/tests/test_data.py::TestData::test_crackedlines - numpy/f2py/tests/test_data.py::TestDataF77::test_crackedlines - numpy/f2py/tests/test_f2py2e.py::test_gen_pyf - ) - ;; - esac - - if ! has_version -b "~${CATEGORY}/${P}[${PYTHON_USEDEP}]" ; then - # depends on importing numpy.random from system namespace - EPYTEST_DESELECT+=( - 'numpy/random/tests/test_extending.py::test_cython' - ) - fi - - if has_version ">=dev-python/setuptools-74[${PYTHON_USEDEP}]"; then - # msvccompiler removal - EPYTEST_DESELECT+=( - numpy/tests/test_public_api.py::test_all_modules_are_expected_2 - numpy/tests/test_public_api.py::test_api_importable - ) - EPYTEST_IGNORE+=( - numpy/distutils/tests/test_mingw32ccompiler.py - numpy/distutils/tests/test_system_info.py - ) - fi - - local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 - cd "${BUILD_DIR}/install$(python_get_sitedir)" || die - epytest -} - -python_install_all() { - local DOCS=( LICENSE.txt README.md THANKS.txt ) - distutils-r1_python_install_all -} diff --git a/dev-python/numpy/numpy-2.1.2.ebuild b/dev-python/numpy/numpy-2.1.2.ebuild index 51df19bd70b4..040b4a17d620 100644 --- a/dev-python/numpy/numpy-2.1.2.ebuild +++ b/dev-python/numpy/numpy-2.1.2.ebuild @@ -23,7 +23,7 @@ SLOT="0/2" KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" # +lapack because the internal fallbacks are pretty slow. Building without blas # is barely supported anyway, see bug #914358. -IUSE="+lapack" +IUSE="big-endian +lapack" RDEPEND=" lapack? ( @@ -90,13 +90,56 @@ python_test() { numpy/typing/tests/test_typing.py # Uses huge amount of memory numpy/core/tests/test_mem_overlap.py - 'numpy/core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]' ) if [[ $(uname -m) == armv8l ]]; then # Degenerate case of arm32 chroot on arm64, bug #774108 EPYTEST_DESELECT+=( - numpy/core/tests/test_cpu_features.py::Test_ARM_Features::test_features + numpy/_core/tests/test_cpu_features.py::Test_ARM_Features::test_features + ) + fi + + case ${ARCH} in + arm) + EPYTEST_DESELECT+=( + # TODO: warnings + numpy/_core/tests/test_umath.py::TestSpecialFloats::test_unary_spurious_fpexception + + # TODO + numpy/_core/tests/test_function_base.py::TestLinspace::test_denormal_numbers + numpy/f2py/tests/test_kind.py::TestKind::test_real + numpy/f2py/tests/test_kind.py::TestKind::test_quad_precisionn + + # require too much memory + 'numpy/_core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]' + 'numpy/_core/tests/test_multiarray.py::TestDot::test_huge_vectordot[float64]' + ) + ;& + ppc|x86) + EPYTEST_DESELECT+=( + # require too much memory + 'numpy/_core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]' + 'numpy/_core/tests/test_multiarray.py::TestDot::test_huge_vectordot[float64]' + ) + ;; + esac + + if [[ ${CHOST} == powerpc64le-* ]]; then + EPYTEST_DESELECT+=( + # long double thingy + numpy/_core/tests/test_scalarprint.py::TestRealScalars::test_ppc64_ibm_double_double128 + ) + fi + + if use big-endian; then + EPYTEST_DESELECT+=( + # ppc64 and sparc + numpy/linalg/tests/test_linalg.py::TestDet::test_generalized_sq_cases + numpy/linalg/tests/test_linalg.py::TestDet::test_sq_cases + "numpy/f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[s1]" + "numpy/f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[t1]" + "numpy/f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[s1]" + "numpy/f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[t1]" ) fi diff --git a/dev-python/pydata-sphinx-theme/Manifest b/dev-python/pydata-sphinx-theme/Manifest index 326365e7b8b1..5fb6b85c0bf4 100644 --- a/dev-python/pydata-sphinx-theme/Manifest +++ b/dev-python/pydata-sphinx-theme/Manifest @@ -1,2 +1,4 @@ DIST pydata-sphinx-theme-0.15.4.gh.tar.gz 2396654 BLAKE2B 34293e53fe17568e65118702f1c55eb6cc0bca0d17fbc168fac0b495de581f094046bf775480ae608b711f2136c131e02163b2eed84dafa080e6ebc1b4eb96a5 SHA512 5cdedfa182a75c0735773627bbe738f31b36bc812051d4848676b33acf3b2a55d2bd59b1171c4deb4e7c29e8968bcade1f1abfa901c3c4dc8caeaf9e47cbba28 +DIST pydata-sphinx-theme-0.16.0.gh.tar.gz 2402696 BLAKE2B a56fe7accb28a82973076d19380600f188dc1e682158b2b77e7b1b0a0e6d6c2bfbed7ea4ac9bf2591ae8e4cccf529f7cf8c187afc044f152e22edd4515938ddd SHA512 4f5c48708d5aae21ed8f1827a4d805c893652b02612699468875d283180087c2193b4dd12b8cbe24a1cee1a748d5de9ebbe378d1ff0b07b2a57c0b349ea3c173 DIST pydata_sphinx_theme-0.15.4-py3-none-any.whl 4640157 BLAKE2B cb4e067e1acdb8364e498c00f3f8d549a16fc90675511dca65968828002422a8048818fdf3881f9ca33e7368758501b096dd9c968498a273cf2f353ea9868d3c SHA512 0d5e22952e11f683be4e14e597f488a2716877d1d064fa9c52985fcfd6dabcd5ae7c48143a3ebfd26f6a1f933b18e69f5d938afc99a9bfb475a80f94b34c82e7 +DIST pydata_sphinx_theme-0.16.0-py3-none-any.whl 6739948 BLAKE2B 070ede0cd030b6c1919f5f7b54bb1738c5e6af8f74bda49d2d4be4ea99b79b0adf9283b6f837a785203e5c442f845f8f8fd0139c189b927b5d5642aff17894e3 SHA512 947f0a0c910f9ced070e3128822292d1a4a1bfe99f46802abe9589d7d5216aa5294d81adae3d47db5e88942184d7455a624a9061030ea9e6648b031cd37b2fef diff --git a/dev-python/pydata-sphinx-theme/pydata-sphinx-theme-0.16.0.ebuild b/dev-python/pydata-sphinx-theme/pydata-sphinx-theme-0.16.0.ebuild new file mode 100644 index 000000000000..90eaed13c735 --- /dev/null +++ b/dev-python/pydata-sphinx-theme/pydata-sphinx-theme-0.16.0.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=standalone +PYPI_NO_NORMALIZE=1 +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 pypi + +MY_P=${P/_/} +DESCRIPTION="Bootstrap-based Sphinx theme from the PyData community" +HOMEPAGE=" + https://github.com/pydata/pydata-sphinx-theme/ + https://pypi.org/project/pydata-sphinx-theme/ +" +SRC_URI=" + https://github.com/pydata/pydata-sphinx-theme/archive/v${PV/_/}.tar.gz + -> ${P}.gh.tar.gz + $(pypi_wheel_url) +" +S=${WORKDIR}/${MY_P} + +LICENSE="BSD-with-disclosure" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + dev-python/accessible-pygments[${PYTHON_USEDEP}] + dev-python/Babel[${PYTHON_USEDEP}] + dev-python/beautifulsoup4[${PYTHON_USEDEP}] + dev-python/docutils[${PYTHON_USEDEP}] + >=dev-python/pygments-2.7[${PYTHON_USEDEP}] + >=dev-python/sphinx-6.1[${PYTHON_USEDEP}] + dev-python/typing-extensions[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/pytest-regressions[${PYTHON_USEDEP}] + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # pygments version mismatch? + 'tests/test_build.py::test_pygments_fallbacks[real]' + # Requires sphinx-intl + 'tests/test_build.py::test_translations' +) + +python_compile() { + distutils_wheel_install "${BUILD_DIR}/install" \ + "${DISTDIR}/$(pypi_wheel_name)" +} diff --git a/dev-python/spyder-kernels/Manifest b/dev-python/spyder-kernels/Manifest index a3cbe2ea28c6..696cf1ed2fe0 100644 --- a/dev-python/spyder-kernels/Manifest +++ b/dev-python/spyder-kernels/Manifest @@ -1,2 +1,3 @@ +DIST spyder-kernels-3.0.1.gh.tar.gz 238107 BLAKE2B bf2b67555b561e935e13cc8bedfe178396f100252f3a0a2f8606971691c62d2bba64fc2cae443654aadd3a853674184eaaa3567855ce1c1358f5142f40c5ca74 SHA512 a16fe124f4abf36bc95f2e409391c550063f5fc00024c3b58b635eb03ca449678065daa25c27c42a4a85babd6fcbf80ab6423e519221c3916c8ddbb03c0056b3 DIST spyder_kernels-2.5.2.tar.gz 99972 BLAKE2B 178f175fe03fd2b7871681ae30d10b62a4daf9ee606477eab4f88a4d81d2692b80cdcf4f9b6d46c4cfc0394b98d798e93dda870a3f1cbe6f77e243fd2b06d97c SHA512 4cf5462d6a6e72bf13f9890fbc5a4008788e132ee3315b0ad01a00beff6b78c63f47b7b5d19be601b64984196cc1a5c4706a4c5bbe878d938e487ae9ddd9f1fc DIST spyder_kernels-3.0.0.tar.gz 242868 BLAKE2B 7cf667ce42d9f0a1c6b0df337c98a702588c546eeedfeb8150cea560c7ba5f0049ccb76f1342584f7a6cf9bf400ed2d1dbbad12f5b39ae3a3343e3449aed3414 SHA512 42c176d6c8c410b375342c2fed07dd5ff6440e857dac06097d55c1f3d34bed6d51873833523b798316f100d3f226f78cf76d661a30c7e968683eaad622d5c994 diff --git a/dev-python/spyder-kernels/spyder-kernels-3.0.1.ebuild b/dev-python/spyder-kernels/spyder-kernels-3.0.1.ebuild new file mode 100644 index 000000000000..5329f270bcaf --- /dev/null +++ b/dev-python/spyder-kernels/spyder-kernels-3.0.1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9,10,11,12,13} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Kernels used by spyder on its ipython console" +HOMEPAGE=" + https://github.com/spyder-ide/spyder-kernels/ + https://pypi.org/project/spyder-kernels/ +" +SRC_URI="https://github.com/spyder-ide/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +RDEPEND=" + dev-python/cloudpickle[${PYTHON_USEDEP}] + <dev-python/ipykernel-7[${PYTHON_USEDEP}] + >=dev-python/ipykernel-6.29.3[${PYTHON_USEDEP}] + <dev-python/ipython-9[${PYTHON_USEDEP}] + >dev-python/ipython-8.13.0[${PYTHON_USEDEP}] + <dev-python/jupyter-client-9[${PYTHON_USEDEP}] + >=dev-python/jupyter-client-7.4.9[${PYTHON_USEDEP}] + dev-python/matplotlib-inline[${PYTHON_USEDEP}] + >=dev-python/pyxdg-0.26[${PYTHON_USEDEP}] + >=dev-python/pyzmq-24.0.0[${PYTHON_USEDEP}] + >=dev-python/wurlitzer-1.0.3[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/cython[${PYTHON_USEDEP}] + dev-python/django[${PYTHON_USEDEP}] + dev-python/flaky[${PYTHON_USEDEP}] + dev-python/matplotlib[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + dev-python/numpy[${PYTHON_USEDEP}] + dev-python/scipy[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/h5py[${PYTHON_USEDEP}] + dev-python/pandas[${PYTHON_USEDEP}] + dev-python/xarray[${PYTHON_USEDEP}] + ' 'python*') + ) +" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=( + # we no longer package distributed, and also removed dependency on dask + spyder_kernels/console/tests/test_console_kernel.py::test_dask_multiprocessing + + # RuntimeError: There is no current event loop in thread 'MainThread'. + # https://bugs.gentoo.org/834893 + spyder_kernels/console/tests/test_console_kernel.py::test_cwd_in_sys_path + spyder_kernels/console/tests/test_console_kernel.py::test_multiprocessing + spyder_kernels/console/tests/test_console_kernel.py::test_multiprocessing_2 + spyder_kernels/console/tests/test_console_kernel.py::test_runfile + spyder_kernels/console/tests/test_console_kernel.py::test_np_threshold + spyder_kernels/console/tests/test_console_kernel.py::test_turtle_launch + spyder_kernels/console/tests/test_console_kernel.py::test_matplotlib_inline + + # pydicom only packaged in ::sci at the moment + spyder_kernels/utils/tests/test_iofuncs.py::test_load_dicom_files + ) + local EPYTEST_IGNORE=() + + if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then + EPYTEST_IGNORE+=( + # require pandas + spyder_kernels/utils/tests/test_nsview.py + ) + fi + + if ! has_version "dev-python/h5py[${PYTHON_USEDEP}]"; then + EPYTEST_DESELECT+=( + # require hdf5 + spyder_kernels/utils/tests/test_iofuncs.py::test_save_load_hdf5_files + spyder_kernels/utils/tests/test_dochelpers.py + ) + fi + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/spyder/Manifest b/dev-python/spyder/Manifest index 7e635345718f..7fb59715c933 100644 --- a/dev-python/spyder/Manifest +++ b/dev-python/spyder/Manifest @@ -1,4 +1,6 @@ DIST spyder-5.5.6.gh.tar.gz 16304234 BLAKE2B 9d14b96901276ced1644eef8dd57539036aecb067ee361b6581368b371d56b2008350969224992a35fe10ee177babca7f3e941f43b4cc3f432f6d0dec9104ead SHA512 93ce6ac2e71bd4e81ca4a630a6fe152d1bf3c83d6e5c01dda8f3e5ad2735de1948a86642f5bc589c90616935e997526b26367ce178905ad2b80faf81f36f9164 DIST spyder-6.0.1.gh.tar.gz 15703963 BLAKE2B 5d4488fffe4889e5609a73c849172a08ed192dfe027940e8931da2ff4d809e52ddf3095c75813ca65225a372e86aece698fd83d5844aa76c5837f98d9c95c137 SHA512 034474c7feb341c5a0f6837ce2c0de6b6a6cc435c63e6d346c389977374b59a1b201495f2d6a692241245d81abda02dbd2a30c57c706506d23033c7347ccade0 +DIST spyder-6.0.2.gh.tar.gz 15751459 BLAKE2B fe20e477ced8f1fd8707691732f9c848b8f67481ae5b5728be65827c482ddf3cb210757675cf79623bf6413c0a44ce26017cdeed18787ddc0906847ff9a0c399 SHA512 ec9f9eb3a1a63947f73018b4a232c5301a01c9fe555980882a87fd2ab60c22919a47d586a1807d859a35f1a425212bc97c59d7659e37a52e3459b32249f18d67 DIST spyder-docs-6951e02799fc7cd1f29456f1d93cfdcb570dad27.gh.tar.gz 93033557 BLAKE2B 395dd2a8ddb6e1b1408ba46cbe0fa452c1f2e69da1f3b6176401ff7395ace1463e63c696e13ee0b79f992b0ceca86228ad113f95ed7873db1b970452bc679f89 SHA512 c631e720e3ca49413482df294fb032285cf217ba94de299c37cb073e4e2bdeb629d16a139db17c569c74c628c50789c90d6085383886d32fa26b942711ccedc0 DIST spyder-docs-d153e129b426b4fc95b1d66e692bf8a78cf40790.gh.tar.gz 93358065 BLAKE2B 7ad139ac9496d1817b0a8a69ba84bbbcd92081c5dd1d885011cbf8cc8cb4180f84a95222a0d89b3d41c352cb64e9ef87a8b31220e3d14e3efc63994f0623f07a SHA512 701e20113ae7b4894a4c08db967fbd7cbfbc894c4e5db74ad98451ebd03b8858ddfb3910238659f79a28e5e6cc9f76e05967ad7d8c4e27b0b5e6ea0551b2ceac +DIST spyder-docs-fa91f0e9c8c2da33e7ec974e6b0e2a5ed6f04b10.gh.tar.gz 93358798 BLAKE2B 81f4d1d7b1244cb05df621e764c57e856952d9ec1b923a0d6529280651f8e15c586be0c7fe1dc65eed3792033cf0f1e5e8813d79706dbbfca0dcff29cb476831 SHA512 39d0a2d6ef45ebfd3e656916bad18adb7b4f3981e619dcb16fc6160b445cf80a264c4fd8d82f61a51a55774bf2f2a08ac0b1fb4201b2cce9046a0ddd1062daa5 diff --git a/dev-python/spyder/spyder-6.0.2.ebuild b/dev-python/spyder/spyder-6.0.2.ebuild new file mode 100644 index 000000000000..dbc6be72464a --- /dev/null +++ b/dev-python/spyder/spyder-6.0.2.ebuild @@ -0,0 +1,195 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{9,10,11,12,13} ) +DISTUTILS_USE_PEP517=setuptools + +inherit distutils-r1 optfeature xdg #virtualx + +# Commit of documentation to fetch +DOCS_PV="fa91f0e9c8c2da33e7ec974e6b0e2a5ed6f04b10" + +DESCRIPTION="The Scientific Python Development Environment" +HOMEPAGE=" + https://www.spyder-ide.org/ + https://github.com/spyder-ide/spyder/ + https://pypi.org/project/spyder/ +" +SRC_URI=" + https://github.com/spyder-ide/${PN}/archive/v${PV}.tar.gz -> ${P}.gh.tar.gz + https://github.com/spyder-ide/${PN}-docs/archive/${DOCS_PV}.tar.gz -> ${PN}-docs-${DOCS_PV}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + >=dev-python/aiohttp-3.9.3[${PYTHON_USEDEP}] + >=dev-python/asyncssh-2.14.0[${PYTHON_USEDEP}] + <dev-python/asyncssh-3.0.0[${PYTHON_USEDEP}] + >=dev-python/atomicwrites-1.2.0[${PYTHON_USEDEP}] + >=dev-python/chardet-2.0.0[${PYTHON_USEDEP}] + >=dev-util/cookiecutter-1.6.0[${PYTHON_USEDEP}] + >=dev-python/diff-match-patch-20181111[${PYTHON_USEDEP}] + >=dev-python/intervaltree-3.0.2[${PYTHON_USEDEP}] + >=dev-python/jellyfish-0.7[${PYTHON_USEDEP}] + >=dev-python/jsonschema-3.2.0[${PYTHON_USEDEP}] + >=dev-python/keyring-17.0.0[${PYTHON_USEDEP}] + >=dev-python/nbconvert-4.0[${PYTHON_USEDEP}] + >=dev-python/numpydoc-0.6.0[${PYTHON_USEDEP}] + >=dev-python/pexpect-4.4.0[${PYTHON_USEDEP}] + >=dev-python/pickleshare-0.4[${PYTHON_USEDEP}] + >=dev-python/psutil-5.3[${PYTHON_USEDEP}] + >=dev-python/PyGithub-2.3.0[${PYTHON_USEDEP}] + >=dev-python/pygments-2.0[${PYTHON_USEDEP}] + >=dev-python/pylint-venv-3.0.2[${PYTHON_USEDEP}] + >=dev-python/python-lsp-black-2.0.0[${PYTHON_USEDEP}] + <dev-python/python-lsp-black-3.0.0[${PYTHON_USEDEP}] + >=dev-python/pyls-spyder-0.4.0[${PYTHON_USEDEP}] + >=dev-python/pyuca-1.2[${PYTHON_USEDEP}] + >=dev-python/qdarkstyle-3.2.0[${PYTHON_USEDEP}] + <dev-python/qdarkstyle-3.3.0[${PYTHON_USEDEP}] + >=dev-python/qstylizer-0.2.2[${PYTHON_USEDEP}] + >=dev-python/qtawesome-1.3.1[${PYTHON_USEDEP}] + <dev-python/qtawesome-1.4.0[${PYTHON_USEDEP}] + >=dev-python/qtconsole-5.6.1[${PYTHON_USEDEP}] + <dev-python/qtconsole-5.7.0[${PYTHON_USEDEP}] + >=dev-python/QtPy-2.4.0[${PYTHON_USEDEP},quick,svg,webengine] + >=dev-python/rtree-0.9.7[${PYTHON_USEDEP}] + >=dev-python/sphinx-0.6.6[${PYTHON_USEDEP}] + >=dev-python/spyder-kernels-3.0.0[${PYTHON_USEDEP}] + <dev-python/spyder-kernels-3.2.0[${PYTHON_USEDEP}] + >=dev-python/superqt-0.6.2[${PYTHON_USEDEP}] + <dev-python/superqt-1.0.0[${PYTHON_USEDEP}] + >=dev-python/textdistance-4.2.0[${PYTHON_USEDEP}] + >=dev-python/three-merge-0.1.1[${PYTHON_USEDEP}] + >=dev-python/watchdog-0.10.3[${PYTHON_USEDEP}] + >=dev-python/yarl-1.9.4[${PYTHON_USEDEP}] +" + +# BDEPEND=" +# test? ( +# dev-python/cython[${PYTHON_USEDEP}] +# dev-python/flaky[${PYTHON_USEDEP}] +# dev-python/matplotlib[tk,${PYTHON_USEDEP}] +# dev-python/pandas[${PYTHON_USEDEP}] +# dev-python/pillow[${PYTHON_USEDEP}] +# dev-python/pytest-lazy-fixture[${PYTHON_USEDEP}] +# dev-python/pytest-mock[${PYTHON_USEDEP}] +# dev-python/pytest-order[${PYTHON_USEDEP}] +# dev-python/pytest-qt[${PYTHON_USEDEP}] +# dev-python/pytest-timeout[${PYTHON_USEDEP}] +# dev-python/pyyaml[${PYTHON_USEDEP}] +# dev-python/QtPy[${PYTHON_USEDEP}] +# dev-python/scipy[${PYTHON_USEDEP}] +# dev-python/sympy[${PYTHON_USEDEP}] +# )" + +# Based on the courtesy of Arfrever +# This patch removes a call to update-desktop-database during build +# This fails because access is denied to this command during build +PATCHES=( + "${FILESDIR}/${PN}-5.0.0-build.patch" +) + +DOCS=( + "AUTHORS.txt" + "Announcements.md" + "CHANGELOG.md" + "CODE_OF_CONDUCT.md" + "CONTRIBUTING.md" + "NOTICE.txt" + "README.md" + "RELEASE.md" +) + +# distutils_enable_tests pytest +# TODO: Package sphinx-design +# distutils_enable_sphinx docs/doc \ +# dev-python/sphinx-panels \ +# dev-python/pydata-sphinx-theme \ +# dev-python/sphinx-multiversion + +python_prepare_all() { + # move docs into workdir + mv ../spyder-docs-${DOCS_PV}* docs || die + + # these dependencies are packaged separately: + # dev-python/spyder-kernels, + # dev-python/python-lsp-server, + # dev-python/qdarkstyle + rm -r external-deps/* || die + # runs against things packaged in external-deps dir + rm conftest.py || die + + # Do not depend on pyqt5<5.16, this dependency is carried by QtPy[pyqt5] + # Do not depend on pyqtwebengine<5.16, this dependency is carried by QtPy[webengine] + # Do not depend on parso and jedi, this is dependency is carried in python-lsp-server + # Do not depend on python-lsp-server, this dependency is carried in pyls-spyder + # Do not depend on ipython, this dependency is carried in spyder-kernels + # The explicit version requirements only make things more complicated, if e.g. + # pyls-spyder gains compatibility with a newer version of python-lsp-server + # in a new release it will take time for this information to propagate into + # the next spyder release. So just remove the dependency and let the other + # ebuilds handle the version requirements to speed things up and prevent + # issues such as Bug 803269. + sed -i \ + -e "/'pyqt5[ 0-9<=>.,]*',/d" \ + -e "/'pyqtwebengine[ 0-9<=>.,]*',/d" \ + -e "/'python-lsp-server\[all\][ 0-9<=>.,]*',/d" \ + -e "/'parso[ 0-9<=>.,]*',/d" \ + -e "/'jedi[ 0-9<=>.,]*',/d" \ + -e "/'pylint[ 0-9<=>.,]*',/d" \ + setup.py || die + # -e "/'ipython[ 0-9<=>.,]*',/d" \ + sed -i \ + -e "/^PYLS_REQVER/c\PYLS_REQVER = '>=0.0.1'" \ + -e "/^PYLSP_REQVER/c\PYLSP_REQVER = '>=0.0.1'" \ + -e "/^PARSO_REQVER/c\PARSO_REQVER = '>=0.0.1'" \ + -e "/^JEDI_REQVER/c\JEDI_REQVER = '>=0.0.1'" \ + -e "/^PYLINT_REQVER/c\PYLINT_REQVER = '>=0.0.1'" \ + spyder/dependencies.py || die + # -e "/^IPYTHON_REQVER/c\IPYTHON_REQVER = '>=0.0.1'" \ + + # do not check deps, fails because we removed dependencies above + sed -i -e 's:test_dependencies_for_spyder_setup_install_requires_in_sync:_&:' \ + spyder/tests/test_dependencies_in_sync.py || die + + # skip online test + rm spyder/widgets/github/tests/test_github_backend.py || die + + distutils-r1_python_prepare_all +} + +# Calling pytest directly somehow passes the pytest arguments to spyder +# causing an invalid argument error +# python_test() { +# virtx "${EPYTHON}" runtests.py +# } + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "2D/3D plotting in the Python and IPython consoles" dev-python/matplotlib + optfeature "View and edit DataFrames and Series in the Variable Explorer" dev-python/pandas + optfeature "View and edit two or three dimensional arrays in the Variable Explorer" dev-python/numpy + optfeature "Symbolic mathematics in the IPython console" dev-python/sympy + optfeature "Import Matlab workspace files in the Variable Explorer" dev-python/scipy + optfeature "Run Cython files in the IPython console" dev-python/cython + optfeature "The hdf5/h5py plugin" dev-python/h5py + optfeature "The line profiler plugin" dev-python/spyder-line-profiler + optfeature "Vim key bindings" dev-python/spyder-vim + optfeature "Unittest support" dev-python/spyder-unittest + optfeature "System terminal inside spyder" dev-python/spyder-terminal + optfeature "Jupyter notebook support" dev-python/spyder-notebook + # spyder-memory-profiler is not compatible with spyder-5.2+ yet + # optfeature "The memory profiler plugin" dev-python/spyder-memory-profiler + # spyder-reports not yet updated to >=spyder-4.0.0 + # optfeature "Markdown reports using Pweave" dev-python/spyder-reports + # Plugins with no release yet: + # optfeature "Manage virtual environments and packages" dev-python/spyder-env-manager + # optfeature "VCS (e.g. git) integration" dev-python/spyder-vcs +} diff --git a/dev-python/zenlib/Manifest b/dev-python/zenlib/Manifest index f6a0fc2a4ab7..2e197d6142e1 100644 --- a/dev-python/zenlib/Manifest +++ b/dev-python/zenlib/Manifest @@ -1,4 +1,3 @@ DIST zenlib-2.2.0.tar.gz 17727 BLAKE2B 073bbaa252ab000a30602e0a603a8293b8c3a322374ad4172758a6c95d52483b03cc84d4b72aa868168bde03796defb3efca85682ca8f7b7fce6243d8112198f SHA512 4b324e1b56d757536a80d4d5fe31d4087ee8e1a0aa1ff8a19a43252033ea6e5115c55c5c6d69bcae8594bc36c84625b75df2ce93a2f49f7b885179aa05b45d80 DIST zenlib-2.2.4.tar.gz 17734 BLAKE2B 9c054eafaa8a70231f9ffca241aad0fdd49257f77de02d47ca0fed7636c06a95923b1398ce8b11de7e690aa7be6762e4e0576b82edae15977f6f0b20a7c31c10 SHA512 ad1be96b6cd4f46e342e012cbd93b76fd051b7cd2d03d23b0065978b1d0a15a751ad5866322fd69b70890ed18f154355556b9b8402e6f19d17175340c1b5a0d3 -DIST zenlib-2.3.1.gh.tar.gz 20491 BLAKE2B 581b847ee79a5a181123225a67f444e42700fed4428a1aa67b033af12aaa53aa971653004539fc56e2a5398be6fa2a89912b7f2fbdb53d10b694fed44ccc6e83 SHA512 9e0be0021df0c60c90429ba1c270f492715e0b09d7911c37f0cd979834556e0dc479374f46f63e2fc78e1925f87a74532311b3daf8a82abd22f63aeff3a2b27e DIST zenlib-2.3.2.gh.tar.gz 20508 BLAKE2B 78ab80cbd1c4c71045900f6ddf3896a743fec2780a1645a7f10fd5678574cc68972321c28ae69b2fa60bcc6292691421c24e0b5c1c8326577d0a6e19a9a098b6 SHA512 08fec47999cf56d8db2bd585f9246708a0c566b529d9ddb49daca8c97a3b2e188217513087ede0c36d8182ff088d37483bc14539a35f51d2aca5d897c7479a99 diff --git a/dev-python/zenlib/zenlib-2.3.1.ebuild b/dev-python/zenlib/zenlib-2.3.1.ebuild deleted file mode 100644 index 86ec550ccfbe..000000000000 --- a/dev-python/zenlib/zenlib-2.3.1.ebuild +++ /dev/null @@ -1,26 +0,0 @@ -# Copyright 2023-2024 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{9,10,11,12,13} ) - -inherit distutils-r1 - -DESCRIPTION="Useful python decorators and utilities" -HOMEPAGE="https://github.com/desultory/zenlib/" -SRC_URI=" - https://github.com/desultory/zenlib/archive/${PV}.tar.gz - -> ${P}.gh.tar.gz -" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="~amd64 ~arm64" - -distutils_enable_tests unittest - -python_test() { - eunittest tests -} |
