diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-12 19:09:37 -0500 |
| commit | b590c8d7572b727d565cc0b8ff660d43569845de (patch) | |
| tree | 06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/seaborn | |
| parent | 24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff) | |
| download | baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.zip | |
Adding metadata
Diffstat (limited to 'dev-python/seaborn')
| -rw-r--r-- | dev-python/seaborn/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/seaborn/files/seaborn-0.13.2-test.patch | 82 | ||||
| -rw-r--r-- | dev-python/seaborn/metadata.xml | 25 | ||||
| -rw-r--r-- | dev-python/seaborn/seaborn-0.13.2.ebuild | 53 |
4 files changed, 161 insertions, 0 deletions
diff --git a/dev-python/seaborn/Manifest b/dev-python/seaborn/Manifest new file mode 100644 index 000000000000..9ea5f0535596 --- /dev/null +++ b/dev-python/seaborn/Manifest @@ -0,0 +1 @@ +DIST seaborn-0.13.2.tar.gz 1457696 BLAKE2B 82caa82da487cb880318313e2af270ac409ecde8f0b26f7c7ba39b1763f9f247fa9a4f7c90f989467004e84c41b7eeb9561d1a59e0a23d4d6994ae63e71c1894 SHA512 5a2f11865d0f5b8a9281f0dac1eaf4cd205828293b3e0a2f7f1c24e7d20c989582ecc7e40c32a0fab6736de1f7e126293d9ae5c270e9aa4e93704e86b6b51ef6 diff --git a/dev-python/seaborn/files/seaborn-0.13.2-test.patch b/dev-python/seaborn/files/seaborn-0.13.2-test.patch new file mode 100644 index 000000000000..9b2c3235d760 --- /dev/null +++ b/dev-python/seaborn/files/seaborn-0.13.2-test.patch @@ -0,0 +1,82 @@ +From ab486df804b0b306d2b1d407eec5185bcdd40543 Mon Sep 17 00:00:00 2001 +From: Michael Waskom <mwaskom@gmail.com> +Date: Sat, 25 Jan 2025 20:52:38 -0500 +Subject: [PATCH 2/6] Address np.in1d deprecation + +--- + tests/test_categorical.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/tests/test_categorical.py b/tests/test_categorical.py +index 3df7824787..21db60beb7 100644 +--- a/tests/test_categorical.py ++++ b/tests/test_categorical.py +@@ -1206,7 +1206,7 @@ def check_boxen(self, patches, data, orient, pos, width=0.8): + + assert verts[pos_idx].min().round(4) >= np.round(pos - width / 2, 4) + assert verts[pos_idx].max().round(4) <= np.round(pos + width / 2, 4) +- assert np.in1d( ++ assert np.isin( + np.percentile(data, [25, 75]).round(4), verts[val_idx].round(4).flat + ).all() + assert_array_equal(verts[val_idx, 1:, 0], verts[val_idx, :-1, 2]) + +From 2eada7ee9f69a97b43c7c6b41b3c56feb756a5c2 Mon Sep 17 00:00:00 2001 +From: Michael Waskom <mwaskom@gmail.com> +Date: Mon, 16 Dec 2024 07:23:31 -0500 +Subject: [PATCH] Fix tick visibility introspection on 3.10 + +--- + tests/_core/test_plot.py | 25 +++++++++++++------------ + 1 file changed, 13 insertions(+), 12 deletions(-) + +diff --git a/tests/_core/test_plot.py b/tests/_core/test_plot.py +index 5554ea650f..50851646cf 100644 +--- a/tests/_core/test_plot.py ++++ b/tests/_core/test_plot.py +@@ -1782,6 +1782,17 @@ def test_labels(self, long_df): + + class TestLabelVisibility: + ++ def has_xaxis_labels(self, ax): ++ if _version_predates(mpl, "3.7"): ++ # mpl3.7 added a getter for tick params, but both yaxis and xaxis return ++ # the same entry of "labelleft" instead of "labelbottom" for xaxis ++ return len(ax.get_xticklabels()) > 0 ++ elif _version_predates(mpl, "3.10"): ++ # Then I guess they made it labelbottom in 3.10? ++ return ax.xaxis.get_tick_params()["labelleft"] ++ else: ++ return ax.xaxis.get_tick_params()["labelbottom"] ++ + def test_single_subplot(self, long_df): + + x, y = "a", "z" +@@ -1852,12 +1863,7 @@ def test_1d_column_wrapped(self): + for s in subplots[1:]: + ax = s["ax"] + assert ax.xaxis.get_label().get_visible() +- # mpl3.7 added a getter for tick params, but both yaxis and xaxis return +- # the same entry of "labelleft" instead of "labelbottom" for xaxis +- if not _version_predates(mpl, "3.7"): +- assert ax.xaxis.get_tick_params()["labelleft"] +- else: +- assert len(ax.get_xticklabels()) > 0 ++ assert self.has_xaxis_labels(ax) + assert all(t.get_visible() for t in ax.get_xticklabels()) + + for s in subplots[1:-1]: +@@ -1882,12 +1888,7 @@ def test_1d_row_wrapped(self): + for s in subplots[-2:]: + ax = s["ax"] + assert ax.xaxis.get_label().get_visible() +- # mpl3.7 added a getter for tick params, but both yaxis and xaxis return +- # the same entry of "labelleft" instead of "labelbottom" for xaxis +- if not _version_predates(mpl, "3.7"): +- assert ax.xaxis.get_tick_params()["labelleft"] +- else: +- assert len(ax.get_xticklabels()) > 0 ++ assert self.has_xaxis_labels(ax) + assert all(t.get_visible() for t in ax.get_xticklabels()) + + for s in subplots[:-2]: diff --git a/dev-python/seaborn/metadata.xml b/dev-python/seaborn/metadata.xml new file mode 100644 index 000000000000..e5a63afc0837 --- /dev/null +++ b/dev-python/seaborn/metadata.xml @@ -0,0 +1,25 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://docs.baldeagleos.com/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>python@gentoo.org</email> + <name>Python</name> + </maintainer> + <longdescription lang="en"> + Seaborn is a library for making attractive and informative statistical graphics + in Python. It is built on top of matplotlib and tightly integrated with the + PyData stack, including support for numpy and pandas data structures and + statistical routines from scipy and statsmodels. + + Some of the features that seaborn offers are + + * Several built-in themes that improve on the default matplotlib aesthetics + * Tools for choosing color palettes to make beautiful plots that reveal patterns in your data + * Functions for visualizing univariate and bivariate distributions or for comparing them between subsets of data + * Tools that fit and visualize linear regression models for different kinds of independent and dependent variables + * Functions that visualize matrices of data and use clustering algorithms to discover structure in those matrices + * A function to plot statistical timeseries data with flexible estimation and representation of uncertainty around the estimate + * High-level abstractions for structuring grids of plots that let you easily build complex visualizations + </longdescription> + <origin>baldeagleos-repo</origin> +</pkgmetadata> diff --git a/dev-python/seaborn/seaborn-0.13.2.ebuild b/dev-python/seaborn/seaborn-0.13.2.ebuild new file mode 100644 index 000000000000..b758619a86e9 --- /dev/null +++ b/dev-python/seaborn/seaborn-0.13.2.ebuild @@ -0,0 +1,53 @@ +# Copyright 1999-2026 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=flit +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Statistical data visualization" +HOMEPAGE=" + https://seaborn.pydata.org/ + https://github.com/mwaskom/seaborn/ + https://pypi.org/project/seaborn/ +" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64" + +RDEPEND=" + >=dev-python/matplotlib-3.4[${PYTHON_USEDEP}] + >=dev-python/numpy-1.20[${PYTHON_USEDEP}] + >=dev-python/pandas-1.2[${PYTHON_USEDEP}] + >=dev-python/statsmodels-0.12[${PYTHON_USEDEP}] + >=dev-python/scipy-1.7[${PYTHON_USEDEP}] +" + +EPYTEST_PLUGINS=() +EPYTEST_XDIST=1 +distutils_enable_tests pytest + +src_prepare() { + local PATCHES=( + # https://github.com/mwaskom/seaborn/pull/3802 + # https://github.com/mwaskom/seaborn/pull/3820 + "${FILESDIR}/${P}-test.patch" + ) + + distutils-r1_src_prepare + + # https://github.com/mwaskom/seaborn/pull/3685 + sed -i -e '/VisibleDeprecationWarning/d' tests/test_distributions.py || die +} + +src_test() { + cat > matplotlibrc <<- EOF || die + backend : Agg + EOF + + distutils-r1_src_test +} |
