public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: dev-python/numpydoc/files/, dev-python/numpydoc/
@ 2024-03-03 18:58 Andrew Ammerlaan
  0 siblings, 0 replies; 2+ messages in thread
From: Andrew Ammerlaan @ 2024-03-03 18:58 UTC (permalink / raw
  To: gentoo-commits

commit:     02dad25cebd38441e863b894504c65205819424b
Author:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
AuthorDate: Sun Mar  3 18:34:22 2024 +0000
Commit:     Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Sun Mar  3 18:57:32 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=02dad25c

dev-python/numpydoc: enable py3.12

Signed-off-by: Andrew Ammerlaan <andrewammerlaan <AT> gentoo.org>

 .../numpydoc-1.6.0-py3.12-flt-depr-warn.patch      | 59 ++++++++++++++++++++++
 dev-python/numpydoc/numpydoc-1.6.0.ebuild          |  9 +++-
 2 files changed, 66 insertions(+), 2 deletions(-)

diff --git a/dev-python/numpydoc/files/numpydoc-1.6.0-py3.12-flt-depr-warn.patch b/dev-python/numpydoc/files/numpydoc-1.6.0-py3.12-flt-depr-warn.patch
new file mode 100644
index 000000000000..c059331730d7
--- /dev/null
+++ b/dev-python/numpydoc/files/numpydoc-1.6.0-py3.12-flt-depr-warn.patch
@@ -0,0 +1,59 @@
+https://github.com/numpy/numpydoc/pull/523
+diff --git a/numpydoc/tests/test_validate.py b/numpydoc/tests/test_validate.py
+index d41e4bd0..0671684b 100644
+--- a/numpydoc/tests/test_validate.py
++++ b/numpydoc/tests/test_validate.py
+@@ -1348,6 +1348,7 @@ def test_bad_generic_functions(self, capsys, func):
+         assert isinstance(errors, list)
+         assert errors
+ 
++    @pytest.mark.filterwarnings("ignore::DeprecationWarning")
+     @pytest.mark.parametrize(
+         "klass,func,msgs",
+         [
+
+diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
+index 1af5e7a5..fd1be4ed 100644
+--- a/.github/workflows/test.yml
++++ b/.github/workflows/test.yml
+@@ -16,7 +16,7 @@ jobs:
+     strategy:
+       matrix:
+         os: [Ubuntu]
+-        python-version: ["3.8", "3.9", "3.10", "3.11"]
++        python-version: ["3.9", "3.10", "3.11", "3.12"]
+         sphinx-version:
+           [
+             "sphinx==5.0",
+@@ -76,7 +76,7 @@ jobs:
+     strategy:
+       matrix:
+         os: [ubuntu]
+-        python-version: ["3.9", "3.10"]
++        python-version: ["3.10", "3.11", "3.12"]
+     steps:
+       - uses: actions/checkout@v4
+ 
+
+diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
+index fd1be4ed..3d9c7979 100644
+--- a/.github/workflows/test.yml
++++ b/.github/workflows/test.yml
+@@ -16,7 +16,7 @@ jobs:
+     strategy:
+       matrix:
+         os: [Ubuntu]
+-        python-version: ["3.9", "3.10", "3.11", "3.12"]
++        python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
+         sphinx-version:
+           [
+             "sphinx==5.0",
+@@ -76,7 +76,7 @@ jobs:
+     strategy:
+       matrix:
+         os: [ubuntu]
+-        python-version: ["3.10", "3.11", "3.12"]
++        python-version: ["3.11", "3.12"]
+     steps:
+       - uses: actions/checkout@v4
+ 

diff --git a/dev-python/numpydoc/numpydoc-1.6.0.ebuild b/dev-python/numpydoc/numpydoc-1.6.0.ebuild
index d83cce3a7d06..dcd8259986f6 100644
--- a/dev-python/numpydoc/numpydoc-1.6.0.ebuild
+++ b/dev-python/numpydoc/numpydoc-1.6.0.ebuild
@@ -1,10 +1,10 @@
-# Copyright 1999-2023 Gentoo Authors
+# 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..11} )
+PYTHON_COMPAT=( python3_{10..12} )
 
 inherit distutils-r1
 
@@ -37,6 +37,11 @@ BDEPEND="
 	)
 "
 
+PATCHES=(
+	# https://github.com/numpy/numpydoc/pull/523
+	"${FILESDIR}/${P}-py3.12-flt-depr-warn.patch"
+)
+
 distutils_enable_tests pytest
 
 python_test() {


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: dev-python/numpydoc/files/, dev-python/numpydoc/
@ 2024-04-13 17:49 Michał Górny
  0 siblings, 0 replies; 2+ messages in thread
From: Michał Górny @ 2024-04-13 17:49 UTC (permalink / raw
  To: gentoo-commits

commit:     778a42fe70e9a5b9f22a1da163008ed6f7f25d0f
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 13 17:17:33 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Apr 13 17:49:05 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=778a42fe

dev-python/numpydoc: Remove old

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/numpydoc/Manifest                       |  1 -
 .../numpydoc-1.6.0-py3.12-flt-depr-warn.patch      | 59 ----------------------
 dev-python/numpydoc/numpydoc-1.6.0.ebuild          | 54 --------------------
 3 files changed, 114 deletions(-)

diff --git a/dev-python/numpydoc/Manifest b/dev-python/numpydoc/Manifest
index a7275cce9f3e..151561e8acfc 100644
--- a/dev-python/numpydoc/Manifest
+++ b/dev-python/numpydoc/Manifest
@@ -1,2 +1 @@
-DIST numpydoc-1.6.0.gh.tar.gz 85296 BLAKE2B 839fb0062dc1b0b45dfbc855d50d21a3c23cf1e9fef82b8d44e9d4cc36127c32447ad4c6ee5aa500cd24fb6a304f95426be69406468e3059c068ca4b0ad5714f SHA512 3846f395d8603a21d97a6c0fc57f0ea69e908ff2f672673d336a1f4ff02f5cb3f9e76d1e1ad6d990478b121a327bcca8179c3db6b5215f36818e41e4597878fd
 DIST numpydoc-1.7.0.gh.tar.gz 87818 BLAKE2B b31e9478324bc45d78904c16330c9ed1513eca5668f20472faf9e2a36c0ed7eb03b18cf1c314180ec35716a26bd05357d5ef93025efbb8fb09c885a614ac7ea9 SHA512 0858d7eaafdd93d5a0894bb107b8238f75bd7cd34afa64fee38effcf4bebf9b4db957768143a46eec46023e69b53599a79b07a39640887f3a0471b5996022247

diff --git a/dev-python/numpydoc/files/numpydoc-1.6.0-py3.12-flt-depr-warn.patch b/dev-python/numpydoc/files/numpydoc-1.6.0-py3.12-flt-depr-warn.patch
deleted file mode 100644
index c059331730d7..000000000000
--- a/dev-python/numpydoc/files/numpydoc-1.6.0-py3.12-flt-depr-warn.patch
+++ /dev/null
@@ -1,59 +0,0 @@
-https://github.com/numpy/numpydoc/pull/523
-diff --git a/numpydoc/tests/test_validate.py b/numpydoc/tests/test_validate.py
-index d41e4bd0..0671684b 100644
---- a/numpydoc/tests/test_validate.py
-+++ b/numpydoc/tests/test_validate.py
-@@ -1348,6 +1348,7 @@ def test_bad_generic_functions(self, capsys, func):
-         assert isinstance(errors, list)
-         assert errors
- 
-+    @pytest.mark.filterwarnings("ignore::DeprecationWarning")
-     @pytest.mark.parametrize(
-         "klass,func,msgs",
-         [
-
-diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
-index 1af5e7a5..fd1be4ed 100644
---- a/.github/workflows/test.yml
-+++ b/.github/workflows/test.yml
-@@ -16,7 +16,7 @@ jobs:
-     strategy:
-       matrix:
-         os: [Ubuntu]
--        python-version: ["3.8", "3.9", "3.10", "3.11"]
-+        python-version: ["3.9", "3.10", "3.11", "3.12"]
-         sphinx-version:
-           [
-             "sphinx==5.0",
-@@ -76,7 +76,7 @@ jobs:
-     strategy:
-       matrix:
-         os: [ubuntu]
--        python-version: ["3.9", "3.10"]
-+        python-version: ["3.10", "3.11", "3.12"]
-     steps:
-       - uses: actions/checkout@v4
- 
-
-diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
-index fd1be4ed..3d9c7979 100644
---- a/.github/workflows/test.yml
-+++ b/.github/workflows/test.yml
-@@ -16,7 +16,7 @@ jobs:
-     strategy:
-       matrix:
-         os: [Ubuntu]
--        python-version: ["3.9", "3.10", "3.11", "3.12"]
-+        python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
-         sphinx-version:
-           [
-             "sphinx==5.0",
-@@ -76,7 +76,7 @@ jobs:
-     strategy:
-       matrix:
-         os: [ubuntu]
--        python-version: ["3.10", "3.11", "3.12"]
-+        python-version: ["3.11", "3.12"]
-     steps:
-       - uses: actions/checkout@v4
- 

diff --git a/dev-python/numpydoc/numpydoc-1.6.0.ebuild b/dev-python/numpydoc/numpydoc-1.6.0.ebuild
deleted file mode 100644
index dcd8259986f6..000000000000
--- a/dev-python/numpydoc/numpydoc-1.6.0.ebuild
+++ /dev/null
@@ -1,54 +0,0 @@
-# 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..12} )
-
-inherit distutils-r1
-
-DESCRIPTION="Sphinx extension to support docstrings in Numpy format"
-HOMEPAGE="
-	https://numpydoc.readthedocs.io/en/latest/
-	https://github.com/numpy/numpydoc/
-	https://pypi.org/project/numpydoc/
-"
-SRC_URI="
-	https://github.com/numpy/numpydoc/archive/v${PV}.tar.gz
-		-> ${P}.gh.tar.gz
-"
-
-LICENSE="BSD"
-SLOT="0"
-KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~x64-macos"
-
-RDEPEND="
-	>=dev-python/jinja-2.10[${PYTHON_USEDEP}]
-	>=dev-python/sphinx-5[${PYTHON_USEDEP}]
-	>=dev-python/tabulate-0.8.10[${PYTHON_USEDEP}]
-	$(python_gen_cond_dep '
-		>=dev-python/tomli-1.1.0[${PYTHON_USEDEP}]
-	' 3.10)
-"
-BDEPEND="
-	test? (
-		>=dev-python/matplotlib-3.2.1[${PYTHON_USEDEP}]
-	)
-"
-
-PATCHES=(
-	# https://github.com/numpy/numpydoc/pull/523
-	"${FILESDIR}/${P}-py3.12-flt-depr-warn.patch"
-)
-
-distutils_enable_tests pytest
-
-python_test() {
-	local EPYTEST_DESELECT=(
-		# these require Internet (intersphinx)
-		numpydoc/tests/test_full.py::test_MyClass
-		numpydoc/tests/test_full.py::test_my_function
-	)
-	epytest -o addopts= --pyargs numpydoc
-}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-04-13 17:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-04-13 17:49 [gentoo-commits] repo/gentoo:master commit in: dev-python/numpydoc/files/, dev-python/numpydoc/ Michał Górny
  -- strict thread matches above, loose matches on Subject: below --
2024-03-03 18:58 Andrew Ammerlaan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox