diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-12-02 02:07:07 +0000 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-12-02 02:07:07 +0000 |
commit | d4f65848c7ecabb56e2f93889cbd20078cd347f7 (patch) | |
tree | 180032f5afeb689db6a270d612f3e3364ed8fd2b /dev-python | |
parent | c635a4b7ddb6105bfc6fef130b188a087726677b (diff) |
gentoo auto-resync : 02:12:2024 - 02:07:07
Diffstat (limited to 'dev-python')
32 files changed, 1405 insertions, 8 deletions
diff --git a/dev-python/Manifest.gz b/dev-python/Manifest.gz Binary files differindex e13f196faa65..93eda8525030 100644 --- a/dev-python/Manifest.gz +++ b/dev-python/Manifest.gz diff --git a/dev-python/aiohappyeyeballs/Manifest b/dev-python/aiohappyeyeballs/Manifest index 750ae8658039..0775884095b1 100644 --- a/dev-python/aiohappyeyeballs/Manifest +++ b/dev-python/aiohappyeyeballs/Manifest @@ -1,3 +1,5 @@ DIST aiohappyeyeballs-2.4.3.gh.tar.gz 60766 BLAKE2B 5338d9bc4ee714a516c027db2753c885ae76c3418dbfac3a7ac7447e3a868649237c9221d719b3ddb6d9e67f1193533a1c8b2a80fcd3a45bf6046ed434e09859 SHA512 e8ec696c6e5988f86011a6fe65461e97c68ff466568c5071dd6cd62d0b5cb2f17b61bba934b6402bdfc964a8003e5f172b73240fbcfce71fc85afb42915a6080 +DIST aiohappyeyeballs-2.4.4.gh.tar.gz 61087 BLAKE2B 7e7eeaa8f8f589e5d081dc0218ee8aff0cc7fb81cdb59d42355fb42f2586c3c1abe82ce4bb5afe40f06a5978dc1b07d3257c9cfabd2013e4f8ff63ff768326e0 SHA512 b822aab388d5b32aae58a2f5b7f8e9d0574962487e64ed0d7040767daf8684680272ba43b2c8d7feaf78649465510eb003b3e10c45d4417832123d7ee10ea5d0 EBUILD aiohappyeyeballs-2.4.3.ebuild 772 BLAKE2B 3e87d9e472bf431c861c82fcb2c84e366f2a2736ec43b46466f8aaf068ab5321df9dbac48af2a250461b77bc67a233b6935847072674619b8020086eea7cde8f SHA512 349542ee546e02d28b1bf1bcc0b0592e0106dd1603794008f121b15f63fbbd70552fdbf23067dd1799aa4f27a31c9082a471453872f7891c0a0af08d4bc31439 +EBUILD aiohappyeyeballs-2.4.4.ebuild 780 BLAKE2B b9d02ece68dcc1ecd7d1d7c36759aef29d1648ee0624ee07128416e6d56f891f56af93b3c92cd6ff7a8f9bc800fda68f919fc9e580cb10aab033131c8b8bd08f SHA512 9fb296ab52a193f4c02d15f1e619e8b1573b9ce44d82d02875f569b48db980bf462c3a7fc8a45bdde240bf9fad2ffb2a52bc1653722c593674d9d13a67cb96c2 MISC metadata.xml 387 BLAKE2B c739dc88d077c51dae10eb7aaa84091c6c7904a782ee3eabb12b6167c7e4ae8528b6464612f891eef5f12add728caa66fd30cd93c3b13e022cedae267c1e9f40 SHA512 65973b766dbcbd20b8c25e8e76c4d662bf5478d6c860f8cfd460be8795fbd141c58fed586a678506360af8ac013ec4c2292cc2e1092a5bbd8a3c54160adadb94 diff --git a/dev-python/aiohappyeyeballs/aiohappyeyeballs-2.4.4.ebuild b/dev-python/aiohappyeyeballs/aiohappyeyeballs-2.4.4.ebuild new file mode 100644 index 000000000000..0aa0cdf41541 --- /dev/null +++ b/dev-python/aiohappyeyeballs/aiohappyeyeballs-2.4.4.ebuild @@ -0,0 +1,36 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=poetry +PYTHON_COMPAT=( pypy3 python3_{10..13} ) + +inherit distutils-r1 + +DESCRIPTION="Happy Eyeballs for pre-resolved hosts" +HOMEPAGE=" + https://pypi.org/project/aiohappyeyeballs/ + https://github.com/aio-libs/aiohappyeyeballs/ +" +SRC_URI=" + https://github.com/aio-libs/aiohappyeyeballs/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="PSF-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +BDEPEND=" + test? ( + >=dev-python/pytest-asyncio-0.23.2[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p asyncio -o addopts= +} diff --git a/dev-python/matplotlib/Manifest b/dev-python/matplotlib/Manifest index 5cb26f0026bf..6d7880f0ed19 100644 --- a/dev-python/matplotlib/Manifest +++ b/dev-python/matplotlib/Manifest @@ -1,12 +1,15 @@ AUX matplotlib-3.10.0-test.patch 9677 BLAKE2B d4c4f6611dba8eff0395d1c820cbfa256773b6f3b17bfda9da50892a988a60dd2af4ebdbadf1e6a6334d1a3e99fedc0da9f4027a66161583cc3dc397ebf02b57 SHA512 8cdb1f2383329fd67fd936dcd8e396fcd0e965573bbf6460cab182249352cfd747d20d4e0333688426a548b8fccc6f737ea3b575361fc137b712b21c0990b524 AUX matplotlib-3.9.0-test.patch 10334 BLAKE2B bebd372120c38577ad3a21f99cfb6989fdda774975622e6b3699a73505fc1e350cb76188d0c173bbd0bf94bfc787916c1732cdc2a7998322d8d15aba85dc16f8 SHA512 c49f4f3c3c917a12887872373ea0f817c12ba780d1da6c65edfcf8b7ffdef45d35d1b3f186bd36d7684f8ba30fe034b512fcae42b5adc8c4e5dec2e9d8685a01 +AUX matplotlib-3.9.3-test.patch 10361 BLAKE2B b2ba41ee8ee05ec3a8d5cbf9e2805292475fd236736c1f47bca0dd4a437a4c3aff67ab2f394337f4056eb6db662517f1b697799463bd9f30da87b413590a7504 SHA512 a4b9be1f7f6cdad766d776eb0036b44952ba74ca5f7fab9676ece143f956f65e1f80cae3ae6c62fba51918f452673243213ae02aea53de28c18023cdd60ba1b4 DIST freetype-2.6.1.tar.gz 2302080 BLAKE2B 6a5fb98e5fa6cf4b7d7533ad44e364227d8c2f7dded4c552d6e22e204c32b7858f20d41d1e809ecdad6e5353d6cec81bea0e0b06a4533363a41ecab83ce3f7ca SHA512 ff2daed64d712737085924c50e75862fafbcbb24eef6d72dac9eaae63bb656d7245397fd828f5d3e47ac847f7ff83d73dedfdd61fde1f7d6e0f0cdeb49bcf83b DIST matplotlib-3.10.0rc1.tar.gz 36682106 BLAKE2B c6948deb4749a08fa84e0a72d4c6877cfa561360c5475a9d96c56bad906b94c59f35286587f5af768e0f7e2bb5d5e30101c66da3725ac81f5981ae298089d1a8 SHA512 8ccef930c094e1d0fdb61236b968dcc556b991fd53a8171c84e19fba08e9a5d67dc62f24de832d50e805ddf040dd58828799c6046b355f17dd532fe4d23c4515 DIST matplotlib-3.9.0.tar.gz 36069890 BLAKE2B 02ddb25901b5a93a8daf6f26c98b92d5e35abe2e98783b039928338abb1d628adbf3fd4786c08cb1610bf405cb558ca31fc12dbde77ec5f2a633143c7ea659a1 SHA512 135ee2f97c26cb60479cc10bf8a833384c393993d8a905ab869f4c73b91a50ffa596f84ce349af7f1a0b08a21e1906394cf6a702bb567a9c3999d40f54974326 DIST matplotlib-3.9.1.tar.gz 36084124 BLAKE2B b7cc9e219664849411cc3133afbdb676f956c943f92d447ba5cca0467da56d1575796fe1046e7503e6d7c4dfdfad6e5181404f331ed7ac1397c8c61f4a30bd23 SHA512 a1d48c42a5f4f04b57e34d25df842917e6380b8d6b6d1018c9b630cbbea4619b1d75729a218a6f52b63d4a61c2204bb26ad8f741566f84e41ca73190e419f672 DIST matplotlib-3.9.2.tar.gz 36088381 BLAKE2B c84d08b7afa1f0460b5b57447481ef90f22380c02d20227c3a45b6f603032a11359b223397f18c8dc9111ad36fbd7510e2d5496502b3202e3074ddf8e8258bb7 SHA512 4b7437eeb085915a90db64600d0e6c59501ea1513d07b8298a159a763461ef6947a0cb332dcde1a5f0996840320ca7dd1d972d7514ff6f87b036fc631e79885f +DIST matplotlib-3.9.3.tar.gz 36113438 BLAKE2B 6d51d11e04a71e2a01eaa9b76c072633cbbcb393b91be069f0db2f8a523711d244c93f7a4a9e0f8bc50b14928567d22865f5091a39000c7d7160fc258e21cab5 SHA512 f42a1bc8febf88369b5164879f32bc7967fe0930e42d12395722ac3d2c10a8c59ac9419b68c4bcb499c7df26dfc429dafb672b61f85aee971dd270b0e29742ed EBUILD matplotlib-3.10.0_rc1.ebuild 10975 BLAKE2B e882358612e88eb9779ebbc332305779d5e3c2d29043f74cdf8f36c6887e80fc81e343538960a6ba493d0a6570d2051fec480c4e2dc8f51cda7a26c0ac063f25 SHA512 36923d01bf103161586fb295f1aa72da04c4e6a09e538f67b472893101e538531c709cc42bc4bc6e92dfbe991cdba9f4a8bb002fe0081c34bb9d07e71c16d91e EBUILD matplotlib-3.9.0-r1.ebuild 9776 BLAKE2B 9f05ba95f89bb02c04d3338ca750b4b404a531e78c287208b7ecd9f04525adc23593c3b9f5e981d5e23357bf236d6487185cff354e7c80825d1342ff4720ec37 SHA512 120ae193b6b9b16dcd554cd818b52a80f529c6e72e7b67752707fc70407d6b7dc18908ab01ce81ee6d192063dd8bbd4165e17da76200310b74ff9df5ecced82e EBUILD matplotlib-3.9.1.ebuild 9810 BLAKE2B e7832213774d7e35507dec104a661c363066c7e6e6dff6a9fa716bbd13901bae1f70875cab4fc24729994a9b0ac6977d7a92200f9883cba841febce7228bbbb0 SHA512 68934eec459cff252d96985bbe895b26a88ec89d1b91d6b7d1d0c520c7f517e19ca19b0878c03062b15d3dfdbcef41dc0e3b41ccc0b2ab2edded12614cd8cc30 EBUILD matplotlib-3.9.2.ebuild 9808 BLAKE2B 852614b4db23c8eebbeece82fae15bd681a1cbe5ea637e2760fe399a87f0010d9c5c50524ee8f5dc3fccfd6de1f72ee5963798c6ec8ed6c2ddea27c37bb310ce SHA512 ff8dfb1e20bbd4b7fd2dffb880099c2e14b087229bd3fc7b1b0ca1c5108f72e52735f76808cc6408239e96d71c14801a534133ce60da61d25337eee09fdb255c +EBUILD matplotlib-3.9.3.ebuild 9813 BLAKE2B 19e86821ae3c3c71e6da0dca2ba8c9ee4b02b529601eca8276e4bcea88d9a0f0e9253e682eedd47048930dd7d29db60ccd0d76db6f46af0a6d0282960fda4158 SHA512 4262c5032f5eaea1449c2b6e1801a425443e877dde314a8bf6b5e3563473672827728779e374617b519cc2132f6143175be3539fe26577a554dede90aa18bcb9 MISC metadata.xml 1074 BLAKE2B 1d7dce116e09939378872c2eaf5153948b7e934626110eb4899d0dfc2781429522328f1c4efd2c40f829da64e19bed8f9fbd1b8907a6e74a5fd54587c1d29e5b SHA512 e344bfc813e09c24a8edfa9c062eb2a6c44535559370f508a27a2de20c6ab92aeb48bc8daf9c357178e513eb2474a33782e4098c0f3bcbb84b11f7388ef1a704 diff --git a/dev-python/matplotlib/files/matplotlib-3.9.3-test.patch b/dev-python/matplotlib/files/matplotlib-3.9.3-test.patch new file mode 100644 index 000000000000..62461c655d88 --- /dev/null +++ b/dev-python/matplotlib/files/matplotlib-3.9.3-test.patch @@ -0,0 +1,249 @@ +diff --git a/lib/matplotlib/tests/test_arrow_patches.py b/lib/matplotlib/tests/test_arrow_patches.py +index 254b86cb54..1f93b1a476 100644 +--- a/lib/matplotlib/tests/test_arrow_patches.py ++++ b/lib/matplotlib/tests/test_arrow_patches.py +@@ -68,7 +68,7 @@ def __prepare_fancyarrow_dpi_cor_test(): + + + @image_comparison(['fancyarrow_dpi_cor_100dpi.png'], remove_text=True, +- tol=0 if platform.machine() == 'x86_64' else 0.02, ++ tol=0.015 if platform.machine() == 'x86_64' else 0.02, + savefig_kwarg=dict(dpi=100)) + def test_fancyarrow_dpi_cor_100dpi(): + """ +@@ -83,7 +83,7 @@ def test_fancyarrow_dpi_cor_100dpi(): + + + @image_comparison(['fancyarrow_dpi_cor_200dpi.png'], remove_text=True, +- tol=0 if platform.machine() == 'x86_64' else 0.02, ++ tol=0.018 if platform.machine() == 'x86_64' else 0.02, + savefig_kwarg=dict(dpi=200)) + def test_fancyarrow_dpi_cor_200dpi(): + """ +@@ -116,7 +116,7 @@ def test_fancyarrow_dash(): + + + @image_comparison(['arrow_styles.png'], style='mpl20', remove_text=True, +- tol=0 if platform.machine() == 'x86_64' else 0.02) ++ tol=0.005 if platform.machine() == 'x86_64' else 0.02) + def test_arrow_styles(): + styles = mpatches.ArrowStyle.get_styles() + +diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py +index e99ef129eb..73ed9bd974 100644 +--- a/lib/matplotlib/tests/test_axes.py ++++ b/lib/matplotlib/tests/test_axes.py +@@ -1186,7 +1186,7 @@ def test_imshow(): + + @image_comparison( + ['imshow_clip'], style='mpl20', +- tol=1.24 if platform.machine() in ('aarch64', 'arm64', 'ppc64le', 's390x') else 0) ++ tol=1.24) + def test_imshow_clip(): + # As originally reported by Gellule Xg <gellule.xg@free.fr> + # use former defaults to match existing baseline image +@@ -2570,7 +2570,7 @@ def test_contour_hatching(): + + @image_comparison( + ['contour_colorbar'], style='mpl20', +- tol=0.54 if platform.machine() in ('aarch64', 'arm64', 'ppc64le', 's390x') else 0) ++ tol=0.54) + def test_contour_colorbar(): + x, y, z = contour_dat() + +@@ -4931,7 +4931,7 @@ def test_vertex_markers(): + + + @image_comparison(['vline_hline_zorder', 'errorbar_zorder'], +- tol=0 if platform.machine() == 'x86_64' else 0.026) ++ tol=0.015 if platform.machine() == 'x86_64' else 0.026) + def test_eb_line_zorder(): + x = list(range(10)) + +@@ -8861,7 +8861,7 @@ def test_zorder_and_explicit_rasterization(): + + + @image_comparison(["preset_clip_paths.png"], remove_text=True, style="mpl20", +- tol=0.027 if platform.machine() == "arm64" else 0) ++ tol=0.027 if platform.machine() == "arm64" else 0.02) + def test_preset_clip_paths(): + fig, ax = plt.subplots() + +diff --git a/lib/matplotlib/tests/test_colorbar.py b/lib/matplotlib/tests/test_colorbar.py +index 35911afc79..852075c78d 100644 +--- a/lib/matplotlib/tests/test_colorbar.py ++++ b/lib/matplotlib/tests/test_colorbar.py +@@ -235,7 +235,7 @@ def test_colorbar_single_ax_panchor_east(constrained): + + + @image_comparison(['contour_colorbar.png'], remove_text=True, +- tol=0 if platform.machine() == 'x86_64' else 0.054) ++ tol=0.01 if platform.machine() == 'x86_64' else 0.054) + def test_contour_colorbar(): + fig, ax = plt.subplots(figsize=(4, 2)) + data = np.arange(1200).reshape(30, 40) - 500 +diff --git a/lib/matplotlib/tests/test_constrainedlayout.py b/lib/matplotlib/tests/test_constrainedlayout.py +index 4dc4d9501e..015e46cbe4 100644 +--- a/lib/matplotlib/tests/test_constrainedlayout.py ++++ b/lib/matplotlib/tests/test_constrainedlayout.py +@@ -655,11 +655,11 @@ def test_compressed1(): + fig.draw_without_rendering() + + pos = axs[0, 0].get_position() +- np.testing.assert_allclose(pos.x0, 0.06195, atol=1e-3) +- np.testing.assert_allclose(pos.y1, 0.8537, atol=1e-3) ++ np.testing.assert_allclose(pos.x0, 0.06195, atol=2e-3) ++ np.testing.assert_allclose(pos.y1, 0.8537, atol=2e-3) + pos = axs[1, 2].get_position() +- np.testing.assert_allclose(pos.x1, 0.8618, atol=1e-3) +- np.testing.assert_allclose(pos.y0, 0.1934, atol=1e-3) ++ np.testing.assert_allclose(pos.x1, 0.8618, atol=2e-3) ++ np.testing.assert_allclose(pos.y0, 0.1934, atol=2e-3) + + + @pytest.mark.parametrize('arg, state', [ +diff --git a/lib/matplotlib/tests/test_contour.py b/lib/matplotlib/tests/test_contour.py +index a3e00c30ce..7366dc8b39 100644 +--- a/lib/matplotlib/tests/test_contour.py ++++ b/lib/matplotlib/tests/test_contour.py +@@ -450,8 +450,7 @@ def test_contourf_log_extension(split_collections): + @pytest.mark.parametrize("split_collections", [False, True]) + @image_comparison( + ['contour_addlines.png'], remove_text=True, style='mpl20', +- tol=0.15 if platform.machine() in ('aarch64', 'arm64', 'ppc64le', 's390x') +- else 0.03) ++ tol=0.15) + # tolerance is because image changed minutely when tick finding on + # colorbars was cleaned up... + def test_contour_addlines(split_collections): +diff --git a/lib/matplotlib/tests/test_figure.py b/lib/matplotlib/tests/test_figure.py +index 6e6daa7706..7492fded94 100644 +--- a/lib/matplotlib/tests/test_figure.py ++++ b/lib/matplotlib/tests/test_figure.py +@@ -26,7 +26,7 @@ import matplotlib.dates as mdates + + + @image_comparison(['figure_align_labels'], extensions=['png', 'svg'], +- tol=0 if platform.machine() == 'x86_64' else 0.01) ++ tol=0.02) + def test_align_labels(): + fig = plt.figure(layout='tight') + gs = gridspec.GridSpec(3, 3) +@@ -68,7 +68,7 @@ def test_align_labels(): + + @image_comparison(['figure_align_titles_tight.png', + 'figure_align_titles_constrained.png'], +- tol=0 if platform.machine() == 'x86_64' else 0.022, ++ tol=0.01 if platform.machine() == 'x86_64' else 0.022, + style='mpl20') + def test_align_titles(): + for layout in ['tight', 'constrained']: +diff --git a/lib/matplotlib/tests/test_image.py b/lib/matplotlib/tests/test_image.py +index 0c032fa536..5e417881e9 100644 +--- a/lib/matplotlib/tests/test_image.py ++++ b/lib/matplotlib/tests/test_image.py +@@ -1417,7 +1417,7 @@ def test_nonuniform_and_pcolor(): + + @image_comparison( + ['rgba_antialias.png'], style='mpl20', remove_text=True, +- tol=0 if platform.machine() == 'x86_64' else 0.007) ++ tol=0.007) + def test_rgba_antialias(): + fig, axs = plt.subplots(2, 2, figsize=(3.5, 3.5), sharex=False, + sharey=False, constrained_layout=True) +diff --git a/lib/matplotlib/tests/test_legend.py b/lib/matplotlib/tests/test_legend.py +index 3c2af27564..c65887b5e4 100644 +--- a/lib/matplotlib/tests/test_legend.py ++++ b/lib/matplotlib/tests/test_legend.py +@@ -177,7 +177,7 @@ def test_multiple_keys(): + + + @image_comparison(['rgba_alpha.png'], remove_text=True, +- tol=0 if platform.machine() == 'x86_64' else 0.03) ++ tol=0.02 if platform.machine() == 'x86_64' else 0.03) + def test_alpha_rgba(): + fig, ax = plt.subplots() + ax.plot(range(10), lw=5) +@@ -186,7 +186,7 @@ def test_alpha_rgba(): + + + @image_comparison(['rcparam_alpha.png'], remove_text=True, +- tol=0 if platform.machine() == 'x86_64' else 0.03) ++ tol=0.02 if platform.machine() == 'x86_64' else 0.03) + def test_alpha_rcparam(): + fig, ax = plt.subplots() + ax.plot(range(10), lw=5) +@@ -214,7 +214,7 @@ def test_fancy(): + + + @image_comparison(['framealpha'], remove_text=True, +- tol=0 if platform.machine() == 'x86_64' else 0.024) ++ tol=0.02 if platform.machine() == 'x86_64' else 0.024) + def test_framealpha(): + x = np.linspace(1, 100, 100) + y = x +diff --git a/lib/matplotlib/tests/test_lines.py b/lib/matplotlib/tests/test_lines.py +index 902b7aa2c0..d5145a38f0 100644 +--- a/lib/matplotlib/tests/test_lines.py ++++ b/lib/matplotlib/tests/test_lines.py +@@ -185,7 +185,7 @@ def test_set_drawstyle(): + + @image_comparison( + ['line_collection_dashes'], remove_text=True, style='mpl20', +- tol=0 if platform.machine() == 'x86_64' else 0.65) ++ tol=0.65) + def test_set_line_coll_dash_image(): + fig, ax = plt.subplots() + np.random.seed(0) +diff --git a/lib/matplotlib/tests/test_units.py b/lib/matplotlib/tests/test_units.py +index ae6372fea1..4f0dc25732 100644 +--- a/lib/matplotlib/tests/test_units.py ++++ b/lib/matplotlib/tests/test_units.py +@@ -79,7 +79,7 @@ def quantity_converter(): + # Tests that the conversion machinery works properly for classes that + # work as a facade over numpy arrays (like pint) + @image_comparison(['plot_pint.png'], style='mpl20', +- tol=0 if platform.machine() == 'x86_64' else 0.03) ++ tol=0.002 if platform.machine() == 'x86_64' else 0.03) + def test_numpy_facade(quantity_converter): + # use former defaults to match existing baseline image + plt.rcParams['axes.formatter.limits'] = -7, 7 +@@ -106,7 +106,7 @@ def test_numpy_facade(quantity_converter): + + # Tests gh-8908 + @image_comparison(['plot_masked_units.png'], remove_text=True, style='mpl20', +- tol=0 if platform.machine() == 'x86_64' else 0.02) ++ tol=0.02) + def test_plot_masked_units(): + data = np.linspace(-5, 5) + data_masked = np.ma.array(data, mask=(data > -2) & (data < 2)) +diff --git a/lib/matplotlib/tests/test_usetex.py b/lib/matplotlib/tests/test_usetex.py +index 342face450..c7256586bc 100644 +--- a/lib/matplotlib/tests/test_usetex.py ++++ b/lib/matplotlib/tests/test_usetex.py +@@ -15,6 +15,7 @@ import matplotlib.pyplot as plt + pytestmark = needs_usetex + + ++@pytest.mark.skip(reason="TODO: broken") + @image_comparison( + baseline_images=['test_usetex'], + extensions=['pdf', 'png'], +@@ -65,7 +66,7 @@ def test_mathdefault(): + fig.canvas.draw() + + +-@image_comparison(['eqnarray.png']) ++@image_comparison(['eqnarray.png'], tol=23) + def test_multiline_eqnarray(): + text = ( + r'\begin{eqnarray*}' +@@ -163,7 +164,7 @@ except mpl.ExecutableNotFoundError: + + + @image_comparison(baseline_images=['rotation'], extensions=['eps', 'pdf', 'png', 'svg'], +- style='mpl20', tol=3.91 if _old_gs_version else 0) ++ style='mpl20', tol=30) + def test_rotation(): + mpl.rcParams['text.usetex'] = True + diff --git a/dev-python/matplotlib/matplotlib-3.9.3.ebuild b/dev-python/matplotlib/matplotlib-3.9.3.ebuild new file mode 100644 index 000000000000..2be141c0003a --- /dev/null +++ b/dev-python/matplotlib/matplotlib-3.9.3.ebuild @@ -0,0 +1,301 @@ +# 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=( pypy3 python3_{10..13} ) +PYTHON_REQ_USE='tk?,threads(+)' + +inherit distutils-r1 pypi virtualx + +FT_PV=2.6.1 +DESCRIPTION="Pure python plotting library with matlab like syntax" +HOMEPAGE=" + https://matplotlib.org/ + https://github.com/matplotlib/matplotlib/ + https://pypi.org/project/matplotlib/ +" +SRC_URI+=" + test? ( + https://downloads.sourceforge.net/project/freetype/freetype2/${FT_PV}/freetype-${FT_PV}.tar.gz + ) +" + +# Main license: matplotlib +# Some modules: BSD +# matplotlib/backends/qt4_editor: MIT +# Fonts: BitstreamVera, OFL-1.1 +LICENSE="BitstreamVera BSD matplotlib MIT OFL-1.1" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos ~x64-macos" +IUSE="cairo excel gtk3 latex qt5 tk webagg wxwidgets" + +DEPEND=" + media-libs/freetype:2 + >=media-libs/qhull-2013:= + >=dev-python/numpy-1.25:=[${PYTHON_USEDEP}] +" +# internal copy of pycxx highly patched +# dev-python/pycxx +RDEPEND=" + ${DEPEND} + >=dev-python/contourpy-1.0.1[${PYTHON_USEDEP}] + >=dev-python/cycler-0.10.0-r1[${PYTHON_USEDEP}] + >=dev-python/fonttools-4.22.0[${PYTHON_USEDEP}] + >=dev-python/kiwisolver-1.3.1[${PYTHON_USEDEP}] + >=dev-python/packaging-20.0[${PYTHON_USEDEP}] + >=dev-python/pillow-8[jpeg,webp,${PYTHON_USEDEP}] + >=dev-python/pyparsing-2.3.1[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.7[${PYTHON_USEDEP}] + >=dev-python/pytz-2019.3[${PYTHON_USEDEP}] + media-fonts/dejavu + media-fonts/stix-fonts + media-libs/libpng:0 + virtual/imagemagick-tools[jpeg,tiff] + cairo? ( + dev-python/cairocffi[${PYTHON_USEDEP}] + ) + excel? ( + dev-python/xlwt[${PYTHON_USEDEP}] + ) + gtk3? ( + >=dev-python/pygobject-3.40.1-r1:3[cairo?,${PYTHON_USEDEP}] + x11-libs/gtk+:3[introspection] + ) + latex? ( + virtual/latex-base + app-text/dvipng + app-text/ghostscript-gpl + app-text/poppler[utils] + dev-texlive/texlive-fontsrecommended + dev-texlive/texlive-latexextra + dev-texlive/texlive-luatex + dev-texlive/texlive-xetex + ) + qt5? ( + $(python_gen_cond_dep ' + dev-python/pyqt5[gui,widgets,${PYTHON_USEDEP}] + ' 'python3*') + ) + webagg? ( + >=dev-python/tornado-6.0.4[${PYTHON_USEDEP}] + ) + wxwidgets? ( + $(python_gen_cond_dep ' + dev-python/wxpython:*[${PYTHON_USEDEP}] + ' python3_{10..12}) + ) +" + +BDEPEND=" + ${RDEPEND} + dev-python/pybind11[${PYTHON_USEDEP}] + >=dev-python/setuptools-scm-7[${PYTHON_USEDEP}] + virtual/pkgconfig + test? ( + $(python_gen_impl_dep 'tk') + dev-python/psutil[${PYTHON_USEDEP}] + dev-python/pytest-rerunfailures[${PYTHON_USEDEP}] + >=dev-python/tornado-6.0.4[${PYTHON_USEDEP}] + !hppa? ( !s390? ( + || ( + media-video/ffmpeg[openh264] + media-video/ffmpeg[x264] + ) + ) ) + gtk3? ( + >=dev-python/pygobject-3.40.1-r1:3[cairo?,${PYTHON_USEDEP}] + x11-libs/gtk+:3[introspection] + ) + ) +" + +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_unpack() { + # do not unpack freetype + unpack "${P}.tar.gz" +} + +python_prepare_all() { + # Affects installed _version.py, bug #854600 + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} + + local PATCHES=( + "${FILESDIR}"/matplotlib-3.9.3-test.patch + ) + + # increase lock timeout to 30 s + sed -i -e 's:retries = 50:retries = 300:' lib/matplotlib/cbook.py || die + + distutils-r1_python_prepare_all +} + +src_configure() { + unset DISPLAY # bug #278524 + export XDG_RUNTIME_DIR="${T}/runtime-dir" + mkdir "${XDG_RUNTIME_DIR}" || die + chmod 0700 "${XDG_RUNTIME_DIR}" || die + + DISTUTILS_ARGS=( + -Dsystem-freetype=true + -Dsystem-qhull=true + -Dmacosx=false + ) +} + +src_test() { + mkdir subprojects/packagecache || die + cp "${DISTDIR}/freetype-${FT_PV}.tar.gz" subprojects/packagecache/ || die + virtx distutils-r1_src_test +} + +python_test() { + local EPYTEST_DESELECT=( + # broken by -Wdefault + "tests/test_rcparams.py::test_validator_invalid[validate_strlist-arg6-MatplotlibDeprecationWarning]" + "tests/test_rcparams.py::test_validator_invalid[validate_strlist-arg7-MatplotlibDeprecationWarning]" + tests/test_testing.py::test_warn_to_fail + tests/test_legend.py::test_legend_nolabels_warning + # TODO? + tests/test_backend_qt.py::test_fig_sigint_override + tests/test_backend_qt.py::test_ipython + tests/test_backend_nbagg.py::test_ipynb + # leak tests are fragile + tests/test_backends_interactive.py::test_figure_leak_20490 + # major "images not close", new texlive perhaps + tests/test_contour.py::test_all_algorithms + # "no warnings" + tests/test_backend_pdf.py::test_invalid_metadata + tests/test_figure.py::test_too_many_figures + ) + + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # TODO: warning isn't passed through + tests/test_image.py::test_large_image + # TODO + tests/test_pickle.py::test_complete + tests/test_pickle.py::test_no_pyplot + tests/test_pickle.py::test_pickle_load_from_subprocess + tests/test_pickle.py::test_simple + tests/test_texmanager.py::test_openin_any_paranoid + tests/test_widgets.py::test_check_buttons + tests/test_widgets.py::test_check_buttons_lines + tests/test_widgets.py::test_check_radio_buttons_image + tests/test_widgets.py::test_radio_buttons + ) + if has_version "<dev-python/pypy3_10-exe-7.3.13_p2" || + has_version "<dev-python/pypy3_10-exe-bin-7.3.13_p2" + then + EPYTEST_DESELECT+=( + # TypeError is raised when exception is raised in a starred + # expression referencing a generator that uses "yield from" + # and raises -- non-critical, since some exception is raised + # after all + # https://foss.heptapod.net/pypy/pypy/-/issues/4032 + tests/test_axes.py::test_bad_plot_args + tests/test_axes.py::test_plot_errors + tests/test_axes.py::test_plot_format_errors + ) + fi + ;; + python3.11) + EPYTEST_DESELECT+=( + # https://github.com/matplotlib/matplotlib/issues/23384 + "tests/test_backends_interactive.py::test_figure_leak_20490[time_mem1-{'MPLBACKEND': 'qtagg', 'QT_API': 'PyQt5'}]" + "tests/test_backends_interactive.py::test_figure_leak_20490[time_mem1-{'MPLBACKEND': 'qtcairo', 'QT_API': 'PyQt5'}]" + ) + ;; + python3.12) + EPYTEST_DESELECT+=( + tests/test_constrainedlayout.py::test_compressed1 + ) + ;; + esac + + case ${ABI} in + hppa) + EPYTEST_DESELECT+=( + 'tests/test_mathtext.py::test_mathtext_exceptions[hspace without value]' + 'tests/test_mathtext.py::test_mathtext_exceptions[hspace with invalid value]' + 'tests/test_mathtext.py::test_mathtext_exceptions[function without space]' + 'tests/test_mathtext.py::test_mathtext_exceptions[accent without space]' + 'tests/test_mathtext.py::test_mathtext_exceptions[frac without parameters]' + 'tests/test_mathtext.py::test_mathtext_exceptions[frac with empty parameters]' + 'tests/test_mathtext.py::test_mathtext_exceptions[binom without parameters]' + 'tests/test_mathtext.py::test_mathtext_exceptions[binom with empty parameters]' + 'tests/test_mathtext.py::test_mathtext_exceptions[genfrac without parameters]' + 'tests/test_mathtext.py::test_mathtext_exceptions[genfrac with empty parameters]' + 'tests/test_mathtext.py::test_mathtext_exceptions[sqrt without parameters]' + 'tests/test_mathtext.py::test_mathtext_exceptions[sqrt with invalid value]' + 'tests/test_mathtext.py::test_mathtext_exceptions[overline without parameters]' + 'tests/test_mathtext.py::test_mathtext_exceptions[overline with empty parameter]' + 'tests/test_mathtext.py::test_mathtext_exceptions[left with invalid delimiter]' + 'tests/test_mathtext.py::test_mathtext_exceptions[right with invalid delimiter]' + 'tests/test_mathtext.py::test_mathtext_exceptions[unclosed parentheses with sizing]' + 'tests/test_mathtext.py::test_mathtext_exceptions[unclosed parentheses without sizing]' + 'tests/test_mathtext.py::test_mathtext_exceptions[dfrac without parameters]' + 'tests/test_mathtext.py::test_mathtext_exceptions[dfrac with empty parameters]' + 'tests/test_mathtext.py::test_mathtext_exceptions[overset without parameters]' + 'tests/test_mathtext.py::test_mathtext_exceptions[underset without parameters]' + 'tests/test_mathtext.py::test_mathtext_exceptions[unknown symbol]' + 'tests/test_mathtext.py::test_mathtext_exceptions[double superscript]' + 'tests/test_mathtext.py::test_mathtext_exceptions[double subscript]' + 'tests/test_mathtext.py::test_mathtext_exceptions[super on sub without braces]' + 'tests/test_quiver.py::test_barbs[png]' + 'tests/test_quiver.py::test_barbs_pivot[png]' + 'tests/test_quiver.py::test_barbs_flip[png]' + 'tests/test_text.py::test_parse_math' + 'tests/test_text.py::test_parse_math_rcparams' + ) + ;& + alpha|arm|m68k|o32|ppc|s390|sh|sparc|x86) + EPYTEST_DESELECT+=( + # too large for 32-bit platforms + 'tests/test_axes.py::test_psd_csd[png]' + ) + ;; + *) + ;; + esac + + # we need to rebuild mpl against bundled freetype, otherwise + # over 1000 tests will fail because of mismatched font rendering + local DISTUTILS_ARGS=( + "${DISTUTILS_ARGS[@]}" + -Dsystem-freetype=false + ) + distutils_pep517_install "${BUILD_DIR}"/test + cp -r "${BUILD_DIR}"/{install,test}"${EPREFIX}/usr/bin" || die + local -x PATH=${BUILD_DIR}/test${EPREFIX}/usr/bin:${PATH} + + pushd lib >/dev/null || die + local path + local sitedir=${BUILD_DIR}/test$(python_get_sitedir) + # sigh, upstream doesn't install these + while IFS= read -d '' path; do + cp -r "${path}" "${sitedir}/${path}" || die + done < <( + find \( \ + -name baseline_images -o \ + -name '*.ipynb' -o \ + -name '*.pfb' -o \ + -name '*.ttf' -o \ + -name tinypages \ + \) -print0 + ) + popd >/dev/null || die + + # speed tests up + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + # pretend we're on CI to increase timeouts + local -x CI=1 + nonfatal epytest --pyargs matplotlib -m "not network" \ + -p rerunfailures --reruns=3 \ + -o tmp_path_retention_policy=all || die +} diff --git a/dev-python/mkdocs-material/Manifest b/dev-python/mkdocs-material/Manifest index 712becf4323e..69e81e916afe 100644 --- a/dev-python/mkdocs-material/Manifest +++ b/dev-python/mkdocs-material/Manifest @@ -2,7 +2,9 @@ AUX mkdocs-material-8.5.7-simplify-build.patch 529 BLAKE2B 60a246940983ca713b370 DIST mkdocs-material-9.5.44.gh.tar.gz 14764147 BLAKE2B e0aaed852abd060eee0b9049798a327a4ddc5969a84289b8aa983b0dfbe926b2e0dfd13525593c2783106bca882adfcfad7961c2eb0363a1f4a4131c364c42c8 SHA512 9a0c8d4a52c8b44b9c8e84b57839d5ddc3080eaa136cb6effc3da8eb9d08a2ef0c0898ff875afabc1783ea548653a9b00f00db67ceb48d52f323a93795529465 DIST mkdocs-material-9.5.45.gh.tar.gz 14703865 BLAKE2B a48e2e00bf0c1511e58e3f621656aa23227f0e579b96f83d09666328c815dc67cc8015b5f5400e08dd371e022740f0d46f6f550d1e35880485adf75a9352a8e9 SHA512 1a55d96fbc9872c754570633b094a8e605ef5be2cfe41f5c47d4f1af8ba5bedf9c4e419748716f8c8014a2b661d6ff73e6e98bdb3396568c64534e08f676f11b DIST mkdocs-material-9.5.46.gh.tar.gz 14708818 BLAKE2B 3aed540e20f588f2cb08c94a2323e5311de5edd1467a7bfe1dbabfa81c69ed50875cab5d85aaa874648966bec4acea265a316004683b60b16703a6548aa1464e SHA512 f75bc96590f30c2109fa3ea915b91bd4cad50a4ce3d374fd162ee6178672f3acf812c9e98c348556a212587df935db1126ab2d1fe1f18cfdc3bd1f52efafa859 +DIST mkdocs-material-9.5.47.gh.tar.gz 14708561 BLAKE2B ea3ac2df6f88d3c9b8ebd9bbbe5b6d0bf826fe3ebe733f8a84d532becbbfa66e0c11aa069da9571810593405d91e5d4e45ea0aad158ca1a956cb18c9f7fa9f13 SHA512 3ccce10161552c70276255a25e4467064de4adc92e38ec77e244ae140e9e58fa95144c5667116de89b41807df875ad3bb988685eec37e1285534367a6b4e9d76 EBUILD mkdocs-material-9.5.44.ebuild 1795 BLAKE2B a9a753f6e3d00c67d4cdd41217fb85ed09928e85e2f4adfe021de6065d849938e1ec3319c363b6ccc8bbee0fb194a56ee09fc50ad914629c88473c153c8d6eb8 SHA512 56b2c96ea1bd1a51b91a014f978524f38d3a2813246620b37ca1f4ebcf6ff03959d711dfa21103131ba7350794e54b3dbae8bd378bd5586055ab407a594c285b EBUILD mkdocs-material-9.5.45.ebuild 1798 BLAKE2B 1ffcaf6bc256669ca5a6bfc4ec0417a28d2fe4a0fe788b26d85fe0bfb182571306c1162034fb73fb12c7286c9c77daeaaf7b58d85dfc58e8c1c983e616f3f3ae SHA512 135b096f785dc2c84e788384a4e6f9aba4ab42a7b39bec2bf2784a0368d85fc7f2c7fe9f1e87c59aea1eab3bf484500e552d2bc0f5139b7b3e261caf1fad0046 EBUILD mkdocs-material-9.5.46.ebuild 1798 BLAKE2B 1ffcaf6bc256669ca5a6bfc4ec0417a28d2fe4a0fe788b26d85fe0bfb182571306c1162034fb73fb12c7286c9c77daeaaf7b58d85dfc58e8c1c983e616f3f3ae SHA512 135b096f785dc2c84e788384a4e6f9aba4ab42a7b39bec2bf2784a0368d85fc7f2c7fe9f1e87c59aea1eab3bf484500e552d2bc0f5139b7b3e261caf1fad0046 +EBUILD mkdocs-material-9.5.47.ebuild 1798 BLAKE2B 1ffcaf6bc256669ca5a6bfc4ec0417a28d2fe4a0fe788b26d85fe0bfb182571306c1162034fb73fb12c7286c9c77daeaaf7b58d85dfc58e8c1c983e616f3f3ae SHA512 135b096f785dc2c84e788384a4e6f9aba4ab42a7b39bec2bf2784a0368d85fc7f2c7fe9f1e87c59aea1eab3bf484500e552d2bc0f5139b7b3e261caf1fad0046 MISC metadata.xml 1133 BLAKE2B 539649e3b6efda18535738e45078b7b35f8226034b18c40ff5feae249a4dc5aa6b4a1247a712564ab5b7cee1f62eda4e3bbb709ea7970d2fc279bc48ab1ee934 SHA512 72a58ba3f100cea6653406c3a314b1b67225d118fdb8323e54b6ae9bcd2224a00d01cee96b6564fbbf19de6e5fe5db54143aaa56ca2b7cf8c56fcd8c8c5cf6ef diff --git a/dev-python/mkdocs-material/mkdocs-material-9.5.47.ebuild b/dev-python/mkdocs-material/mkdocs-material-9.5.47.ebuild new file mode 100644 index 000000000000..1ad2af7ab97d --- /dev/null +++ b/dev-python/mkdocs-material/mkdocs-material-9.5.47.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{10..13} ) + +DOCS_BUILDER="mkdocs" +DOCS_DEPEND=" + dev-python/mkdocs-material-extensions + dev-python/mkdocs-minify-plugin + dev-python/mkdocs-redirects +" + +inherit distutils-r1 docs + +DESCRIPTION="A Material Design theme for MkDocs" +HOMEPAGE=" + https://github.com/squidfunk/mkdocs-material/ + https://pypi.org/project/mkdocs-material/ +" +SRC_URI=" + https://github.com/squidfunk/${PN}/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86" +IUSE="social" + +RDEPEND=" + >=dev-python/babel-2.10.3[${PYTHON_USEDEP}] + >=dev-python/colorama-0.4[${PYTHON_USEDEP}] + >=dev-python/jinja2-3.0.2[${PYTHON_USEDEP}] + >=dev-python/lxml-4.6[${PYTHON_USEDEP}] + >=dev-python/markdown-3.2[${PYTHON_USEDEP}] + >=dev-python/mkdocs-1.5.3[${PYTHON_USEDEP}] + >=dev-python/paginate-0.5.6[${PYTHON_USEDEP}] + >=dev-python/pygments-2.16[${PYTHON_USEDEP}] + >=dev-python/pymdown-extensions-10.2[${PYTHON_USEDEP}] + >=dev-python/readtime-2.0[${PYTHON_USEDEP}] + >=dev-python/regex-2022.4.24[${PYTHON_USEDEP}] + >=dev-python/requests-2.26[${PYTHON_USEDEP}] + social? ( + >=dev-python/pillow-10.2[${PYTHON_USEDEP}] + >=media-gfx/cairosvg-2.5[${PYTHON_USEDEP}] + ) +" +BDEPEND=" + >=dev-python/trove-classifiers-2023.10.18[${PYTHON_USEDEP}] +" +# mkdocs-material-extensions depends on mkdocs-material creating a circular dep +PDEPEND=" + >=dev-python/mkdocs-material-extensions-1.2[${PYTHON_USEDEP}] +" + +PATCHES=( + # simplify pyproject to remove extra deps for metadata + "${FILESDIR}/${PN}-8.5.7-simplify-build.patch" +) + +src_prepare() { + echo "__version__ = '${PV}'" > gentoo_version.py || die + distutils-r1_src_prepare +} diff --git a/dev-python/multipart/Manifest b/dev-python/multipart/Manifest index b446a7a6e47a..6d7100917dcc 100644 --- a/dev-python/multipart/Manifest +++ b/dev-python/multipart/Manifest @@ -1,7 +1,7 @@ DIST multipart-1.1.0.tar.gz 34622 BLAKE2B f4973a80aa7f7979f9882c4689b83b9e557a1b5a2cc4dac3df8bde6b46979b542974762826588a641e9ecd52d6c50e4d804732042762c08c59e6c23a62bdf0b7 SHA512 308b3080b2085315b3d080c976be26df8f9028862c9bea14069ddc3a5aad3b5f60cb75fdd387b943e5f555f6aecfbc865a1e9aa457bf06b9a7f08e13aaaba449 DIST multipart-1.2.0.tar.gz 35932 BLAKE2B d4f909dda8ffd0b5488a22baa683f0e8782ae8622fe70e657a2baed4c4f841d9161cd252f7fbd140be13184ec3d379e24b4d24fe1f61e6c633a88ccc74a1c005 SHA512 2fbe7a52f6a32f1e25f8f2036187b18b5ec549e96dd0d58a89fa48da67464a010d0a015099b87f778ce48a72fc3e28e26d07a542a5999652c8186b42f47d5c97 DIST multipart-1.2.1.tar.gz 36507 BLAKE2B 62f62aec8708e0fa9ded96cc7c72b5e575cf98e4521cf163e4fa5ec650fa6becc4378ea4c5b9776b95e4fe6caf7775fb16485676fb446c904e8c641f40fb1feb SHA512 755e41a388d16315a90bf9d3a6c340a887d9ece860b09c703771f788c9b2d491aa3dc401e444bf2d558ef81e9afaf498cff140dff8b1ed05341148244f6685d9 -EBUILD multipart-1.1.0.ebuild 448 BLAKE2B 17b4def728b50bd4fcf1ee0acb9208eeec48e3b39c0b60c0e96009d0c150228a6df7155ebe353c71b58a36477e19c0541d80cf59ff51dc5a302f3e0df2169a95 SHA512 ba57b3389f9bf0676a5680490c2c7836b26a8b8c980712e2e172d0c7cff78d559cbbc30eaeef5d9e61437d681228a1bef6ae6985647847cdaf3ef2c1d0c0908b +EBUILD multipart-1.1.0.ebuild 447 BLAKE2B 94fc5a9f44af51332f17df2b16daec92e948ecc7dc9b897a2baa90eeb7bdff923ca27da599d2240d70b109910e936b8479a187ca1d36dc688cb859aaf930455e SHA512 d97ef5b48c1acdb0b0f6bd7942ec8b369d9883114d9fb03749e33055c37ade6a8b704557499eaa1338a3d3db13d2dd9959f0886a9f58ff0f36a7487b78549b1b EBUILD multipart-1.2.0.ebuild 448 BLAKE2B 17b4def728b50bd4fcf1ee0acb9208eeec48e3b39c0b60c0e96009d0c150228a6df7155ebe353c71b58a36477e19c0541d80cf59ff51dc5a302f3e0df2169a95 SHA512 ba57b3389f9bf0676a5680490c2c7836b26a8b8c980712e2e172d0c7cff78d559cbbc30eaeef5d9e61437d681228a1bef6ae6985647847cdaf3ef2c1d0c0908b EBUILD multipart-1.2.1.ebuild 448 BLAKE2B 17b4def728b50bd4fcf1ee0acb9208eeec48e3b39c0b60c0e96009d0c150228a6df7155ebe353c71b58a36477e19c0541d80cf59ff51dc5a302f3e0df2169a95 SHA512 ba57b3389f9bf0676a5680490c2c7836b26a8b8c980712e2e172d0c7cff78d559cbbc30eaeef5d9e61437d681228a1bef6ae6985647847cdaf3ef2c1d0c0908b MISC metadata.xml 372 BLAKE2B 3a3e9fcf03a4a9b4b2d7d6f3571d4f5a027aaecb6f9c602d3510b09c006414d7c1c64c3299ea5f651aed3e222d89b8de0ba2c0d9ed8317f771c844a164908539 SHA512 4eed94dbe74d4f60ec345b22a3599401c651bdc6630d1f21134bd814e7047505fdf4f39e6256f842689a499b0747afec5630783246158512c8d651eecd71620b diff --git a/dev-python/multipart/multipart-1.1.0.ebuild b/dev-python/multipart/multipart-1.1.0.ebuild index 0cf534646bb1..7e84f4b1a346 100644 --- a/dev-python/multipart/multipart-1.1.0.ebuild +++ b/dev-python/multipart/multipart-1.1.0.ebuild @@ -16,6 +16,6 @@ HOMEPAGE=" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +KEYWORDS="amd64 ~arm64 ~ppc64 ~riscv ~x86" distutils_enable_tests pytest diff --git a/dev-python/pydecomp/Manifest b/dev-python/pydecomp/Manifest index 11cda40bf14d..5274df17466e 100644 --- a/dev-python/pydecomp/Manifest +++ b/dev-python/pydecomp/Manifest @@ -1,5 +1,5 @@ AUX 0.3-no-pixz-index.patch 2089 BLAKE2B fec4eb3bbef769d43c7ef42bc2314252df6379c1d973e319ddc6377c870793b83eba63325f9531cbb46a35e7e13011353dc689438479bb3c42d67f52b4b7799b SHA512 1d051e0d2e829d91a5de704273dde1ed91c7c3bbedd5744fd24d54ec21418ed67db73d866ca1943e36299824214e677058fbfce9e61233aa7c1ecd90152e8fde DIST pydecomp-0.3.tar.gz 10009 BLAKE2B 2741dc776ac265a84daf4c68542e652c7e2663dff1561297057f3ac219805136ece32af3f33e0b03df0a9883663692fc3855490478c538a0edec838c90c1c4b6 SHA512 7935111f9d0629eb74f529a6427b9db3cac4c9c205f80b28380ab9c323ca9ad7b78b40f69a7760a5a69ed065e9d6ddd42d08fb8f2cb787f15d2ec6e88e20221a -EBUILD pydecomp-0.3-r3.ebuild 753 BLAKE2B caef8f204fa64852cc673f53f1f6d5f637c82cadefc9a392c34fb2ed16db9d11d2afe7885b02699101c711488f53deef9e60cb94ab6135678d34e4e894ac5680 SHA512 be94d526bab1593901cd854fa02e978019c34b55fd34a4e7054fb7cac4eee46394172e5223d1bb54e6e3bf708be7076f39b1e0e3180cdc9985daddfab39b3df1 -EBUILD pydecomp-9999.ebuild 708 BLAKE2B a102ad9dbd56ce399ca0c27fb5e3bad3cff09edb539e30c05fef47d07ec33738914dd215a2fa4b97c121c0ee4bd52633600d8f56f87ae9680a2af07581a55f4c SHA512 12c093e076d1387b7fcb62df4243a15c2e81a2e42ee5ce8a07f15cb49a31d911a2bc63a7ee7f7a833612207a97f7ed3036a37a3327767d9552b9439ee88509f1 +EBUILD pydecomp-0.3-r3.ebuild 753 BLAKE2B ad4c7c6e0677ef482a9ca96f2ad7d3d865234c0ba1b96f5cb7beca957f5168060097c0c76259f1a970725262292497019da2c64c0a6602b7c78e32a3b23c1787 SHA512 8f1dbce2997a0bef637e8b9d68e1c17e9ff0a949cab228d2e01bd323f83b093ad666ba913dc932a657dd74194806cdc15aeb6732fe60a10ce51fd61850dbdd40 +EBUILD pydecomp-9999.ebuild 708 BLAKE2B 8d3af7b735382c8a395ab9e120d05452e9d0ce300cefd36197d4cd8a0022a25ced6a4d5a0adeed143ccf10ff1ecf308773b0d046dd2b2d9af877b8cfff2ff250 SHA512 c14bf1541c540213c72bbc47d7860639bf6a4f08761b7313ebecc57a689e5ed1f11cda15b4920f0149bd0aeabc30db9678f3d1b591869c1c8b55cc11697ecfbe MISC metadata.xml 779 BLAKE2B f33c8009603ba2d4ce7246088d5f8c67919e79bbddde5f4423f2fd7526bfcbb87badca1e38a9ad8b524f6db2d2c5c5dd7ee05fb8a33bebac7177fa598aff0e20 SHA512 8129e96ba267ea1ab32a67149b8e645295ffc9a89e9740d1ae392e45d296fa19189eda30194018799e852652ac556654e852d651168b3ace794678b133beb8c8 diff --git a/dev-python/pydecomp/pydecomp-0.3-r3.ebuild b/dev-python/pydecomp/pydecomp-0.3-r3.ebuild index 3393042055f1..7b21e90080f8 100644 --- a/dev-python/pydecomp/pydecomp-0.3-r3.ebuild +++ b/dev-python/pydecomp/pydecomp-0.3-r3.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..13} ) inherit distutils-r1 diff --git a/dev-python/pydecomp/pydecomp-9999.ebuild b/dev-python/pydecomp/pydecomp-9999.ebuild index e22af665c570..d78ad0a15624 100644 --- a/dev-python/pydecomp/pydecomp-9999.ebuild +++ b/dev-python/pydecomp/pydecomp-9999.ebuild @@ -4,7 +4,7 @@ EAPI=8 DISTUTILS_USE_PEP517=setuptools -PYTHON_COMPAT=( python3_{10..12} ) +PYTHON_COMPAT=( python3_{10..13} ) inherit distutils-r1 diff --git a/dev-python/pydot/Manifest b/dev-python/pydot/Manifest index b4ca80e834d4..71dbbc28e8d0 100644 --- a/dev-python/pydot/Manifest +++ b/dev-python/pydot/Manifest @@ -1,3 +1,5 @@ DIST pydot-3.0.2.gh.tar.gz 295058 BLAKE2B dac56e82520c09f3000f7c6bf04d8d933f22958086675d8c7e26572d039388f7561b3aa7150e49cc1957d44dcdd4828058369ccf2ba5f88a9280f67dcbc18196 SHA512 b24b2073781b6c3256e3d9e76514193493d8a8d9eadc8ef1db3d13b7c4d3ddbdcfcc008b3b70abbe9dcb11d2036b4b3a3dda6ca13277fb5413f699a136a58b80 +DIST pydot-3.0.3.tar.gz 168086 BLAKE2B 10bf54d3c6128890aa67641352bd26bc5f0c7c98bc1a5162d6f1dad5de8cd60caa282b449dea88b67ce757341818f18e2ca682c3866224bec2778b9f74997a63 SHA512 36e1f61b1a5092456d19e27ec71d889699681cc4051f6839f1a5f151eafdac2b3e35180f78c7b127f1e9a85c264eb782ae746f1346b1a0fcc4a1141a09613b5c EBUILD pydot-3.0.2.ebuild 865 BLAKE2B d51c73fa1c183d12ca8d436e8054ba13f2be9962b1ec58c9d2ee616d380881fbb2f57070ed661f6fa0dd90533c889ce9e685164064c1a00ddb2c32ed9ed6ea6b SHA512 1f0fc5d970da40d10e2bde578e2caea19c0585a3b7d1c1425eebde061c2d966662d543b5e79a62180941423d1290a7e4b7e8ccb44ae9bc3c3756eacfd5514baf +EBUILD pydot-3.0.3.ebuild 751 BLAKE2B 870e69d4d81fa986682b959b4ce1f6c46046f89514560a1bb7828163b418f4450e555e3251139db698272da7c98babc167c53af2229ac01d7e97a6f05087cdd1 SHA512 d8b5f7218166976a26b32c3ea012bbb2ba5de69111dc7ee85541851700242b1095f7e42de7ebf12651ffa28cf285524ebe8b97376e8721678ebd97e42d5de9e0 MISC metadata.xml 372 BLAKE2B faad24394ef27dedc8b563e505444b414fe95cb6097bd2bebe01232e68c975b77d415c2a05ec1ad19f0ce1218d1c3f057beea6deecef01b940962a287ad8ce46 SHA512 281a6e2097fcf978f7e691640e257a5f60b242570f8a5715e078363c5658b96b50d3c29ccaad448c0b2ac3dd7b898dcae457bafdb08952163de8d1af81954d75 diff --git a/dev-python/pydot/pydot-3.0.3.ebuild b/dev-python/pydot/pydot-3.0.3.ebuild new file mode 100644 index 000000000000..eefea880ef79 --- /dev/null +++ b/dev-python/pydot/pydot-3.0.3.ebuild @@ -0,0 +1,34 @@ +# 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_{10..13} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Python interface to Graphviz's Dot language" +HOMEPAGE=" + https://github.com/pydot/pydot/ + https://pypi.org/project/pydot/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~ppc-macos ~x64-macos" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + >=dev-python/pyparsing-3.0.9[${PYTHON_USEDEP}] + media-gfx/graphviz +" +BDEPEND=" + test? ( + dev-python/chardet[${PYTHON_USEDEP}] + dev-python/parameterized[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests unittest diff --git a/dev-python/pyfakefs/Manifest b/dev-python/pyfakefs/Manifest index b72366c3c1d4..cff4f12c2429 100644 --- a/dev-python/pyfakefs/Manifest +++ b/dev-python/pyfakefs/Manifest @@ -1,3 +1,5 @@ DIST pyfakefs-5.7.1.gh.tar.gz 245977 BLAKE2B 8d675ddeecdf2ebde938509da68e76b67773f490c65f99f67c25e781147fd0743e3ccd2f8083d36e29fd293ffb8a77182055abec4f03a10b64a39787b4b4330a SHA512 78a5e754fbc4a47f4816296cd7045cb9001924f3185297ba166d332e2a938eb3109684cd4b63761c7d56e5461a298405f4d20059a8806d059bc940a7e8443d77 +DIST pyfakefs-5.7.2.gh.tar.gz 247345 BLAKE2B 8d7a85b74daf4aeef9628b00916f242b257a8fc9b799ae4a29fc8b56f70320815725490efdda6310350fb3666d67209ca8413e25e1da32c73aa53acf3f2607d2 SHA512 51f4dc345b2222756f40f58caa73e34cfc0fd5dbacd61fb9bfead8f3b1f1bb8afa7178bea4f65f191d0324f5ae507a17dc97c918f80fd39b61678e180af4a22b EBUILD pyfakefs-5.7.1.ebuild 1116 BLAKE2B ca139f17cb86452dde1e687740c9943a2ca83a979b33d23ffab44b7d25c04ca0bc4bd186af918e3c8ed08639ffb958c91ac80f212272fb17d696dee2d32b9b79 SHA512 f1ef24ec7987942fb2896f2f9af9ada8b0e0a609a8060cafba079512d0f090ee8f33c335d1a09506d904098dd69a8326a70c553ad2c05a57508dd910cf5af12d +EBUILD pyfakefs-5.7.2.ebuild 1124 BLAKE2B c3278ee4197ae79305da7c814717ff03bcab6790bb159b11236b8971e19d16d2a65753fda8f30e6a64886d2ea7d2ec75ea77e713831beae51e594366d1cc8880 SHA512 5b419648d06cb12728dacbd0b59350f39082d61b14e7a237a49794dfaf005976beb8e7f53a7331445ce0f03cd6c172dead9e8c4b107dc94a91de43cbe79c3d53 MISC metadata.xml 395 BLAKE2B add696dab9f93cad522087325d7cea08bb0d6905a093c0dd721b8ee0cc5f06a97e8b29663920e5131fd1cfaf38a1fb1c22908daa155025713ffbf18d87a2d5ec SHA512 454f9cf42ae315bb9d4b7c9a2a8b9a690163befc8f738b1fe4a145f1f3a9a5f59693e4cd1ebd4c501005cac1ab81c8b57b2316ac50739dfa96919b6de4850b9a diff --git a/dev-python/pyfakefs/pyfakefs-5.7.2.ebuild b/dev-python/pyfakefs/pyfakefs-5.7.2.ebuild new file mode 100644 index 000000000000..20bdeee372a0 --- /dev/null +++ b/dev-python/pyfakefs/pyfakefs-5.7.2.ebuild @@ -0,0 +1,44 @@ +# 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_{10..13} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="A fake file system that mocks the Python file system modules" +HOMEPAGE=" + https://github.com/pytest-dev/pyfakefs/ + https://pypi.org/project/pyfakefs/ +" +SRC_URI=" + https://github.com/pytest-dev/pyfakefs/archive/v${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-macos" + +distutils_enable_tests pytest + +python_test() { + local EPYTEST_DESELECT=() + local EPYTEST_IGNORE=( + # test for regression with opentimelineio package + pyfakefs/pytest_tests/segfault_test.py + # test for regression with undefined package + pyfakefs/pytest_tests/pytest_fixture_test.py + ) + + if ! has_version "dev-python/pandas[${PYTHON_USEDEP}]"; then + EPYTEST_IGNORE+=( + pyfakefs/pytest_tests/pytest_reload_pandas_test.py + ) + fi + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest -p pyfakefs.pytest_plugin +} diff --git a/dev-python/pyopengl-accelerate/Manifest b/dev-python/pyopengl-accelerate/Manifest index 5bf35e44a8b3..b2dfad0b6299 100644 --- a/dev-python/pyopengl-accelerate/Manifest +++ b/dev-python/pyopengl-accelerate/Manifest @@ -1,3 +1,7 @@ +AUX pyopengl-accelerate-3.1.8-gcc-14.patch 1852 BLAKE2B 8751f51383f1971803dbf79ceb2d2434125b4e0803c2848f03ef268528e53bb1c28c08a354c5cb0a15616f47313c77e7748c8278892ab5558dbc7bc40762bb02 SHA512 fa8f7b98f08dc0679e050c637996460539a9b1a0dc2852aefa51e862753430e3b316390f1792acf9ffdbab0a59858e01efc669d084a68fac3db0492bb0232824 +AUX pyopengl-accelerate-3.1.8-numpy-2.0.patch 5634 BLAKE2B ede68f2263a4fb64b9f429f7840c35af94defeb101c0573fecdb468776e88a886c2ac58053f0544dc6b5f6d0d26ca2773ff993a0889c649ca01efd221853c136 SHA512 d70778ea7d55e49f07fbbe201c0b08ea107bc48a6f73a89184c5f6cafe961a876d7916c624413eaa1d2271e8b10ddf57a7117925bfa716deb77b69c8fb20e630 DIST pyopengl-release-3.1.8.gh.tar.gz 3599436 BLAKE2B 7f33345d68d66d3cc81278eaa5f54298694f41f40583ee08a1f9f677705fb4414b6b2afbcd7b9345199b5f573478bfeba050e185b6534cbb19b45cb25c241b47 SHA512 d95014a36bd889fa014043e4640ba7f319bb996cb56e5f7086ee05d39c53d3928512d52b0ce181d7c144775a4da7eff7403cada0f91f23f56a699a1b023e00e6 +EBUILD pyopengl-accelerate-3.1.8-r1.ebuild 1521 BLAKE2B 0c9d9e69a33e1637223ede578a7fd464bec52f16389498c9998634f79ade5862819bd79c461e06b9a5099bbf7bd36596727626e71726b1983ebe9fc197794f65 SHA512 dfa4175d7187ad74e725ba23bfaa3f6fa4f376d391bfc709ecd371829e4bb38484416dfee75c80375febea7b7ac1b92009001755939c90640e640465f1890c81 EBUILD pyopengl-accelerate-3.1.8.ebuild 1165 BLAKE2B e1439fc90fb74f421f6d37e0c55255ae365e4607ca7623cd7515b74e33396ad73e992f307016499b628ec44bd6bcf52d83626a15128834e8b529b55d5326e254 SHA512 368d13e0194307287159e4663138d746c403ab4c88fddc5f6d607f4f6e9bbdd208524a83c665262787de0d24b14538becabe311b71c87f7d9519af7ad1bef7aa +EBUILD pyopengl-accelerate-9999.ebuild 1521 BLAKE2B 0c9d9e69a33e1637223ede578a7fd464bec52f16389498c9998634f79ade5862819bd79c461e06b9a5099bbf7bd36596727626e71726b1983ebe9fc197794f65 SHA512 dfa4175d7187ad74e725ba23bfaa3f6fa4f376d391bfc709ecd371829e4bb38484416dfee75c80375febea7b7ac1b92009001755939c90640e640465f1890c81 MISC metadata.xml 515 BLAKE2B 4a8dfbbf2250df73d9880ed75c4bfd63596e7f276dfd5dc15aff9177ad0b005256237e827bf4a0ce10f823ee1a17651248c1b47961bbd09af0a41b6281214228 SHA512 4f1a5ea9b42ba29e78fc15d2ad40623c63a2f351cc0a5f27eb7f8173155278bf214d5ac0f2d348c04967a99b2bb1f2c4b596ab8741a17cd891b2c34065ef0e35 diff --git a/dev-python/pyopengl-accelerate/files/pyopengl-accelerate-3.1.8-gcc-14.patch b/dev-python/pyopengl-accelerate/files/pyopengl-accelerate-3.1.8-gcc-14.patch new file mode 100644 index 000000000000..56f976288316 --- /dev/null +++ b/dev-python/pyopengl-accelerate/files/pyopengl-accelerate-3.1.8-gcc-14.patch @@ -0,0 +1,42 @@ +From fbe0fab7947788039cb4fbc9a5a1ea65a0c0e15b Mon Sep 17 00:00:00 2001 +From: Florian Weimer <fweimer@redhat.com> +Date: Fri, 5 Jan 2024 08:48:12 +0100 +Subject: [PATCH 1/2] accelerate: Fix type of PyArray_FillWithScalar + +The first argument is of type PyArrayObject, not PyObject. +--- a/accelerate/src/numpy_formathandler.pyx ++++ b/accelerate/src/numpy_formathandler.pyx +@@ -22,7 +22,7 @@ cdef extern from "numpy/arrayobject.h": + int PyArray_ISCARRAY_RO( np.ndarray instance ) + cdef np.ndarray PyArray_Zeros(int nd, np.npy_intp* dims, np.dtype, int fortran) + cdef np.ndarray PyArray_EnsureArray(object) +- cdef int PyArray_FillWithScalar(object, object) ++ cdef int PyArray_FillWithScalar(np.ndarray, object) + cdef void import_array() + cdef void* PyArray_DATA( np.ndarray ) + cdef int PyArray_NDIM( np.ndarray ) + +From f62dd58a5437c628d3ff3e626d4507811ef2127b Mon Sep 17 00:00:00 2001 +From: Florian Weimer <fweimer@redhat.com> +Date: Fri, 5 Jan 2024 08:48:43 +0100 +Subject: [PATCH 2/2] accelerate: Use recommended way to integrate NumPy with + Cython + +This approach follows +<https://cython.readthedocs.io/en/latest/src/tutorial/numpy.html#adding-types>. +--- a/accelerate/src/numpy_formathandler.pyx ++++ b/accelerate/src/numpy_formathandler.pyx +@@ -23,7 +23,6 @@ cdef extern from "numpy/arrayobject.h": + cdef np.ndarray PyArray_Zeros(int nd, np.npy_intp* dims, np.dtype, int fortran) + cdef np.ndarray PyArray_EnsureArray(object) + cdef int PyArray_FillWithScalar(np.ndarray, object) +- cdef void import_array() + cdef void* PyArray_DATA( np.ndarray ) + cdef int PyArray_NDIM( np.ndarray ) + cdef int *PyArray_DIMS( np.ndarray ) +@@ -227,4 +226,4 @@ cdef class NumpyHandler(FormatHandler): + + # Cython numpy tutorial neglects to mention this AFAICS + # get segfaults without it +-import_array() ++np.import_array() diff --git a/dev-python/pyopengl-accelerate/files/pyopengl-accelerate-3.1.8-numpy-2.0.patch b/dev-python/pyopengl-accelerate/files/pyopengl-accelerate-3.1.8-numpy-2.0.patch new file mode 100644 index 000000000000..a7d1c50db4ed --- /dev/null +++ b/dev-python/pyopengl-accelerate/files/pyopengl-accelerate-3.1.8-numpy-2.0.patch @@ -0,0 +1,171 @@ +From 20213b913f4a396752c515cafd7ee2ea53ab1fcf Mon Sep 17 00:00:00 2001 +From: Paul Zander <negril.nx+gentoo@gmail.com> +Date: Thu, 20 Jun 2024 17:03:20 +0200 +Subject: [PATCH 1/2] add requirements + +Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> +--- a/requirements.txt ++++ b/requirements.txt +@@ -0,0 +1,4 @@ ++numpy>=2.0.0 ++pytest>=8.2.2 ++setuptools>=70.0.0 ++Cython>=3.0.10 +\ No newline at end of file +-- +2.45.2 + + +From bfb5c7005917fc5b4cb71e17b2ed8cc015828f1b Mon Sep 17 00:00:00 2001 +From: Paul Zander <negril.nx+gentoo@gmail.com> +Date: Thu, 20 Jun 2024 21:40:28 +0200 +Subject: [PATCH 1/5] numpy-2.0 define_macros + +Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> +--- a/setup.py ++++ b/setup.py +@@ -45,7 +45,7 @@ def cython_extension( + # *cython* itself is using the deprecated api, and the + # deprecated APIs are actually providing the attributes + # that we use throughout our code... +- # ('NPY_NO_DEPRECATED_API','NPY_1_7_API_VERSION'), ++ ('NPY_NO_DEPRECATED_API', 'NPY_2_0_API_VERSION'), + ], + compiler_directives={'language_level': "3"} if have_cython else {}, + ) +-- +2.45.2 + + +From b352289a51b2629917b59ee2b35569651436af70 Mon Sep 17 00:00:00 2001 +From: Paul Zander <negril.nx+gentoo@gmail.com> +Date: Thu, 20 Jun 2024 21:42:33 +0200 +Subject: [PATCH 2/5] python-3.11-PyMemoryView_GetContiguous + +Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> +--- a/src/buffers_formathandler.pyx ++++ b/src/buffers_formathandler.pyx +@@ -73,8 +73,8 @@ cdef class MemoryviewHandler(FormatHandler): + # TODO: respect no-copy flag! + instance = PyMemoryView_GetContiguous( + instance, +- PyBUF_STRIDES|PyBUF_FORMAT|PyBUF_C_CONTIGUOUS, + 'C' ++ PyBUF_WRITE, + ) + return instance + cdef c_from_param( self, object instance, object typeCode ): +-- +2.45.2 + + +From 86268a423c994f0808bd745ac4b0dfe69c8682ad Mon Sep 17 00:00:00 2001 +From: Paul Zander <negril.nx+gentoo@gmail.com> +Date: Thu, 20 Jun 2024 21:43:32 +0200 +Subject: [PATCH 3/5] enable conversion to C char + +Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> +--- a/src/buffers_formathandler.pyx ++++ b/src/buffers_formathandler.pyx +@@ -73,8 +73,8 @@ cdef class MemoryviewHandler(FormatHandler): + # TODO: respect no-copy flag! + instance = PyMemoryView_GetContiguous( + instance, +- 'C' + PyBUF_WRITE, ++ b'C' + ) + return instance + cdef c_from_param( self, object instance, object typeCode ): +-- +2.45.2 + + +From 8d8618cd4d318ace3ecabe823da0dcfdae2fb0e5 Mon Sep 17 00:00:00 2001 +From: Paul Zander <negril.nx+gentoo@gmail.com> +Date: Thu, 20 Jun 2024 21:44:53 +0200 +Subject: [PATCH 4/5] set language_level + +Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> +--- a/setup.py ++++ b/setup.py +@@ -47,7 +47,6 @@ def cython_extension( + # that we use throughout our code... + ('NPY_NO_DEPRECATED_API', 'NPY_2_0_API_VERSION'), + ], +- compiler_directives={'language_level': "3"} if have_cython else {}, + ) + + +@@ -116,6 +115,8 @@ if ( # Prevents running of setup during code introspection imports + extraArguments["cmdclass"] = { + "build_ext": build_ext, + } ++ for e in extensions: ++ e.cython_directives = {'language_level': "3"} + setup( + options={ + "sdist": { +--- a/src/numpy_formathandler.pyx ++++ b/src/numpy_formathandler.pyx +@@ -1,5 +1,5 @@ + """Accelerator for numpy format handler operations""" +-#cython: language_level=3 ++# cython: language_level=3 + from ctypes import c_void_p + import numpy as np + cimport numpy as np +-- +2.45.2 + + +From 6cd6e7c053e3268086e90df6d1297941cbce93f2 Mon Sep 17 00:00:00 2001 +From: Paul Zander <negril.nx+gentoo@gmail.com> +Date: Thu, 20 Jun 2024 21:46:46 +0200 +Subject: [PATCH 5/5] drop old cython numpy definitions + +Signed-off-by: Paul Zander <negril.nx+gentoo@gmail.com> +--- a/src/numpy_formathandler.pyx ++++ b/src/numpy_formathandler.pyx +@@ -3,36 +3,18 @@ + from ctypes import c_void_p + import numpy as np + cimport numpy as np ++from numpy cimport * + from OpenGL_accelerate.formathandler cimport FormatHandler +-import traceback, weakref + from OpenGL.error import CopyError + from OpenGL._bytes import bytes,unicode + +-cdef extern from "Python.h": +- cdef void Py_INCREF( object ) +- + cdef extern from "numpy/arrayobject.h": + cdef np.ndarray PyArray_FromArray( np.ndarray, np.dtype, int ) +- cdef np.ndarray PyArray_ContiguousFromAny( object op, int, int, int max_depth) +- cdef int PyArray_Check( object ) +- cdef int PyArray_CheckScalar( object ) +- int NPY_ARRAY_CARRAY +- int NPY_ARRAY_FORCECAST +- int PyArray_ISCARRAY( np.ndarray instance ) +- int PyArray_ISCARRAY_RO( np.ndarray instance ) + cdef np.ndarray PyArray_Zeros(int nd, np.npy_intp* dims, np.dtype, int fortran) +- cdef np.ndarray PyArray_EnsureArray(object) +- cdef int PyArray_FillWithScalar(np.ndarray, object) +- cdef void* PyArray_DATA( np.ndarray ) +- cdef int PyArray_NDIM( np.ndarray ) +- cdef int *PyArray_DIMS( np.ndarray ) +- cdef int PyArray_DIM( np.ndarray, int dim ) +- cdef np.dtype PyArray_DESCR( np.ndarray ) +- cdef np.npy_intp PyArray_SIZE( np.ndarray ) + + cdef np.dtype array_descr( np.ndarray array ): + """Wrap PyArray_DESCR and incref to deal with the "borrowed" reference""" +- cdef np.dtype desc = PyArray_DESCR( array ) ++ cdef np.dtype desc = array.dtype + Py_INCREF(<object> desc) + return desc + +-- +2.45.2 + diff --git a/dev-python/pyopengl-accelerate/pyopengl-accelerate-3.1.8-r1.ebuild b/dev-python/pyopengl-accelerate/pyopengl-accelerate-3.1.8-r1.ebuild new file mode 100644 index 000000000000..a2b0f657fce8 --- /dev/null +++ b/dev-python/pyopengl-accelerate/pyopengl-accelerate-3.1.8-r1.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2024 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_{10..13} ) + +inherit distutils-r1 + +DESCRIPTION="Accelerate module for PyOpenGL" +HOMEPAGE=" + https://pyopengl.sourceforge.net/ + https://github.com/mcfletch/pyopengl/ + https://pypi.org/project/PyOpenGL-accelerate/ +" + +if [[ ${PV} = *9999* ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/mcfletch/pyopengl.git" + S="${S}/accelerate" +else + MY_P=pyopengl-release-${PV} + SRC_URI=" + https://github.com/mcfletch/pyopengl/archive/release-${PV}.tar.gz + -> ${MY_P}.gh.tar.gz + " + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + S=${WORKDIR}/${MY_P}/accelerate +fi + +LICENSE="BSD" +SLOT="0" +IUSE="numpy" + +DEPEND=" + numpy? ( + dev-python/numpy:=[${PYTHON_USEDEP}] + ) +" +RDEPEND=" + ${DEPEND} + dev-python/pyopengl[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_prepare() { + default + + touch requirements.txt || die + + eapply -p2 "${FILESDIR}/${PN}-3.1.8-gcc-14.patch" + + eapply -p1 "${FILESDIR}/${PN}-3.1.8-numpy-2.0.patch" +} + +src_configure() { + rm src/*.c || die + + if ! use numpy; then + cat > "${T}"/numpy.py <<-EOF || die + raise ImportError("building numpy extension disabled") + EOF + fi +} + +python_compile() { + local -x PYTHONPATH=${T}:${PYTHONPATH} + distutils-r1_python_compile +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + cd "${T}" || die + epytest "${S}"/tests +} diff --git a/dev-python/pyopengl-accelerate/pyopengl-accelerate-9999.ebuild b/dev-python/pyopengl-accelerate/pyopengl-accelerate-9999.ebuild new file mode 100644 index 000000000000..a2b0f657fce8 --- /dev/null +++ b/dev-python/pyopengl-accelerate/pyopengl-accelerate-9999.ebuild @@ -0,0 +1,81 @@ +# Copyright 1999-2024 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_{10..13} ) + +inherit distutils-r1 + +DESCRIPTION="Accelerate module for PyOpenGL" +HOMEPAGE=" + https://pyopengl.sourceforge.net/ + https://github.com/mcfletch/pyopengl/ + https://pypi.org/project/PyOpenGL-accelerate/ +" + +if [[ ${PV} = *9999* ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/mcfletch/pyopengl.git" + S="${S}/accelerate" +else + MY_P=pyopengl-release-${PV} + SRC_URI=" + https://github.com/mcfletch/pyopengl/archive/release-${PV}.tar.gz + -> ${MY_P}.gh.tar.gz + " + KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux" + S=${WORKDIR}/${MY_P}/accelerate +fi + +LICENSE="BSD" +SLOT="0" +IUSE="numpy" + +DEPEND=" + numpy? ( + dev-python/numpy:=[${PYTHON_USEDEP}] + ) +" +RDEPEND=" + ${DEPEND} + dev-python/pyopengl[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/cython[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest + +src_prepare() { + default + + touch requirements.txt || die + + eapply -p2 "${FILESDIR}/${PN}-3.1.8-gcc-14.patch" + + eapply -p1 "${FILESDIR}/${PN}-3.1.8-numpy-2.0.patch" +} + +src_configure() { + rm src/*.c || die + + if ! use numpy; then + cat > "${T}"/numpy.py <<-EOF || die + raise ImportError("building numpy extension disabled") + EOF + fi +} + +python_compile() { + local -x PYTHONPATH=${T}:${PYTHONPATH} + distutils-r1_python_compile +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + cd "${T}" || die + epytest "${S}"/tests +} diff --git a/dev-python/pytest/Manifest b/dev-python/pytest/Manifest index 5dceaf3cda1d..5de3611f8dfc 100644 --- a/dev-python/pytest/Manifest +++ b/dev-python/pytest/Manifest @@ -4,9 +4,11 @@ DIST pytest-8.0.2.tar.gz 1396924 BLAKE2B ad95d246f5592cfe54faea6c96e38cb60d3e271 DIST pytest-8.1.2.tar.gz 1410060 BLAKE2B 1379047c5ba434e98a383756c53a9cf31dc3bd3abcc49820f872b9110ec70906ca14080ce17ed2770b71195fbd79627a0eb16ee00429e165368144b20153a02b SHA512 a6ffae29da98ee4c357ebb03f00c4bc1a33f093ef867ad118841695548468c7f229eaa2c029a2ce3b158bbb0a65be5014e91555a223d04c1c72e614cb1d00546 DIST pytest-8.2.2.tar.gz 1427980 BLAKE2B 7f343e5ff05e4d26f816595ad1c52ee2b79d38029e75e3641ed0bbb7477e0a47e5ae48ebc3058a8e9f374cd1a391d360d9eda73eca2e41d8b533eda7948aedcb SHA512 896192f0d41f3fef49915dfea6ae33dbb939f6bbe54de27861bf1554bf87f910702169293e923af9bc40466e7f806aa19ca54cbe41a848c233f70b52bb86a63c DIST pytest-8.3.3.tar.gz 1442487 BLAKE2B a7b262806ac2ef8700034f9d6239ef1f69c865c100a3d2b00c07adb5957e59b664cf2d39b5d2c1352f28fdd8045e8a2bf193543ba67f67c4853b21f95e4f0a6a SHA512 7cdf76e33f20b1b2323de7341c203caa8d7b5505b5e774c55c6e30876e5b6f1405e12d54e7f1f0a1b15dbc0392bd83c7bb1928d25f06db3a15498c9d4cb4658b +DIST pytest-8.3.4.tar.gz 1445919 BLAKE2B 4114e8621c50f5c02fdf88de59400b2e24663b10354445623a7d6d9255d827eff2b71f009596e6521b9d3e84417a9f39cb46ffcb55833bec08c6327f300e8b0d SHA512 e11034864dc6dcc2d0297658b9e01e5717c7d878aa64d5020474ffc784287046ffa60e5c1ddb814f2a870401ec997c574933144cc0d925360e1e595312179b15 EBUILD pytest-7.4.4.ebuild 3790 BLAKE2B 423ab7e603e423d33317e40e856147a47bc2146c70b1b148f1aa29032697db22f25608857399aa64d8ebe3f5108990a045ec1c36b09ac6d635517063e33aa383 SHA512 2a4da4231c13cbbbceb1368da5fb1164b4dbebc733bf5001f4a1a13d6e1dfe8fd14427473b88b1b252949f7344b18b6eddef326cf4458de47cec3618e8bcea43 EBUILD pytest-8.0.2.ebuild 3762 BLAKE2B b42378cb5a9d500692c7d56ed4afca8d3617e7955b21978f450c3715064fd0aa0513f31055d26b2d5b48c4fbebc285a957819f6540e37ad3ea64dcb4536cae2c SHA512 2d14cb001ad4a702152715e39a17c85aed9c4c95f2433719eaa9f1d2a165e0eeb9c071b707f1f510d9913933dd0af81f2326b7bcda90f95e7f68f326d2dbeb70 EBUILD pytest-8.1.2.ebuild 3743 BLAKE2B 5c6d59e9ff19dc924eae975b1e2a86f261a12703712fce0590a2ba70f82e18b5eabdfdd63fe7622fbcbbde7c8ef17b5fa638f92f412b7611f1566f10002095bc SHA512 8be8ca9eae330873aa9ccc47e9fac24ebd5c60fb20d08d9a616cbdf64dcf6be3efdd361da6f94f1296dcaa3d789c9a45b0e82975d3e3a75e60b6cc6c819be021 EBUILD pytest-8.2.2.ebuild 3699 BLAKE2B 008e49cf2e768cd64ccef4b79224d8da066b9d7e82778443f6ffe5d24521e7611889c8c23447c5d63c36c51aa39dbb4801d0b35c76ef30941a0a44baffaac058 SHA512 52c4e2786d694ad6ac5611d156981ab56cb96a8f9ef71014fb46bf98c1937f661a3578f394474786b18ff95389b16026b670429f8affbc8a5d25f9468952fd67 EBUILD pytest-8.3.3.ebuild 3711 BLAKE2B 3b9cf57b50e87323d33f4a5f9b06d012492a5df24529182095c1300dde0e4f2e7b0b6769ef331e87e2ccc63a3686e09d988a0be62ec51e4056976c44f5e55d65 SHA512 5eaea7b2d6e2b979fc62c474429a75af94f6059817ed12518ae2f0a352f734ffb24f5b5f8e63a0f72faa5ade30072d4ea603c11eab16b0b619db0b4f52843d6b +EBUILD pytest-8.3.4.ebuild 3719 BLAKE2B 5c7f3add65a847a9379ea3926823e90e559e6dd5482deb304dea5b8df34ff7528d9ee842331b144518703058de885ae0da10dab87ef64c1b3d72722ac2c06cd4 SHA512 f7f6de97a543a33cf00c6e325306d6f4aa238afd630e94969ae6419c46954fa7b77c451cff65f79e17ea1d537533bd8224f1b2d28e2f08feec53a64e8b480ebe MISC metadata.xml 391 BLAKE2B 48d31ecb4c8b171ee4e84a58399211368ddc00dfb5dbe0999f96e03d744294cd4fd5263e90600c93d1f13c7da21052faef84b6d0d56709f3559e37b3392ca31d SHA512 6e9caa57eda23995d21df6f52c52d5868e1ff56abb6c1351ffc0fe14b771639473481a2630e659caaff83f0255379aa2d012175af52a0de41221b27d3ab2f425 diff --git a/dev-python/pytest/pytest-8.3.4.ebuild b/dev-python/pytest/pytest-8.3.4.ebuild new file mode 100644 index 000000000000..697e86b06947 --- /dev/null +++ b/dev-python/pytest/pytest-8.3.4.ebuild @@ -0,0 +1,116 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_TESTED=( python3_{10..13} pypy3 ) +PYTHON_COMPAT=( "${PYTHON_TESTED[@]}" python3_13t ) + +inherit distutils-r1 pypi + +DESCRIPTION="Simple powerful testing with Python" +HOMEPAGE=" + https://pytest.org/ + https://github.com/pytest-dev/pytest/ + https://pypi.org/project/pytest/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-python/iniconfig[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + <dev-python/pluggy-2[${PYTHON_USEDEP}] + >=dev-python/pluggy-1.5.0[${PYTHON_USEDEP}] + $(python_gen_cond_dep ' + >=dev-python/exceptiongroup-1.0.0_rc8[${PYTHON_USEDEP}] + >=dev-python/tomli-1[${PYTHON_USEDEP}] + ' 3.10) + !!<=dev-python/flaky-3.7.0-r5 +" +BDEPEND=" + >=dev-python/setuptools-scm-6.2.3[${PYTHON_USEDEP}] + test? ( + ${RDEPEND} + $(python_gen_cond_dep ' + dev-python/argcomplete[${PYTHON_USEDEP}] + >=dev-python/attrs-19.2[${PYTHON_USEDEP}] + >=dev-python/hypothesis-3.56[${PYTHON_USEDEP}] + dev-python/mock[${PYTHON_USEDEP}] + >=dev-python/pygments-2.7.2[${PYTHON_USEDEP}] + dev-python/pytest-xdist[${PYTHON_USEDEP}] + dev-python/requests[${PYTHON_USEDEP}] + dev-python/xmlschema[${PYTHON_USEDEP}] + ' "${PYTHON_TESTED[@]}") + ) +" + +src_test() { + # workaround new readline defaults + echo "set enable-bracketed-paste off" > "${T}"/inputrc || die + local -x INPUTRC="${T}"/inputrc + distutils-r1_src_test +} + +python_test() { + if ! has "${EPYTHON}" "${PYTHON_TESTED[@]/_/.}"; then + einfo "Skipping tests on ${EPYTHON}" + return + fi + + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + local -x COLUMNS=80 + + local EPYTEST_DESELECT=( + # broken by epytest args + testing/test_warnings.py::test_works_with_filterwarnings + + # tend to be broken by random pytest plugins + # (these tests patch PYTEST_DISABLE_PLUGIN_AUTOLOAD out) + testing/test_helpconfig.py::test_version_less_verbose + testing/test_helpconfig.py::test_version_verbose + testing/test_junitxml.py::test_random_report_log_xdist + testing/test_junitxml.py::test_runs_twice_xdist + testing/test_terminal.py::TestProgressOutputStyle::test_xdist_normal + testing/test_terminal.py::TestProgressOutputStyle::test_xdist_normal_count + testing/test_terminal.py::TestProgressOutputStyle::test_xdist_verbose + testing/test_terminal.py::TestProgressWithTeardown::test_xdist_normal + testing/test_terminal.py::TestTerminalFunctional::test_header_trailer_info + testing/test_terminal.py::TestTerminalFunctional::test_no_header_trailer_info + + # unstable with xdist + testing/test_terminal.py::TestTerminalFunctional::test_verbose_reporting_xdist + + # TODO (XPASS) + testing/test_debugging.py::TestDebuggingBreakpoints::test_pdb_not_altered + testing/test_debugging.py::TestPDB::test_pdb_interaction_capturing_simple + testing/test_debugging.py::TestPDB::test_pdb_interaction_capturing_twice + testing/test_debugging.py::TestPDB::test_pdb_with_injected_do_debug + testing/test_debugging.py::test_pdb_suspends_fixture_capturing + + # setuptools warnings + testing/acceptance_test.py::TestInvocationVariants::test_cmdline_python_namespace_package + + # PDB tests seem quite flaky (they time out often) + testing/test_debugging.py::TestPDB + ) + + case ${EPYTHON} in + pypy3) + EPYTEST_DESELECT+=( + # regressions on pypy3.9 + # https://github.com/pytest-dev/pytest/issues/9787 + testing/test_skipping.py::test_errors_in_xfail_skip_expressions + testing/test_unraisableexception.py + ) + ;; + esac + + local EPYTEST_XDIST=1 + epytest +} diff --git a/dev-python/python-multipart/Manifest b/dev-python/python-multipart/Manifest index b3796b641a80..c5df7c23ab21 100644 --- a/dev-python/python-multipart/Manifest +++ b/dev-python/python-multipart/Manifest @@ -1,7 +1,9 @@ DIST python-multipart-0.0.12.gh.tar.gz 92904 BLAKE2B 25076627fdcb3a4bfc9eda74218f9d6d30ea18517da00c312f50c9d3ae156894b29e83bd38d4e11d7d06732999ae9640243e660d2a037253b9f511772a6c737b SHA512 271ed29f3025be5c058a56ec56ce373348dc27b4c8130c17609bd48d73fc975b2ac8387d4989be578e1be01a618aad87c1d3ec3a37dbe73dc45813ec961842d0 DIST python-multipart-0.0.17.gh.tar.gz 94416 BLAKE2B daf9f5e2a94d804216fbf18778295cec3270139d5912ace80ab84d57d32115d7a53563d429f81fd2f0f55b9fe30b58f62ef1d095414f7bfe6bd3951dbb9d9e89 SHA512 52b5d5b154a18a2ae34ce7931076278b5a5edb2cbca5350c6898fd675fb57755cefc97642b2edae7e7d9903d877430da85f73347b9fcaaf1c20fa09dc12799fd DIST python-multipart-0.0.18.gh.tar.gz 95540 BLAKE2B fb68867f6035ee463c69c89df6b792bd8506df03386a1d61f223aa0fb63c2e6604c76377e9c356e55280c39e20052eced7c48869cf9661980626586054379ae9 SHA512 d4b888d95cbbbb70a66a8d756dfa479e96bf9cb7e754f8630a89e63dbdc06a9e237dd257c5924618030bfd03737d202029bbd5b50e483f72680177d3b0775629 +DIST python-multipart-0.0.19.gh.tar.gz 95805 BLAKE2B fcd22b383aab09cc9dd1eaf6b6859d406b3439fbfe3460761f147ab8230f4cae118e44d3f3f067c03d4ff508b655c8f84d120765e233c87ae11b014d2d544051 SHA512 cd4f1dc7b5b2e4b29dbccb62f71143dc5ecfad419c12aca2d780d8ef0f3fcc1ef9f7e129b56daa48caef04c95e2e365157b9d945a2e40a5693ba70b2d1d80686 EBUILD python-multipart-0.0.12.ebuild 658 BLAKE2B 4aab8ec01549b29855d383a393bf52c7dabd0b8ad9e291f1c89832653aa42b6d3abef5a6578f32c71d5aeca0b0f2ecfcd8da96749c1f7e413e6b95a8e6ef6f83 SHA512 68d1364a63b5a674d71d9142b712375f64cbbe84710c0495b5166966b9d43201b537b8a5ea0ce7b51c7320d55e26f5f35e4e74544120aeb77c4ffa8d61ba70c6 EBUILD python-multipart-0.0.17.ebuild 900 BLAKE2B 481dc6a2a690ca22ca5cb90a7be41d3c6df3a8b93d97e0d276d5c2cd5945fceead3f7e99edef6da13c6c92a2ec7d19ccd0fc010cb36a069ac7cd140d9a7f9788 SHA512 4f4f44d71e1727700b71512849fc9b5f9c6ae5cafb97b8e21e657ad70b5f24418de4386d31c018fa29170cce6a691fa63543c5d27ca8b649bb5b8f66e1e77777 EBUILD python-multipart-0.0.18.ebuild 908 BLAKE2B eb50291f00f8a6e2cc56dccba99cb41e329e7e66a85c970ce2a6822209a9a23e0cd458c203b4b0a26ecb4f2e2bc6042d97ba927df627d9a7bca41e813799d220 SHA512 ce3ccb1f4e8aae96bb571e9c27168c15a7f07a18473e102b81b968b7841dbce3ba483de4f28046c36c49783089ad83f1fb6987e523496cd55a30204053f8a76e +EBUILD python-multipart-0.0.19.ebuild 908 BLAKE2B eb50291f00f8a6e2cc56dccba99cb41e329e7e66a85c970ce2a6822209a9a23e0cd458c203b4b0a26ecb4f2e2bc6042d97ba927df627d9a7bca41e813799d220 SHA512 ce3ccb1f4e8aae96bb571e9c27168c15a7f07a18473e102b81b968b7841dbce3ba483de4f28046c36c49783089ad83f1fb6987e523496cd55a30204053f8a76e MISC metadata.xml 407 BLAKE2B 506414856dda2ccb7c2da00c350f73dcff5a3d9ea5897b96a7acf8973462c564b217c42cb922587378ca8c0e78f8a5a6a5aabb12bd93ca202bb29e377a6ad143 SHA512 4b61836d4f1834b8abe4c5a0e1620cefbee79665ffbd14326dc9b9b43252b519e2d3cd392c40b7356f3be705e3a38da565416e7294d02fb1817cda0e8b72a115 diff --git a/dev-python/python-multipart/python-multipart-0.0.19.ebuild b/dev-python/python-multipart/python-multipart-0.0.19.ebuild new file mode 100644 index 000000000000..5f4588cbad96 --- /dev/null +++ b/dev-python/python-multipart/python-multipart-0.0.19.ebuild @@ -0,0 +1,44 @@ +# Copyright 2022-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( pypy3 python3_{10..13} ) + +inherit distutils-r1 + +DESCRIPTION="A streaming multipart parser for Python" +HOMEPAGE=" + https://github.com/Kludex/python-multipart/ + https://pypi.org/project/python-multipart/ +" +SRC_URI=" + https://github.com/Kludex/python-multipart/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +BDEPEND=" + test? ( + dev-python/pyyaml[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_src_prepare + + # do not install the backwards compatibility package + # we're patching revdeps instead + rm -r multipart || die +} + +python_test() { + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} diff --git a/dev-python/pytools/Manifest b/dev-python/pytools/Manifest index 9611a790055d..4bccd54bb25e 100644 --- a/dev-python/pytools/Manifest +++ b/dev-python/pytools/Manifest @@ -1,7 +1,9 @@ DIST pytools-2024.1.15.tar.gz 77565 BLAKE2B 3f17e86ff07d52b7f749846a9da7ed176aed63402b22a8c2c7ad96f49a5a62f22463f2db111e2d01139212e2c489a22f2ea16d2e67840bd3d077a2d87fd75b88 SHA512 112832d9a826243c76600c80e6464aba9ad0ad11017befa04e8104ce84431f3da993c768cef441786c6458adee6c4bd067e235dc369918367c5acb9aebd903ec DIST pytools-2024.1.17.tar.gz 78163 BLAKE2B eac043f8f53fe82f76f21a3019e2fba4474345379ae9772023f40da5d284b2d146a7da2652c152d3d5990dab2ae1a6365713a325bdb469f54ef7bee2ed0cf69b SHA512 de15035ca129c5425a54c151d6be5fe8ec906e06c43cb40c09c86105441b328ff537b154f95d3bfb84289b4357fb67d2b0df027aeb80e1b9c8a9d197a37d8f11 +DIST pytools-2024.1.18.tar.gz 78666 BLAKE2B 0f572243e97ecfc6c7fdf18a951f48b0515490dd63580d56ee4c22f897047d7bb683da12a47e1856d584b76a832ac0054a2864b96b2a2c195da5c1ba89a5bd7c SHA512 573087445cdee84a34cddabb071d70a6f537c87557ab5c21ce4c1251a3e272d29719d2dc1d53ae02aa0587d14ba377213272a55c99422fb89130cee992b8e9b1 DIST pytools-2024.1.6.tar.gz 81344 BLAKE2B ff68e2606170bf54e3f609ee7f4cfe58e063f43dcfb2706d5ed7659ea2fde863e6315d0d81dff2e62a3378f195413561a927b0c1e7bedc06388cf4893c07b873 SHA512 a9e934f1cbaf0ace32420f9b74224a06ce8421ee291b837292133969c6788c4cc8bea01446cd4d1505aca9fa81e8ae0d3eacf60d3285186e66d67d5abe10ce3e EBUILD pytools-2024.1.15.ebuild 778 BLAKE2B 47aadac54dcb02188f7dd3d14c122a011e27999e57b50194884460271abb6ccd45d77af649d53094ebba8a4f12053252db624b0a0024817f1e8490cebb158686 SHA512 940c3f829df2bccbbb0134cf04131a09b48d75f25824ef094c256196c64ea9ad96280dcd13f96965560e98a42e07591353cf4b38e27968f138a83d5c99babea0 EBUILD pytools-2024.1.17.ebuild 780 BLAKE2B 8f1b2fdbdd7020a39bd658d3e236e1ba958e0c13bb1fbf9ac272c678256d92969044cfa4d88dc0bf011c977712b6574bc7dd159983530ad6dc6efdace8e8d581 SHA512 98db47b40d58d73a4e5c782d4aa6709f99c89b74eb5520e647ef212fb97f7f7e4474079799eacf8a52b731901b4cdb854f9a35628614227a20fc9e9a257c87c9 +EBUILD pytools-2024.1.18.ebuild 780 BLAKE2B 8f1b2fdbdd7020a39bd658d3e236e1ba958e0c13bb1fbf9ac272c678256d92969044cfa4d88dc0bf011c977712b6574bc7dd159983530ad6dc6efdace8e8d581 SHA512 98db47b40d58d73a4e5c782d4aa6709f99c89b74eb5520e647ef212fb97f7f7e4474079799eacf8a52b731901b4cdb854f9a35628614227a20fc9e9a257c87c9 EBUILD pytools-2024.1.6.ebuild 831 BLAKE2B b0402da628468a2977e2975b84cd0ce0060604d2de7864bd21d45d88270e7819decb9ee8d78078deb352107780da13461e36e0909ac68686c526d32a9e311243 SHA512 1fa17b25019dc6487332bf36042629b08b4214b4fb68e4f54e5b032f11cdc0eab6737ae731d86f5c4188b18a1d5dfb39ce056ff1b0c77aa612429d91e36ca528 MISC metadata.xml 390 BLAKE2B 3cd3f1c6df2c112e3828b55f4a4282495c24fb5f1869ee1c105710e517de738a767e30388c808432ce7e41ad5d14be4d56fb6ee7bcd62f9990262b145413ab20 SHA512 c28d8640d0b0c7d77ba18367ae5379b11747a67ace55a6f5910c2f5a4dd5d5816bb1a256a27e78fdad909de2947e5db84c16283604e216b393b5cde5c39e6b24 diff --git a/dev-python/pytools/pytools-2024.1.18.ebuild b/dev-python/pytools/pytools-2024.1.18.ebuild new file mode 100644 index 000000000000..2582190bc524 --- /dev/null +++ b/dev-python/pytools/pytools-2024.1.18.ebuild @@ -0,0 +1,31 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=hatchling +PYTHON_COMPAT=( python3_{10..13} ) +PYTHON_REQ_USE='sqlite' + +inherit distutils-r1 pypi + +DESCRIPTION="Collection of tools missing from the Python standard library" +HOMEPAGE=" + https://mathema.tician.de/software/pytools/ + https://github.com/inducer/pytools/ + https://pypi.org/project/pytools/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~riscv" + +# NB: numpy & siphash24 are an "extra" (optional) deps +RDEPEND=" + >=dev-python/numpy-1.6[${PYTHON_USEDEP}] + >=dev-python/platformdirs-2.2[${PYTHON_USEDEP}] + >=dev-python/siphash24-1.6[${PYTHON_USEDEP}] + >=dev-python/typing-extensions-4[${PYTHON_USEDEP}] +" + +distutils_enable_tests pytest diff --git a/dev-python/treq/Manifest b/dev-python/treq/Manifest index 9ca932644926..09c43ade984c 100644 --- a/dev-python/treq/Manifest +++ b/dev-python/treq/Manifest @@ -1,4 +1,4 @@ DIST treq-24.9.1.tar.gz 85614 BLAKE2B cce700ae1f18b7e97953c45cb835786655caf47a0e425944e58f94c76a33c5948920c38f89283f50b51624f365326045d6ebb163c86644069f5bf548e137b9c0 SHA512 b8ed6ed5262073559babe8d0413a1f5369215a41ac7459441172a9086c654cf1dc7e51a0497d4c714726ae02d2163760cddde7008e360f37ebb4586b82409bb8 -EBUILD treq-24.9.1-r1.ebuild 1320 BLAKE2B 02ebefe56ecb372424cf45ce2c109f0a87baa471a45b39468bb6a862883939b1c91fbe7f819b93c6322f89cb42f44e22f8250b60387b565f32060f92a9f51aec SHA512 803fe7d1fdae23332924aabcd21e6d74ae408079c71e92ce4222d9fee9c725f9be68442c65963f46c7d9c63b53a84fe949d4bdeb0a6143e683ceec67721d3179 +EBUILD treq-24.9.1-r1.ebuild 1319 BLAKE2B f4a5110d70e0a7d1119fdc9220dcc59a12ecd8d29f541c750f8b0bb68c5517c8693135e074525aae2c1d288eacdf7abba5ea874e53ba218863d0aa671d37db67 SHA512 e81ed5ccca09a2d1f931b542826827b35de4b149bab0bb553046e8e7307bb8a6d81d6a0c31dff486bcea0fa9ca2e1d640d00ec7230d614d0a6624186a91e8796 EBUILD treq-24.9.1.ebuild 1129 BLAKE2B 16a4a17c4d8d24798a1def4dcb205e89483a1b829d1188f00533536e9cf9030943fc979d55633c33c3e0bf8286271e9285346302fd2a5deba7566e54f892197d SHA512 ba61d86364ca58de1938fedc41efbc4b86e708c3532ba9e39d4cf0acb0809afb72bde132b5587889c0c0ae2aba7a958a25431530de66578bf89796911691af76 MISC metadata.xml 675 BLAKE2B 503b618157c565652f3fcd2a4fc7b2a6fe7e4208e965b956ee166f3d682f0b7e2865f88f7b9c3227a55cb67ca4f21d61b11e6194d4f1e336abc8a9e6471e99c2 SHA512 a09304f23b2934c596ba809a93146be20f493d3326b9ac54c846654f7439218caa04f7b138efc8002061611336aac8be3747e3407ef67d1af640a64e07ebeb4f diff --git a/dev-python/treq/treq-24.9.1-r1.ebuild b/dev-python/treq/treq-24.9.1-r1.ebuild index 8e78714731fe..0803a0589ed3 100644 --- a/dev-python/treq/treq-24.9.1-r1.ebuild +++ b/dev-python/treq/treq-24.9.1-r1.ebuild @@ -16,7 +16,7 @@ HOMEPAGE=" LICENSE="MIT" SLOT="0" -KEYWORDS="~amd64 ~arm64 ~ppc64 ~riscv ~x86" +KEYWORDS="amd64 ~arm64 ~ppc64 ~riscv ~x86" IUSE="test" RESTRICT="!test? ( test )" diff --git a/dev-python/twine/Manifest b/dev-python/twine/Manifest index 2befefa53f8f..95cc81a78174 100644 --- a/dev-python/twine/Manifest +++ b/dev-python/twine/Manifest @@ -1,3 +1,5 @@ DIST twine-5.1.1.gh.tar.gz 221931 BLAKE2B a95d50e52bde5db64c6ce5b57097188e9cb88763c91f337c3e552ca34bae34882d87bced4b0c55a292de185fce10384edf514b55373c4456ff252471076bcb28 SHA512 95f059235e32134a5320c0835befa2eed6eff35c56685afe4848224042c2e2af484db72f20fd0cfbe979cce8d495e8bb2d2ea38aca2c53ca7af8de378816bedf +DIST twine-6.0.1.gh.tar.gz 223827 BLAKE2B ab88eb21908954ee7c32744ae9f7ccd7d50cb2b5207917144ef559e142837c89625596dea2c1bb0be21858bb0967690df999bb8a123e01beb5637a025dc490f9 SHA512 4fa7727d0728da3e05eaca068bf1dd85656225dd61958666ec0747359ee6bd88b25fd443d6c77bd8db245e71418cf8e5b594a6559ac1ecaafe3c079ecaefadba EBUILD twine-5.1.1-r1.ebuild 2299 BLAKE2B 18350daa1c655fb26341abce49340dcd0200aa320eed3c1b73f9fef145c521981510a7fb83ce1b28c8eac8bd1c49516d39fa66d87e522651b4f3d7237bfeb73f SHA512 b19446d597c425c9daa041050958f0131e2a469a5958e3afbc4cbf77feee728bd32491e524fe7592a6e38f3bf1254840f56f3453131a5fae068eeec8a3c20c3d +EBUILD twine-6.0.1.ebuild 2010 BLAKE2B 2b1a888e43842d10a1d393dfc9125c3172f4e090b5f81573e807651db23985c2f2e09ef9dfcc289795440c61a8f8a23fd287e41c4c81c19631112e9468665ddf SHA512 691f793f6dd7d08bacc3fbd1e5b46d79ddbc6d5478ea2a488ca255d3b910a4a5a352024d5d268db3a79b5daed5920d6b27e0c2f10df19e6aae82f22020db5a1f MISC metadata.xml 383 BLAKE2B e2a596604a2f3e40ddd0196ea79105e318f8a04d9e5a2c7e458d403d215af1371f2a526fa7d8cbc430f20747f7b65ed6c8546263fb8a54ddd8a6db487c358634 SHA512 cd5c1f1ed89dc5c314975fc5b503108d6828db37826ebba98d6edd580b72cd41867e19e65a9a022f8c07babadecd810f21febeb8a015c51eecec412b9df4f0d5 diff --git a/dev-python/twine/twine-6.0.1.ebuild b/dev-python/twine/twine-6.0.1.ebuild new file mode 100644 index 000000000000..5c1d9c150e09 --- /dev/null +++ b/dev-python/twine/twine-6.0.1.ebuild @@ -0,0 +1,77 @@ +# 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_{10..13} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Collection of utilities for publishing packages on PyPI" +HOMEPAGE=" + https://twine.readthedocs.io/ + https://github.com/pypa/twine/ + https://pypi.org/project/twine/ +" +SRC_URI=" + https://github.com/pypa/twine/archive/${PV}.tar.gz + -> ${P}.gh.tar.gz +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~arm ~arm64 ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" + +RDEPEND=" + >=dev-python/colorama-0.4.3[${PYTHON_USEDEP}] + >=dev-python/keyring-15.1[${PYTHON_USEDEP}] + dev-python/packaging[${PYTHON_USEDEP}] + >=dev-python/pkginfo-1.8.1[${PYTHON_USEDEP}] + >=dev-python/readme-renderer-35.0[${PYTHON_USEDEP}] + >=dev-python/requests-2.20.0[${PYTHON_USEDEP}] + >=dev-python/requests-toolbelt-0.8.0[${PYTHON_USEDEP}] + >=dev-python/rfc3986-1.4.0[${PYTHON_USEDEP}] + >=dev-python/rich-12.0.0[${PYTHON_USEDEP}] + >=dev-python/urllib3-1.26.0[${PYTHON_USEDEP}] +" +BDEPEND=" + dev-python/setuptools-scm[${PYTHON_USEDEP}] + test? ( + dev-python/build[${PYTHON_USEDEP}] + dev-python/jaraco-envs[${PYTHON_USEDEP}] + dev-python/jaraco-functools[${PYTHON_USEDEP}] + dev-python/munch[${PYTHON_USEDEP}] + dev-python/portend[${PYTHON_USEDEP}] + dev-python/pretend[${PYTHON_USEDEP}] + dev-python/pypiserver[${PYTHON_USEDEP}] + ) +" + +distutils_enable_tests pytest + +python_prepare_all() { + distutils-r1_python_prepare_all + + # pytest-socket dep relevant only to test_integration, and upstream + # disables it anyway + sed -i -e '/--disable-socket/d' pytest.ini || die + sed -i -e '/--cov/d' pytest.ini || die + + export SETUPTOOLS_SCM_PRETEND_VERSION=${PV} +} + +python_test() { + local EPYTEST_IGNORE=( + # Internet + tests/test_integration.py + ) + local EPYTEST_DESELECT=( + # Avoid needing heavy virtualx + tests/test_auth.py::test_warns_for_empty_password + ) + + local -x COLUMNS=80 + local -x PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 + epytest +} |