From 69345f10fb2fa263bbcbf0293c36c12e90409ebc Mon Sep 17 00:00:00 2001 From: "Liguros - Gitlab CI/CD [develop]" Date: Tue, 1 Aug 2023 18:36:37 +0000 Subject: Adding metadata --- dev-python/ipywidgets/Manifest | 1 + dev-python/ipywidgets/ipywidgets-8.1.0.ebuild | 42 +++++ dev-python/langdetect/Manifest | 2 - dev-python/langdetect/metadata.xml | 10 +- dev-python/numpy/Manifest | 4 +- .../files/numpy-1.25.0-fix-long-double-check.patch | 151 ----------------- dev-python/numpy/numpy-1.24.3-r1.ebuild | 176 -------------------- dev-python/numpy/numpy-1.24.3.ebuild | 175 -------------------- dev-python/numpy/numpy-1.25.0-r2.ebuild | 148 ----------------- dev-python/numpy/numpy-1.25.2.ebuild | 178 +++++++++++++++++++++ dev-python/pikepdf/Manifest | 1 + dev-python/pikepdf/pikepdf-8.2.3.ebuild | 60 +++++++ dev-python/responses/Manifest | 1 + dev-python/responses/responses-0.23.3.ebuild | 51 ++++++ dev-python/sentry-sdk/Manifest | 1 + dev-python/sentry-sdk/sentry-sdk-1.29.2.ebuild | 118 ++++++++++++++ dev-python/sqlglot/Manifest | 2 +- dev-python/sqlglot/sqlglot-17.8.4.ebuild | 36 ----- dev-python/sqlglot/sqlglot-17.9.0.ebuild | 36 +++++ 19 files changed, 496 insertions(+), 697 deletions(-) create mode 100644 dev-python/ipywidgets/ipywidgets-8.1.0.ebuild delete mode 100644 dev-python/numpy/files/numpy-1.25.0-fix-long-double-check.patch delete mode 100644 dev-python/numpy/numpy-1.24.3-r1.ebuild delete mode 100644 dev-python/numpy/numpy-1.24.3.ebuild delete mode 100644 dev-python/numpy/numpy-1.25.0-r2.ebuild create mode 100644 dev-python/numpy/numpy-1.25.2.ebuild create mode 100644 dev-python/pikepdf/pikepdf-8.2.3.ebuild create mode 100644 dev-python/responses/responses-0.23.3.ebuild create mode 100644 dev-python/sentry-sdk/sentry-sdk-1.29.2.ebuild delete mode 100644 dev-python/sqlglot/sqlglot-17.8.4.ebuild create mode 100644 dev-python/sqlglot/sqlglot-17.9.0.ebuild (limited to 'dev-python') diff --git a/dev-python/ipywidgets/Manifest b/dev-python/ipywidgets/Manifest index 8257ccd17a87..aba8321c88ab 100644 --- a/dev-python/ipywidgets/Manifest +++ b/dev-python/ipywidgets/Manifest @@ -1,2 +1,3 @@ DIST ipywidgets-8.0.6.tar.gz 115372 BLAKE2B 9369c6697879cb07576ef82769b2df7cb24c7076e5d6d01be30c9f23ee3586616fa44ff7a16904bd0a5754032d4c9be58cb7c63392360d4347f1284d8bd53093 SHA512 9275f259f7f20b20e14856b1a500094300c18f3e9ff46086a5856a5261a71d62a005a2541f4987b9761d57da1db15e881f0c858dcde34978cbef8b5efe691723 DIST ipywidgets-8.0.7.tar.gz 115457 BLAKE2B fc9e0da01de1b76b770335a8ac8844b930ca941b64e35dda561aed1732da64d3c814244d8695d4c9ee15247ce6c4095fc710c80bfb32bbabd26ad6d06dc04da8 SHA512 8dddc9d3df9d5f862b380553e7ea5df24e2d9f7cf086c9b8c51d5efe7018969a0fc56c442ccacc2bcfd7a870eb72ec9d75b05e3eff1ded2aff4a391c9d85053d +DIST ipywidgets-8.1.0.tar.gz 116121 BLAKE2B dbe8f137294820c6e2da7aaa2ffa1a3b13da30888d70384a174bbc29f85e0e826968e4ccb719bf8ca5d3abce342b1e594a35e814e8b32ac52229ead36b9a068b SHA512 39e3b20420e24eb119b584a9edc364d62573550edde41d0f881ff20649877b61aea80df31b95102e38953256b612ced28d9b5afb22a17cc04a3f258d79f43058 diff --git a/dev-python/ipywidgets/ipywidgets-8.1.0.ebuild b/dev-python/ipywidgets/ipywidgets-8.1.0.ebuild new file mode 100644 index 000000000000..941cc5638a95 --- /dev/null +++ b/dev-python/ipywidgets/ipywidgets-8.1.0.ebuild @@ -0,0 +1,42 @@ +# 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} ) +PYTHON_REQ_USE="threads(+)" + +inherit distutils-r1 pypi + +DESCRIPTION="IPython HTML widgets for Jupyter" +HOMEPAGE=" + https://ipywidgets.readthedocs.io/ + https://github.com/jupyter-widgets/ipywidgets/ + https://pypi.org/project/ipywidgets/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux" + +RDEPEND=" + >=dev-python/comm-0.1.3[${PYTHON_USEDEP}] + >=dev-python/ipython_genutils-0.2.0[${PYTHON_USEDEP}] + >=dev-python/traitlets-4.3.1[${PYTHON_USEDEP}] + >=dev-python/widgetsnbextension-4.0.7[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/jsonschema[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + # upstream hack to autoconfigure ipywidgets in jupyter + # we don't have jupyterlab_widgets packaged + sed -i -e '/jupyterlab_widgets/d' setup.cfg || die + distutils-r1_src_prepare +} diff --git a/dev-python/langdetect/Manifest b/dev-python/langdetect/Manifest index e9da2ac43cac..a11d7c268c91 100644 --- a/dev-python/langdetect/Manifest +++ b/dev-python/langdetect/Manifest @@ -1,3 +1 @@ DIST langdetect-1.0.9.tar.gz 981474 BLAKE2B ea8a9c3f16a2987c080742473bff4f2c1503f53fb3c2b40b0b1d6212bb6133ea22dce7864ffcfb8968c3a46b157d45cb3e2cf6f84bdbed0266cc716a853b032c SHA512 7558d674c47b080c79e43a00a25d2c7f77188cf60bea2cecb3bebb803d75e1aa42b43c74bd26ea1b541f4cb927421908882cbec01a91f0913984217e71ccc8db -EBUILD langdetect-1.0.9.ebuild 493 BLAKE2B 0df8bce19bc80f79f8e76bcef5a4c2caf333365fe0cb9a3c076b7858bceded5a3e58921474f866a2709dd657b7ed330c1ec4a7f9d7bab0fcf1bc92d77cabc32d SHA512 ea2a1adcb133ac5fc951ba1aa90ef1ce3dfcc424e59727591763d4875aa044a74188be2d15fd89c6b2e83ed6ea04ec3d9851ed584ae79d2c2c127bde7d994b48 -MISC metadata.xml 457 BLAKE2B 630128a3e982b6d60cc7b9f74c79fcb5ee47a71a02c73a50af9da8cedb6fad8e20a7f74b881e5b25c6483b92c9edbd56552cd38b2d9cbfa8b3eb4530facea969 SHA512 674f4f5cd809c6c77bc14e0f5687fa972bef14bdfa0b3343c5d66b7163eef1906eb87d060c8288732f825de71dce291ad0b841a5f2f0dd230f957b5687e45d45 diff --git a/dev-python/langdetect/metadata.xml b/dev-python/langdetect/metadata.xml index 020e07f2a3dd..ddb5b0f1787e 100644 --- a/dev-python/langdetect/metadata.xml +++ b/dev-python/langdetect/metadata.xml @@ -2,11 +2,9 @@ - marcin.deranek@slonko.net - Marcin Deranek + cyber+gentoo@sysrq.in + Anna - - https://github.com/Mimino666/langdetect/issues - - slonko-overlay + + gentoo-guru-overlay \ No newline at end of file diff --git a/dev-python/numpy/Manifest b/dev-python/numpy/Manifest index e13da7f134ae..cf66425c1381 100644 --- a/dev-python/numpy/Manifest +++ b/dev-python/numpy/Manifest @@ -1,6 +1,6 @@ DIST numpy-1.24.0.tar.gz 10897101 BLAKE2B 59e2b913f90de76589d8fbb2f07e2d389012c7f6ce9bd641bc4837776465ce9c41c34f19f92bee55d4bae6245c1d2c84315b359ef0b089fd68d31cd7e7ec44b1 SHA512 3b4e6255b8d39e8504a50ecd3c2ba09d5b16d3f6c70b23b67e4dbf03d1fe390c55030f46090341d39a1ee8228c61ad6212fdc6e4579fcec9e26b4dbe70268661 DIST numpy-1.24.2.tar.gz 10906862 BLAKE2B e48f65eab709f0c57ec378d813a7b65bcaca6d5960b559d6db1c60726e5cf12517f4b2e1636b0ff815a2109925edccba200270db5170fd0aff5fd635919165ac SHA512 145fd7fb3919a185f75076d51b92c54a7fb1b776b637752ca15fdee15b239d6a517ef1bb8cded7c92e059cf6cda0146c24943c042d19b791e81125bc0ad4b820 -DIST numpy-1.24.3.tar.gz 10909904 BLAKE2B 3b14f8b6a7bd484de43c3b0e57f161388d6226e05ed9bc3d1edfaafc713b9597c7574b9b9c20b4e3a6bd291d32a607d95c72d6e25fa346ffdaf97c94767bc315 SHA512 d4b5841cbe68ee6653f99018e4e0182f2e5519a1cd69c14e0a95aa180f878e6a6786ccf0a7c78bf0d511c53e7535d7144fee428572dec7a4b60b25c8a1c0c9e1 DIST numpy-1.24.4.tar.gz 10911229 BLAKE2B 2f054b4ede249653707c3df8ccf6df31b747c0625891ae6e01134f84b02d1300e1d7a88b5741e0e0f05218673d95374f263e5bfddbf17c9510aa93bac002eafc SHA512 89eb90548ad4f38cfe0a5077eef426058eed08ca17633024887e4d0ff5bdfe98736b1ad6850fe643bc0035d55ac4cd39b5971895eea9dcf247b5ff186654ed68 -DIST numpy-1.25.0.tar.gz 10426700 BLAKE2B 9a6c9b7e1172a21ec7cc3b2a0b292308ed7a859072ba73cac3c472cd60f45acd66032f24df19bddef8aa0aee7a243e21d3fa04b68f1383efc6af834cdc04b589 SHA512 e464d82bba0487f520ec7a820492343af5172e807e0f746688bbaff636a31947da62704ef0f35c74a46fb42332f4644f3c497d544789d22e5c01ca0823f82909 DIST numpy-1.25.1.tar.gz 10428993 BLAKE2B ee3edaf5416ac858b995f0cb8df75962af01619969a2c70fa10b4e0d0a1c96a3b441ee470a463cdb7c60910d8823af1c41d37933f87bcaa0a724655d052ed20a SHA512 69cc5426f657a21a6a1fb3bb043b8acec90b87969f90177abb6d7294ca96d04f723ddf90fa40822704b16147a390abafbcda9702e40405ea6b6e22377aade71d +DIST numpy-1.25.2-patches.tar.xz 7212 BLAKE2B 718331b2d9f8380df239bf2ad9c24d79924e08797825d7c8655124a55e059790f96641633cdb42c597646764ca9efcaf277d5f5b75f042f533c28f2a81d5a5a8 SHA512 bcc0c55710b8d874e1dd9a57fad5698e09e3c96254922db32a8beeae9a5a54532cb0660d3ce43ca68e70fa7227bca9e0d12a0298aa6972ad2cbcecfe4aee3e85 +DIST numpy-1.25.2.tar.gz 10805282 BLAKE2B f138eaf237f3e8052cafbe9fc98b4b62fb0748079df8599fc0950624c856294157410a2ec6fe381eaa8386b1530a39f7037ae1887c9fcfe2e77a3d7ad1ca0171 SHA512 6846d558c227329b6e700965ffa4c7886a7ca5f35234a56d734bc8201d19f7ac87d8ea081094bca13685130dce7bfb98ee4aa3a9dbd538288f10f1d9d82fb699 diff --git a/dev-python/numpy/files/numpy-1.25.0-fix-long-double-check.patch b/dev-python/numpy/files/numpy-1.25.0-fix-long-double-check.patch deleted file mode 100644 index 4f3ef21c93b3..000000000000 --- a/dev-python/numpy/files/numpy-1.25.0-fix-long-double-check.patch +++ /dev/null @@ -1,151 +0,0 @@ -https://github.com/numpy/numpy/commit/de0b2d5c6dee9303c4a055e7591978ed5a06e403 - -From de0b2d5c6dee9303c4a055e7591978ed5a06e403 Mon Sep 17 00:00:00 2001 -From: matoro -Date: Sun, 18 Jun 2023 19:39:06 -0400 -Subject: [PATCH] BLD: Port long double identification to C for meson - -This ports the old Python code for identifying the long double -representation to C, so that it can be easily invoked by meson. The -original implementation is at https://github.com/numpy/numpy/blob/eead09a3d02c09374942cdc787c0b5e4fe9e7472/numpy/core/setup_common.py#L264-L434 - -The C portion of the code has been tested and confirmed to work on -systems with the following formats, either natively or via an -alternative ABI: INTEL_EXTENDED_16_BYTES_LE, IEEE_QUAD_BE, -IEEE_QUAD_LE, IBM_DOUBLE_DOUBLE_BE, IBM_DOUBLE_DOUBLE_LE, -IEEE_DOUBLE_BE, INTEL_EXTENDED_12_BYTES_LE. - -The original meson port includes an error condition with the comment -"This should not be possible, 12 bits of "content" should still result -in sizeof() being 16." As far as I can tell this is incorrect, as -compiling on an x86_64 system with 32-bit ABI (gcc -m32) does indeed -have sizeof(long double)==12. This is reflected in the C code. - -Closes gh-23972, closes -https://github.com/mesonbuild/meson/issues/11068. ---- - numpy/core/meson.build | 110 ++++++++++++++++++++++++++++++++--------- - 1 file changed, 87 insertions(+), 23 deletions(-) - -diff --git a/numpy/core/meson.build b/numpy/core/meson.build -index 3427de408f1..92b393e4bc1 100644 ---- a/numpy/core/meson.build -+++ b/numpy/core/meson.build -@@ -361,29 +361,93 @@ foreach intrin: optional_intrinsics - endif - endforeach - --# long double representation detection (see setup_common.py) --# TODO: this is still incomplete, and different from how it's done in the --# numpy.distutils based build, see https://github.com/mesonbuild/meson/issues/11068 --longdouble_size = cc.sizeof('long double') --if longdouble_size == 8 -- if host_machine.endian() == 'little' -- longdouble_format = 'IEEE_DOUBLE_LE' -- else -- longdouble_format = 'IEEE_DOUBLE_BE' -- endif --elif longdouble_size == 12 -- error('This should not be possible, 12 bits of "content" should still result in sizeof() being 16. Please report this error!' -- ) --elif longdouble_size == 16 -- if host_machine.endian() == 'little' -- # FIXME: this varies, there's multiple formats here! Not yet implemented. -- # TBD how we deal with the mess of old long double formats. -- longdouble_format = 'INTEL_EXTENDED_16_BYTES_LE' -- else -- error('No idea what this is ....') -- endif --else -- error('Unknown long double size: ' + londouble_size) -+# This is a port of the old python code for identifying the long double -+# representation to C. The old Python code is in this range: -+# https://github.com/numpy/numpy/blob/eead09a3d02c09374942cdc787c0b5e4fe9e7472/numpy/core/setup_common.py#L264-L434 -+# This port is in service of solving gh-23972 -+# as well as https://github.com/mesonbuild/meson/issues/11068 -+longdouble_format = meson.get_compiler('c').run( -+''' -+#include -+#include -+ -+#define repcmp(z) (memcmp((const char *)&foo.x, z, sizeof(foo.x)) == 0) -+ -+const struct { -+ char before[16]; -+ long double x; -+ char after[8]; -+} foo = {{'\0'}, -123456789.0, {'\0'}}; -+ -+int main(void) { -+ switch (sizeof(foo.x)) { -+ case 8: { -+ if (repcmp( -+ ((const char[]){0000, 0000, 0000, 0124, 0064, 0157, 0235, 0301}))) { -+ fprintf(stdout, "IEEE_DOUBLE_LE"); -+ return 0; -+ } -+ if (repcmp( -+ ((const char[]){0301, 0235, 0157, 0064, 0124, 0000, 0000, 0000}))) { -+ fprintf(stdout, "IEEE_DOUBLE_BE"); -+ return 0; -+ } -+ fprintf(stdout, "UNKNOWN"); -+ return 1; -+ } -+ case 12: { -+ if (repcmp(((const char[]){0000, 0000, 0000, 0000, 0240, 0242, 0171, 0353, -+ 0031, 0300, 0000, 0000}))) { -+ fprintf(stdout, "INTEL_EXTENDED_12_BYTES_LE"); -+ return 0; -+ } -+ if (repcmp(((const char[]){0300, 0031, 0000, 0000, 0353, 0171, 0242, 0240, -+ 0000, 0000, 0000, 0000}))) { -+ fprintf(stdout, "MOTOROLA_EXTENDED_12_BYTES_BE"); -+ return 0; -+ } -+ fprintf(stdout, "UNKNOWN"); -+ return 1; -+ } -+ case 16: { -+ if (repcmp( -+ ((const char[]){0000, 0000, 0000, 0000, 0240, 0242, 0171, 0353, -+ 0031, 0300, 0000, 0000, 0000, 0000, 0000, 0000}))) { -+ fprintf(stdout, "INTEL_EXTENDED_16_BYTES_LE"); -+ return 0; -+ } -+ if (repcmp( -+ ((const char[]){0300, 0031, 0326, 0363, 0105, 0100, 0000, 0000, -+ 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000}))) { -+ fprintf(stdout, "IEEE_QUAD_BE"); -+ return 0; -+ } -+ if (repcmp( -+ ((const char[]){0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000, -+ 0000, 0000, 0100, 0105, 0363, 0326, 0031, 0300}))) { -+ fprintf(stdout, "IEEE_QUAD_LE"); -+ return 0; -+ } -+ if (repcmp( -+ ((const char[]){0000, 0000, 0000, 0124, 0064, 0157, 0235, 0301, -+ 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000}))) { -+ fprintf(stdout, "IBM_DOUBLE_DOUBLE_LE"); -+ return 0; -+ } -+ if (repcmp( -+ ((const char[]){0301, 0235, 0157, 0064, 0124, 0000, 0000, 0000, -+ 0000, 0000, 0000, 0000, 0000, 0000, 0000, 0000}))) { -+ fprintf(stdout, "IBM_DOUBLE_DOUBLE_BE"); -+ return 0; -+ } -+ fprintf(stdout, "UNKNOWN"); -+ return 1; -+ } -+ } -+} -+''').stdout() -+if longdouble_format == 'UNKNOWN' or longdouble_format == 'UNDEFINED' -+ error('Unknown long double format of size: ' + cc.sizeof('long double').to_string()) - endif - cdata.set10('HAVE_LDOUBLE_' + longdouble_format, true) - - diff --git a/dev-python/numpy/numpy-1.24.3-r1.ebuild b/dev-python/numpy/numpy-1.24.3-r1.ebuild deleted file mode 100644 index 351affe24972..000000000000 --- a/dev-python/numpy/numpy-1.24.3-r1.ebuild +++ /dev/null @@ -1,176 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) -PYTHON_REQ_USE="threads(+)" - -FORTRAN_NEEDED=lapack - -inherit distutils-r1 flag-o-matic fortran-2 multiprocessing pypi -inherit toolchain-funcs - -DOC_PV=${PV} -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" -KEYWORDS="~alpha amd64 ~arm arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="lapack" - -RDEPEND=" - lapack? ( - >=virtual/cblas-3.8 - >=virtual/lapack-3.8 - ) -" -BDEPEND=" - ${RDEPEND} - =dev-python/cython-0.29.30[${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/pytest-xdist[${PYTHON_USEDEP}] - >=dev-python/pytz-2019.3[${PYTHON_USEDEP}] - ) -" - -PATCHES=( - "${FILESDIR}"/numpy-1.22.0-no-hardcode-blasv2.patch - "${FILESDIR}"/numpy-1.24.3-fix-c++-linkage.patch -) - -distutils_enable_tests pytest - -python_prepare_all() { - # Allow use with setuptools 60.x - # See numpy-1.22.1-revert-setuptools-upper-bound.patch for details - export SETUPTOOLS_USE_DISTUTILS=stdlib - - if use lapack; then - local incdir="${EPREFIX}"/usr/include - local libdir="${EPREFIX}"/usr/$(get_libdir) - cat >> site.cfg <<-EOF || die - [blas] - include_dirs = ${incdir} - library_dirs = ${libdir} - blas_libs = cblas,blas - [lapack] - library_dirs = ${libdir} - lapack_libs = lapack - EOF - else - export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None - fi - - export CC="$(tc-getCC) ${CFLAGS}" - - append-flags -fno-strict-aliasing - - # See progress in http://projects.scipy.org/scipy/numpy/ticket/573 - # with the subtle difference that we don't want to break Darwin where - # -shared is not a valid linker argument - if [[ ${CHOST} != *-darwin* ]]; then - append-ldflags -shared - fi - - # only one fortran to link with: - # linking with cblas and lapack library will force - # autodetecting and linking to all available fortran compilers - append-fflags -fPIC - if use lapack; then - NUMPY_FCONFIG="config_fc --noopt --noarch" - # workaround bug 335908 - [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95" - fi - - # don't version f2py, we will handle it. - sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die - - distutils-r1_python_prepare_all -} - -python_compile() { - local -x MAKEOPTS=-j1 #660754 - - distutils-r1_python_compile ${NUMPY_FCONFIG} -} - -python_test() { - local EPYTEST_DESELECT=( - # very disk- and memory-hungry - numpy/lib/tests/test_histograms.py::TestHistogram::test_big_arrays - numpy/lib/tests/test_io.py::test_large_zip - - # 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 - - # very slow, unlikely to be practically useful - numpy/typing/tests/test_typing.py - ) - - if use arm && [[ $(uname -m || echo "unknown") == "armv8l" ]] ; then - # Degenerate case. arm32 chroot on arm64. - # bug #774108 - EPYTEST_DESELECT+=( - numpy/core/tests/test_cpu_features.py::Test_ARM_Features::test_features - ) - fi - - if use x86 ; then - EPYTEST_DESELECT+=( - # https://github.com/numpy/numpy/issues/18388 - numpy/core/tests/test_umath.py::TestRemainder::test_float_remainder_overflow - # https://github.com/numpy/numpy/issues/18387 - numpy/random/tests/test_generator_mt19937.py::TestRandomDist::test_pareto - # more precision problems - numpy/core/tests/test_einsum.py::TestEinsum::test_einsum_sums_int16 - ) - fi - - case "${ABI}" in - alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86) - EPYTEST_DESELECT+=( - # too large for 32-bit platforms - numpy/core/tests/test_ufunc.py::TestUfunc::test_identityless_reduction_huge_array - ) - ;; - *) - ;; - esac - - distutils_install_for_testing --single-version-externally-managed \ - --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG} - - cd "${TEST_DIR}/lib" || die - epytest -k "not _fuzz" -n "$(makeopts_jobs)" -} - -python_install() { - # https://github.com/numpy/numpy/issues/16005 - local mydistutilsargs=( build_src ) - distutils-r1_python_install ${NUMPY_FCONFIG} - python_optimize -} - -python_install_all() { - local DOCS=( LICENSE.txt README.md THANKS.txt ) - distutils-r1_python_install_all -} diff --git a/dev-python/numpy/numpy-1.24.3.ebuild b/dev-python/numpy/numpy-1.24.3.ebuild deleted file mode 100644 index 665d98e3eedc..000000000000 --- a/dev-python/numpy/numpy-1.24.3.ebuild +++ /dev/null @@ -1,175 +0,0 @@ -# Copyright 1999-2023 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -DISTUTILS_EXT=1 -PYTHON_COMPAT=( python3_{7,8,9,10,11} pypy3 ) -PYTHON_REQ_USE="threads(+)" - -FORTRAN_NEEDED=lapack - -inherit distutils-r1 flag-o-matic fortran-2 multiprocessing pypi -inherit toolchain-funcs - -DOC_PV=${PV} -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" -KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" -IUSE="lapack" - -RDEPEND=" - lapack? ( - >=virtual/cblas-3.8 - >=virtual/lapack-3.8 - ) -" -BDEPEND=" - ${RDEPEND} - =dev-python/cython-0.29.30[${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/pytest-xdist[${PYTHON_USEDEP}] - >=dev-python/pytz-2019.3[${PYTHON_USEDEP}] - ) -" - -PATCHES=( - "${FILESDIR}"/numpy-1.22.0-no-hardcode-blasv2.patch -) - -distutils_enable_tests pytest - -python_prepare_all() { - # Allow use with setuptools 60.x - # See numpy-1.22.1-revert-setuptools-upper-bound.patch for details - export SETUPTOOLS_USE_DISTUTILS=stdlib - - if use lapack; then - local incdir="${EPREFIX}"/usr/include - local libdir="${EPREFIX}"/usr/$(get_libdir) - cat >> site.cfg <<-EOF || die - [blas] - include_dirs = ${incdir} - library_dirs = ${libdir} - blas_libs = cblas,blas - [lapack] - library_dirs = ${libdir} - lapack_libs = lapack - EOF - else - export {ATLAS,PTATLAS,BLAS,LAPACK,MKL}=None - fi - - export CC="$(tc-getCC) ${CFLAGS}" - - append-flags -fno-strict-aliasing - - # See progress in http://projects.scipy.org/scipy/numpy/ticket/573 - # with the subtle difference that we don't want to break Darwin where - # -shared is not a valid linker argument - if [[ ${CHOST} != *-darwin* ]]; then - append-ldflags -shared - fi - - # only one fortran to link with: - # linking with cblas and lapack library will force - # autodetecting and linking to all available fortran compilers - append-fflags -fPIC - if use lapack; then - NUMPY_FCONFIG="config_fc --noopt --noarch" - # workaround bug 335908 - [[ $(tc-getFC) == *gfortran* ]] && NUMPY_FCONFIG+=" --fcompiler=gnu95" - fi - - # don't version f2py, we will handle it. - sed -i -e '/f2py_exe/s: + os\.path.*$::' numpy/f2py/setup.py || die - - distutils-r1_python_prepare_all -} - -python_compile() { - local -x MAKEOPTS=-j1 #660754 - - distutils-r1_python_compile ${NUMPY_FCONFIG} -} - -python_test() { - local EPYTEST_DESELECT=( - # very disk- and memory-hungry - numpy/lib/tests/test_histograms.py::TestHistogram::test_big_arrays - numpy/lib/tests/test_io.py::test_large_zip - - # 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 - - # very slow, unlikely to be practically useful - numpy/typing/tests/test_typing.py - ) - - if use arm && [[ $(uname -m || echo "unknown") == "armv8l" ]] ; then - # Degenerate case. arm32 chroot on arm64. - # bug #774108 - EPYTEST_DESELECT+=( - numpy/core/tests/test_cpu_features.py::Test_ARM_Features::test_features - ) - fi - - if use x86 ; then - EPYTEST_DESELECT+=( - # https://github.com/numpy/numpy/issues/18388 - numpy/core/tests/test_umath.py::TestRemainder::test_float_remainder_overflow - # https://github.com/numpy/numpy/issues/18387 - numpy/random/tests/test_generator_mt19937.py::TestRandomDist::test_pareto - # more precision problems - numpy/core/tests/test_einsum.py::TestEinsum::test_einsum_sums_int16 - ) - fi - - case "${ABI}" in - alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86) - EPYTEST_DESELECT+=( - # too large for 32-bit platforms - numpy/core/tests/test_ufunc.py::TestUfunc::test_identityless_reduction_huge_array - ) - ;; - *) - ;; - esac - - distutils_install_for_testing --single-version-externally-managed \ - --record "${TMPDIR}/record.txt" ${NUMPY_FCONFIG} - - cd "${TEST_DIR}/lib" || die - epytest -k "not _fuzz" -n "$(makeopts_jobs)" -} - -python_install() { - # https://github.com/numpy/numpy/issues/16005 - local mydistutilsargs=( build_src ) - distutils-r1_python_install ${NUMPY_FCONFIG} - python_optimize -} - -python_install_all() { - local DOCS=( LICENSE.txt README.md THANKS.txt ) - distutils-r1_python_install_all -} diff --git a/dev-python/numpy/numpy-1.25.0-r2.ebuild b/dev-python/numpy/numpy-1.25.0-r2.ebuild deleted file mode 100644 index ede4f7fd0a86..000000000000 --- a/dev-python/numpy/numpy-1.25.0-r2.ebuild +++ /dev/null @@ -1,148 +0,0 @@ -# Copyright 1999-2023 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_{7,8,9,10,11} pypy3 ) -PYTHON_REQ_USE="threads(+)" -FORTRAN_NEEDED=lapack - -inherit distutils-r1 flag-o-matic fortran-2 multiprocessing pypi toolchain-funcs - -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" -IUSE="lapack" -if [[ ${PV} != *_rc* ]] ; then - KEYWORDS="~amd64 ~arm ~arm64 ~ia64 ~loong ~ppc64 ~s390 ~sparc ~x86" -fi - -RDEPEND=" - lapack? ( - >=virtual/cblas-3.8 - >=virtual/lapack-3.8 - ) -" -BDEPEND=" - ${RDEPEND} - >=dev-util/meson-1.1.0 - =dev-python/cython-0.29.30[${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/pytest-xdist[${PYTHON_USEDEP}] - >=dev-python/pytz-2019.3[${PYTHON_USEDEP}] - ) -" - -PATCHES=( - "${FILESDIR}"/${PN}-1.25.0_rc1-meson-pyproject.toml.patch - "${FILESDIR}"/${PN}-1.25.0-skip-python3.12-irrelevant-tests.patch - "${FILESDIR}"/${PN}-1.25.0-fix-long-double-check.patch -) - -distutils_enable_tests pytest - -python_prepare_all() { - append-flags -fno-strict-aliasing - - distutils-r1_python_prepare_all - - # TODO: Please drop once 1.25.0_rc1-meson-pyproject.toml.patch is gone - sed -i -e "s:version = \"2.0.0.dev0\":version = \"${PV}\":" pyproject.toml || die -} - -python_configure_all() { - DISTUTILS_ARGS=( - -Dblas=$(usev lapack cblas) - -Dlapack=$(usev lapack lapack) - ) -} - -python_test() { - local EPYTEST_DESELECT=( - # very disk-and-memory-hungry - lib/tests/test_io.py::test_large_zip - - # precision problems - core/tests/test_umath_accuracy.py::TestAccuracy::test_validate_transcendentals - - # runs the whole test suite recursively, that's just crazy - core/tests/test_mem_policy.py::test_new_policy - - typing/tests/test_typing.py - ) - - if [[ ${EPYTHON} == pypy3 ]]; then - EPYTEST_DESELECT+=( - # TODO: crashed - lib/tests/test_histograms.py::TestHistogram::test_big_arrays - ) - fi - - if use arm && [[ $(uname -m || echo "unknown") == "armv8l" ]] ; then - # Degenerate case. arm32 chroot on arm64. - # bug #774108 - EPYTEST_DESELECT+=( - core/tests/test_cpu_features.py::Test_ARM_Features::test_features - ) - fi - - if use x86 ; then - EPYTEST_DESELECT+=( - # https://github.com/numpy/numpy/issues/18388 - core/tests/test_umath.py::TestRemainder::test_float_remainder_overflow - # https://github.com/numpy/numpy/issues/18387 - random/tests/test_generator_mt19937.py::TestRandomDist::test_pareto - # more precision problems - core/tests/test_einsum.py::TestEinsum::test_einsum_sums_int16 - ) - fi - - if [[ $(tc-endian) == "big" ]] ; then - # https://github.com/numpy/numpy/issues/11831 and bug #707116 - EPYTEST_DESELECT+=( - 'f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[s1]' - 'f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[t1]' - 'f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[s1]' - 'f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[t1]' - ) - fi - - case "${ABI}" in - alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86) - EPYTEST_DESELECT+=( - # too large for 32-bit platforms - core/tests/test_ufunc.py::TestUfunc::test_identityless_reduction_huge_array - 'core/tests/test_multiarray.py::TestDot::test_huge_vectordot[float64]' - 'core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]' - lib/tests/test_histograms.py::TestHistogram::test_big_arrays - ) - ;; - *) - ;; - esac - - rm -rf numpy || die - epytest -n "$(makeopts_jobs)" --pyargs numpy -} - -python_install_all() { - local DOCS=( LICENSE.txt README.md THANKS.txt ) - distutils-r1_python_install_all -} diff --git a/dev-python/numpy/numpy-1.25.2.ebuild b/dev-python/numpy/numpy-1.25.2.ebuild new file mode 100644 index 000000000000..4bbf77f4dc72 --- /dev/null +++ b/dev-python/numpy/numpy-1.25.2.ebuild @@ -0,0 +1,178 @@ +# Copyright 1999-2023 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_{7,8,9,10,11} pypy3 ) +PYTHON_REQ_USE="threads(+)" +FORTRAN_NEEDED=lapack + +inherit distutils-r1 flag-o-matic fortran-2 multiprocessing pypi toolchain-funcs + +DESCRIPTION="Fast array and numerical python library" +HOMEPAGE=" + https://numpy.org/ + https://github.com/numpy/numpy/ + https://pypi.org/project/numpy/ +" +SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${PN}-1.25.2-patches.tar.xz" + +LICENSE="BSD" +SLOT="0" +IUSE="lapack" +if [[ ${PV} != *_rc* ]] ; then + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi + +RDEPEND=" + lapack? ( + >=virtual/cblas-3.8 + >=virtual/lapack-3.8 + ) +" +BDEPEND=" + ${RDEPEND} + >=dev-util/meson-1.1.0 + >=dev-python/cython-0.29.30[${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/pytest-xdist[${PYTHON_USEDEP}] + >=dev-python/pytz-2019.3[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${WORKDIR}"/${PN}-1.25.2-patches +) + +distutils_enable_tests pytest + +python_prepare_all() { + append-flags -fno-strict-aliasing + + distutils-r1_python_prepare_all + + # TODO: Please drop once 1.25.2-meson-pyproject.toml.patch is gone + sed -i -e "s:version = \"2.0.0.dev0\":version = \"${PV}\":" pyproject.toml || die +} + +python_configure_all() { + DISTUTILS_ARGS=( + -Dblas=$(usev lapack cblas) + -Dlapack=$(usev lapack lapack) + ) +} + +python_test() { + local EPYTEST_DESELECT=( + # Very disk-and-memory-hungry + lib/tests/test_io.py::TestSaveTxt::test_large_zip + lib/tests/test_io.py::TestSavezLoad::test_closing_fid + lib/tests/test_io.py::TestSavezLoad::test_closing_zipfile_after_load + + # Precision problems + core/tests/test_umath_accuracy.py::TestAccuracy::test_validate_transcendentals + + # Runs the whole test suite recursively, that's just crazy + core/tests/test_mem_policy.py::test_new_policy + + # XXX: I've no idea why this ends up being needed in deselect and not ignore + typing/tests/test_typing.py + # Uses huge amount of memory + core/tests/test_mem_overlap.py + ) + + if [[ ${EPYTHON} == python3.12 ]]; then + EPYTEST_DESELECT+=( + typing/tests/test_isfile.py::TestIsFile::test_isfile + tests/test_public_api.py::test_all_modules_are_expected_2 + tests/test_public_api.py::test_api_importable + + random/tests/test_extending.py + tests/test_ctypeslib.py + ) + + EPYTEST_IGNORE+=( + random/tests/test_extending.py + tests/test_ctypeslib.py + ) + fi + + if [[ ${EPYTHON} == pypy3 ]]; then + EPYTEST_DESELECT+=( + # TODO: crashed + lib/tests/test_histograms.py::TestHistogram::test_big_arrays + ) + fi + + if use arm && [[ $(uname -m || echo "unknown") == "armv8l" ]] ; then + # Degenerate case of arm32 chroot on arm64, bug #774108 + EPYTEST_DESELECT+=( + core/tests/test_cpu_features.py::Test_ARM_Features::test_features + ) + fi + + if use x86 ; then + EPYTEST_DESELECT+=( + # https://github.com/numpy/numpy/issues/18388 + core/tests/test_umath.py::TestRemainder::test_float_remainder_overflow + # https://github.com/numpy/numpy/issues/18387 + random/tests/test_generator_mt19937.py::TestRandomDist::test_pareto + # more precision problems + core/tests/test_einsum.py::TestEinsum::test_einsum_sums_int16 + ) + fi + + if use hppa ; then + EPYTEST_DESELECT+=( + # TODO: Get selectedrealkind updated! + # bug #907228 + # https://github.com/numpy/numpy/issues/3424 (https://github.com/numpy/numpy/issues/3424#issuecomment-412369029) + # https://github.com/numpy/numpy/pull/21785 + f2py/tests/test_kind.py::TestKind::test_real + f2py/tests/test_kind.py::TestKind::test_quad_precision + ) + fi + + if [[ $(tc-endian) == "big" ]] ; then + # https://github.com/numpy/numpy/issues/11831 and bug #707116 + EPYTEST_DESELECT+=( + 'f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[s1]' + 'f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[t1]' + 'f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f90[s1]' + 'f2py/tests/test_return_character.py::TestFReturnCharacter::test_all_f77[t1]' + f2py/tests/test_kind.py::TestKind::test_int + ) + fi + + case "${ABI}" in + alpha|arm|hppa|m68k|o32|ppc|s390|sh|sparc|x86) + EPYTEST_DESELECT+=( + # too large for 32-bit platforms + core/tests/test_ufunc.py::TestUfunc::test_identityless_reduction_huge_array + 'core/tests/test_multiarray.py::TestDot::test_huge_vectordot[float64]' + 'core/tests/test_multiarray.py::TestDot::test_huge_vectordot[complex128]' + lib/tests/test_histograms.py::TestHistogram::test_big_arrays + ) + ;; + *) + ;; + esac + + rm -rf numpy || die + epytest -n "$(makeopts_jobs)" --pyargs numpy +} + +python_install_all() { + local DOCS=( LICENSE.txt README.md THANKS.txt ) + distutils-r1_python_install_all +} diff --git a/dev-python/pikepdf/Manifest b/dev-python/pikepdf/Manifest index bd2a2f5977bd..0bc794a7ed8b 100644 --- a/dev-python/pikepdf/Manifest +++ b/dev-python/pikepdf/Manifest @@ -3,3 +3,4 @@ DIST pikepdf-8.1.1.tar.gz 1804397 BLAKE2B c9e990558e761f8597b5519b935a96503ae685 DIST pikepdf-8.2.0.tar.gz 1804342 BLAKE2B 4df7b873833b854291808176cca10844934d6ed475dbc330c6beca0fb7a31d4db0b2a6fd6dca10ef6f5345c49cb49980c2d46247d3efd16423209953b345f6ee SHA512 196ec76b3dc81dfcb51b4dab5be7c3598c33616f94bd4bc1d10fbfd6b46a1d761a530c3ed076e4f7cb37ea55e9c27f079e294be15222b99fca0525bd3a462ccc DIST pikepdf-8.2.1.tar.gz 1804043 BLAKE2B c8c80dd61cb2703eb7454b2a006a14760da538e0fef75053a75bd49aeb6a5233e9f72ac3d0acad9c02afe1973b90e4a9bed3af8482d34e9e3274aadac5d35cd0 SHA512 f4850f55897af0177bfbb492dffd5250378d01ef721c30b931ecf6c9f79808bcfad20d5335089f73677396737c4e98441e98c235b38539fe50f5200d14222988 DIST pikepdf-8.2.2.tar.gz 2847110 BLAKE2B 084c09f92f1ca133a6b39e14782c355369c714a17040c41c0dd13afe28577b9f6bcc10ed980b69acbe7c9e73dc85f11625669539d5b2e18991a86f5fa400ba16 SHA512 19dfabe0df425a3a519659f54e65ae6afdfea0df6f1b104ac2807d3cab49ac1b7dbf1c589b41dfabec4ffb95db593c788da7ed7c4dca76a515d90453e082f371 +DIST pikepdf-8.2.3.tar.gz 2847227 BLAKE2B 89003b2cc8b9afbf1eaa255bc6c2c1a6b254239a5dd7584393b5350933c35a129c14579a0f2476197a9ce9eda5ae4177a46c88b8bc0ea78f9bda96de614cb18a SHA512 824e35ba90523f4831a89d91a1fc9b43ecba4b82848f28bcec3ed10a078a4860975262cc5f671ee34131bbcb93242e3a4de4d56e51297d823d997632e0d43f00 diff --git a/dev-python/pikepdf/pikepdf-8.2.3.ebuild b/dev-python/pikepdf/pikepdf-8.2.3.ebuild new file mode 100644 index 000000000000..844a826730da --- /dev/null +++ b/dev-python/pikepdf/pikepdf-8.2.3.ebuild @@ -0,0 +1,60 @@ +# 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} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python library to work with pdf files based on qpdf" +HOMEPAGE=" + https://github.com/pikepdf/pikepdf/ + https://pypi.org/project/pikepdf/ +" + +LICENSE="MPL-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +DEPEND=" + >=app-text/qpdf-11.1.1:0= +" +RDEPEND=" + ${DEPEND} + dev-python/deprecation[${PYTHON_USEDEP}] + >=dev-python/lxml-4.0[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + >=dev-python/pillow-9.0[${PYTHON_USEDEP}] +" +BDEPEND=" + >=dev-python/pybind11-2.10.1[${PYTHON_USEDEP}] + >=dev-python/setuptools-scm-7.0.5[${PYTHON_USEDEP}] + test? ( + >=dev-python/attrs-20.2.0[${PYTHON_USEDEP}] + >=dev-python/hypothesis-6.36[${PYTHON_USEDEP}] + >=dev-python/numpy-1.21.0[${PYTHON_USEDEP}] + >=dev-python/pillow-5.0.0[${PYTHON_USEDEP},jpeg,lcms,tiff] + >=dev-python/psutil-5.9[${PYTHON_USEDEP}] + >=dev-python/pytest-timeout-2.1.0[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.8.1[${PYTHON_USEDEP}] + >=dev-python/python-xmp-toolkit-2.0.1[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.{8..10}) + ) +" + +distutils_enable_tests pytest + +EPYTEST_DESELECT=( + # fragile to system load + tests/test_image_access.py::test_random_image +) + +src_prepare() { + sed -e '/-n auto/d' -i pyproject.toml || die + distutils-r1_src_prepare +} diff --git a/dev-python/responses/Manifest b/dev-python/responses/Manifest index 37b9ad982360..86e37f4b82a0 100644 --- a/dev-python/responses/Manifest +++ b/dev-python/responses/Manifest @@ -1,2 +1,3 @@ DIST responses-0.23.1.tar.gz 72966 BLAKE2B e75db65ab98ebf7773c469dee5486b52b6f5c1f39d847c6f38a65e664c244937716c792cf009c750019043845b95c11ea38f99d68137899ef2ef48e60edc0c2a SHA512 2c05ac5c4ccca351940d3821b0830cee366cd7c9637f1e4c1e6b40c72ed2168a1036de634f03bfaaa2f7270e3825f6d9e8d31fc7a16f321f1de1cc64255454a1 DIST responses-0.23.2.tar.gz 73678 BLAKE2B b49d04c9be0844c948ab7a8d8b8b81da152d4b7c47330937846262c45db6d562b107d7a864a07cc77d568491a8dafdd873fc6484ebf04d50d99441838474ecfb SHA512 f18f7b747871a4bffba59787b2c84d26799bed2f949c0e977fbd2ef6341425957bb27cc2beb067f75892a4b9a5af3d40f28083482950a4a6e29144fc1d529cff +DIST responses-0.23.3.tar.gz 73737 BLAKE2B e246dc09832f996b085f84b4b90d58709dc283a51e6de6f67a50096f1550b9e11f2e8f809043e366d7dc1140511bc9be16aeeaa5218da6fc05b1b60a1c924800 SHA512 334beb4a0cdabce2bedd1e336c4af04a38818b8b90c9d0ffbbf3445f72f8c57cc03278e832c6442f9ecfec24723c567bfba76ad25c45cf2924e42d5108c51c7a diff --git a/dev-python/responses/responses-0.23.3.ebuild b/dev-python/responses/responses-0.23.3.ebuild new file mode 100644 index 000000000000..fa8dec3f356b --- /dev/null +++ b/dev-python/responses/responses-0.23.3.ebuild @@ -0,0 +1,51 @@ +# 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} pypy3 ) + +inherit distutils-r1 pypi + +DESCRIPTION="Utility for mocking out the Python Requests library" +HOMEPAGE=" + https://pypi.org/project/responses/ + https://github.com/getsentry/responses/ +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +# tomli backend is optional now, with pyyaml being the new default. +# However, keeping it unconditional here for backwards compatibility. +RDEPEND=" + dev-python/pyyaml[${PYTHON_USEDEP}] + =dev-python/requests-2.30.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + dev-python/tomli[${PYTHON_USEDEP}] + ' 3.{8..10}) + dev-python/tomli-w[${PYTHON_USEDEP}] + =dev-python/urllib3-1.25.10[${PYTHON_USEDEP}] +" + +BDEPEND=" + test? ( + dev-python/pytest-httpserver[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + # remove unnecessary RDEP on type stubs + sed -i -e '/types-/d' setup.py || die +} + +python_test() { + epytest -p no:localserver +} diff --git a/dev-python/sentry-sdk/Manifest b/dev-python/sentry-sdk/Manifest index 126b8ce11c08..bedcf49b5031 100644 --- a/dev-python/sentry-sdk/Manifest +++ b/dev-python/sentry-sdk/Manifest @@ -3,3 +3,4 @@ DIST sentry-python-1.27.1.gh.tar.gz 376598 BLAKE2B 4ad5986af5e252cf501523fcafdaa DIST sentry-python-1.28.0.gh.tar.gz 378626 BLAKE2B 826257c5cae7d1f58753d4a84fb7aeb0fb9d52690a660615590cdd34c7d1afe1e256291d9434f904644292d6ab379fcad03cc7d8b1072e3b41b03fb5e4961db6 SHA512 83ceecbf89f197c03b0a402508c677eed4c6adb36ff826579513f79dd36c666e47267c7b6e8f4eced91fc12b18a0de3c1a24c89c6fe6e77c603ace535612542c DIST sentry-python-1.28.1.gh.tar.gz 379559 BLAKE2B 715f6a1756de85f7c041098f2bea94e02e61b433f55cbccca2b23455ee1c43312cae8a468443877113eb2ae2da8515f07b2aa08a29358ef1fd6b564bcc8bc329 SHA512 28ef182f4f7945c5499d7206a19a8ac90440031785bd4065259dcaefc9e7cd7ddad423ec61db954fc3936ed3fccec9e4bc136bb278407704579f3b97f4ff4aa6 DIST sentry-python-1.29.0.gh.tar.gz 387456 BLAKE2B 5ebd9901a2e60cfd4c688c32e045e1a05d227608eaecfb3de3049cf608d631fc70aa5fb7dba9085b4ba1bc5fe648f52d1f1a549aa67a39ddbe3e7f67d4f38d73 SHA512 a08da9ed5e8107a6f364868922aa8eadebbef62acdd51407684861280053d63a766b3e7bd689a80ea8083ea28ac30140b46b3de163490edf62b50717086fc59d +DIST sentry-python-1.29.2.gh.tar.gz 382177 BLAKE2B 1fa42e53ed1115fb50b3a5d4a49ca7f851cc487ecb638b7add2d261ed207c9c8d4ccc1ca20760516e82e5a5cd52b1582271b81e52977b87944b0df55365a9800 SHA512 56fd53f3a43acc1c2fe5bd6f44c7a5a63b4ab944919fa5a4539239230c3c64eb75e75414e26809d12bcb601a779b661d6dec73dededa07e10f120438ea3ad5c7 diff --git a/dev-python/sentry-sdk/sentry-sdk-1.29.2.ebuild b/dev-python/sentry-sdk/sentry-sdk-1.29.2.ebuild new file mode 100644 index 000000000000..3161d9dcc8f6 --- /dev/null +++ b/dev-python/sentry-sdk/sentry-sdk-1.29.2.ebuild @@ -0,0 +1,118 @@ +# 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 + +MY_P=sentry-python-${PV} +DESCRIPTION="Python client for Sentry" +HOMEPAGE=" + https://sentry.io/ + https://github.com/getsentry/sentry-python/ + https://pypi.org/project/sentry-sdk/ +" +SRC_URI=" + https://github.com/getsentry/sentry-python/archive/${PV}.tar.gz + -> ${MY_P}.gh.tar.gz +" +S=${WORKDIR}/${MY_P} + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~sparc ~x86" + +RDEPEND=" + dev-python/urllib3[${PYTHON_USEDEP}] + dev-python/certifi[${PYTHON_USEDEP}] +" +BDEPEND=" + test? ( + dev-python/asttokens[${PYTHON_USEDEP}] + dev-python/django[${PYTHON_USEDEP}] + dev-python/executing[${PYTHON_USEDEP}] + dev-python/fakeredis[${PYTHON_USEDEP}] + dev-python/flask-login[${PYTHON_USEDEP}] + dev-python/jsonschema[${PYTHON_USEDEP}] + dev-python/pyrsistent[${PYTHON_USEDEP}] + dev-python/pytest-aiohttp[${PYTHON_USEDEP}] + dev-python/pytest-django[${PYTHON_USEDEP}] + dev-python/pytest-forked[${PYTHON_USEDEP}] + dev-python/pytest-localserver[${PYTHON_USEDEP}] + dev-python/python-socks[${PYTHON_USEDEP}] + dev-python/responses[${PYTHON_USEDEP}] + dev-python/werkzeug[${PYTHON_USEDEP}] + dev-python/zope-event[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +PATCHES=( + "${FILESDIR}/sentry-sdk-1.21.0-ignore-warnings.patch" +) + +EPYTEST_IGNORE=( + # tests require Internet access + tests/integrations/httpx/test_httpx.py + tests/integrations/requests/test_requests.py + tests/integrations/stdlib/test_httplib.py + tests/integrations/flask/test_flask.py + tests/integrations/django/test_basic.py + tests/integrations/socket/test_socket.py + # wtf is it supposed to do?! + tests/integrations/gcp/test_gcp.py + # broken by rq-1.10.1 (optional dep) + tests/integrations/rq/test_rq.py + # fastapi is not packaged + tests/integrations/asgi/test_fastapi.py + # TODO + tests/integrations/bottle + # TODO: causes breakage in other tests + tests/integrations/starlette + # TODO + tests/integrations/tornado + # requires mockupdb + tests/integrations/pymongo +) + +EPYTEST_DESELECT=( + # hangs + 'tests/test_transport.py::test_transport_works' + # TODO + 'tests/test_basics.py::test_auto_enabling_integrations_catches_import_error' + tests/test_client.py::test_databag_depth_stripping + tests/test_client.py::test_databag_string_stripping + tests/test_client.py::test_databag_breadth_stripping + tests/integrations/asgi/test_asgi.py::test_auto_session_tracking_with_aggregates + tests/integrations/asgi/test_asgi.py::test_websocket + tests/integrations/aiohttp/test_aiohttp.py::test_transaction_style + tests/integrations/aiohttp/test_aiohttp.py::test_traces_sampler_gets_request_object_in_sampling_context + tests/integrations/django/test_data_scrubbing.py::test_scrub_django_custom_session_cookies_filtered + # incompatible version? + tests/integrations/falcon/test_falcon.py + tests/integrations/sqlalchemy/test_sqlalchemy.py::test_large_event_not_truncated + # test_circular_references: apparently fragile + 'tests/integrations/threading/test_threading.py::test_circular_references' + # test for new feature, fails with IndexError + tests/integrations/wsgi/test_wsgi.py::test_session_mode_defaults_to_request_mode_in_wsgi_handler + # TODO + tests/integrations/wsgi/test_wsgi.py::test_auto_session_tracking_with_aggregates + tests/integrations/wsgi/test_wsgi.py::test_profile_sent_when_profiling_enabled + tests/test_profiler.py::test_sample_buffer + tests/test_profiler.py::test_thread_scheduler_takes_first_samples + tests/test_profiler.py::test_thread_scheduler_takes_more_samples + tests/test_profiler.py::test_thread_scheduler_single_background_thread + # broken with py3.11, *shrug* + tests/test_profiler.py::test_extract_stack_with_max_depth + # TODO + tests/integrations/sqlalchemy/test_sqlalchemy.py::test_long_sql_query_preserved + tests/integrations/sqlalchemy/test_sqlalchemy.py::test_engine_name_not_string + tests/test_scrubber.py::test_breadcrumb_extra_scrubbing + tests/test_scrubber.py::test_span_data_scrubbing + # this is not even funny + tests/integrations/modules/test_modules.py::test_installed_modules +) diff --git a/dev-python/sqlglot/Manifest b/dev-python/sqlglot/Manifest index b7dcfdb891a7..98d5c01041ef 100644 --- a/dev-python/sqlglot/Manifest +++ b/dev-python/sqlglot/Manifest @@ -1,2 +1,2 @@ -DIST sqlglot-17.8.4.tar.gz 8373260 BLAKE2B e3b67c940eb608a25705fd280c0165ad7f37db1fcda2f6bc55029af2ad673a789901fbb2e6af72b54d15b75bc84827afadb00cc965efdc3323587278a68f6cf5 SHA512 c1717e7e857ddb9ff700c739b76cd3714e57ae0f7b620593b4fdce53cbf8e37d39882fac1308c3277a236f695292ae1c15541e474d28bdd43d889c2756b172df DIST sqlglot-17.8.6.tar.gz 8382262 BLAKE2B 70c14c50cbd673122e0560d41b26076ff2d22c75d611cb751ae3df9e5f98e8392440144edcb38bde272f5a95ac85a48cb85358a75dd9b53a1b72e8133964c15c SHA512 839d10ef3d589dd258a5297dc21846e0aafd145892e4c2650aa12ea16064da1dceacd9e1f9cbd6f804b8590435db61066cb01a92b3a1d88a69b1aa8dffaeb15b +DIST sqlglot-17.9.0.tar.gz 8382270 BLAKE2B 86bd687906e7e2fca631021a0d77fbe91beb931ead70dd6d7b5a7255a5302412bede8b1e5abdc4e8ffb610640c3e3597ee1d78cbf6fe3d4e76947572bbec26ad SHA512 52b1eeece3854b9a0ed839a0f0f08af572d9e445a84d241af481bb104b49cba5a5af6b02a671343d69b4c2233f9e3f4c355969307e86d91544d32a94fdf4a5b4 diff --git a/dev-python/sqlglot/sqlglot-17.8.4.ebuild b/dev-python/sqlglot/sqlglot-17.8.4.ebuild deleted file mode 100644 index 8a025502a820..000000000000 --- a/dev-python/sqlglot/sqlglot-17.8.4.ebuild +++ /dev/null @@ -1,36 +0,0 @@ -# Copyright 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 optfeature - -DESCRIPTION="An easily customizable SQL parser and transpiler" -HOMEPAGE=" - https://sqlglot.com - https://github.com/tobymao/sqlglot/ - https://pypi.org/project/sqlglot/ -" - -LICENSE="MIT" -SLOT="0" -KEYWORDS="~amd64 ~x86" - -EPYTEST_IGNORE=( - # Tests require pyspark or duckdb which aren't in the tree. - # Pandas would be a requirement normally, but it gets ignored by proxy. - "tests/dataframe/integration/test_dataframe.py" - "tests/dataframe/integration/test_grouped_data.py" - "tests/dataframe/integration/test_session.py" - "tests/test_executor.py" - "tests/test_optimizer.py" -) - -distutils_enable_tests pytest - -pkg_postinst() { - optfeature "simplifying timedelta expressions" dev-python/dateutil -} diff --git a/dev-python/sqlglot/sqlglot-17.9.0.ebuild b/dev-python/sqlglot/sqlglot-17.9.0.ebuild new file mode 100644 index 000000000000..0120736dda66 --- /dev/null +++ b/dev-python/sqlglot/sqlglot-17.9.0.ebuild @@ -0,0 +1,36 @@ +# Copyright 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 optfeature + +DESCRIPTION="An easily customizable SQL parser and transpiler" +HOMEPAGE=" + https://sqlglot.com/ + https://github.com/tobymao/sqlglot/ + https://pypi.org/project/sqlglot/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" + +EPYTEST_IGNORE=( + # Tests require pyspark or duckdb which aren't in the tree. + # Pandas would be a requirement normally, but it gets ignored by proxy. + "tests/dataframe/integration/test_dataframe.py" + "tests/dataframe/integration/test_grouped_data.py" + "tests/dataframe/integration/test_session.py" + "tests/test_executor.py" + "tests/test_optimizer.py" +) + +distutils_enable_tests pytest + +pkg_postinst() { + optfeature "simplifying timedelta expressions" dev-python/python-dateutil +} -- cgit v1.3.1