public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Horea Christian" <horea.christ@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] proj/sci:master commit in: dev-python/pynwb/, dev-python/pynwb/files/
Date: Wed, 22 Mar 2023 19:39:23 +0000 (UTC)	[thread overview]
Message-ID: <1679513952.16797f5b3289b8970625b8c03645e9a6a5fcaa04.chymera@gentoo> (raw)

commit:     16797f5b3289b8970625b8c03645e9a6a5fcaa04
Author:     Horea Christian <chr <AT> chymera <DOT> eu>
AuthorDate: Wed Mar 22 19:39:12 2023 +0000
Commit:     Horea Christian <horea.christ <AT> gmail <DOT> com>
CommitDate: Wed Mar 22 19:39:12 2023 +0000
URL:        https://gitweb.gentoo.org/proj/sci.git/commit/?id=16797f5b

dev-python/pynwb: add 2.3.1

Signed-off-by: Horea Christian <chr <AT> chymera.eu>

 dev-python/pynwb/files/pynwb-2.3.1-typing.patch | 13 +++++++
 dev-python/pynwb/pynwb-2.3.1.ebuild             | 50 +++++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/dev-python/pynwb/files/pynwb-2.3.1-typing.patch b/dev-python/pynwb/files/pynwb-2.3.1-typing.patch
new file mode 100644
index 000000000..e672f243b
--- /dev/null
+++ b/dev-python/pynwb/files/pynwb-2.3.1-typing.patch
@@ -0,0 +1,13 @@
+diff --git a/src/pynwb/ophys.py b/src/pynwb/ophys.py
+index b09267ff6..e3d9f8f6d 100644
+--- a/src/pynwb/ophys.py
++++ b/src/pynwb/ophys.py
+@@ -192,7 +192,7 @@ def __init__(self, **kwargs):
+         args_to_set = popargs_to_dict(keys_to_set, kwargs)
+         super().__init__(**kwargs)
+ 
+-        if args_to_set["binning"] < 0:
++        if args_to_set["binning"] is not None and args_to_set["binning"] < 0:
+             raise ValueError(f"Binning value must be >= 0: {args_to_set['binning']}")
+         if isinstance(args_to_set["binning"], int):
+             args_to_set["binning"] = np.uint(args_to_set["binning"])

diff --git a/dev-python/pynwb/pynwb-2.3.1.ebuild b/dev-python/pynwb/pynwb-2.3.1.ebuild
new file mode 100644
index 000000000..cce90c5d1
--- /dev/null
+++ b/dev-python/pynwb/pynwb-2.3.1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DISTUTILS_USE_PEP517=setuptools
+PYTHON_COMPAT=( python3_{10..11} )
+inherit distutils-r1 pypi
+
+DESCRIPTION="A Python API for working with Neurodata stored in the NWB Format "
+HOMEPAGE="https://github.com/NeurodataWithoutBorders/pynwb"
+SRC_URI="$(pypi_sdist_url pynwb)"
+
+SLOT="0"
+LICENSE="BSD"
+KEYWORDS="~amd64 ~x86"
+
+RDEPEND="
+	>=sci-libs/hdf5-1.12.2
+	>=dev-python/hdmf-3.3.2[${PYTHON_USEDEP}]
+	dev-python/h5py[${PYTHON_USEDEP}]
+	dev-python/numpy[${PYTHON_USEDEP}]
+	dev-python/pandas[${PYTHON_USEDEP}]
+	dev-python/python-dateutil[${PYTHON_USEDEP}]
+	"
+BDEPEND=""
+
+# Remove in next release
+PATCHES=(
+	"${FILESDIR}/${P}-typing.patch"
+	)
+
+EPYTEST_DESELECT=(
+	# Reported upsream:
+	# https://github.com/NeurodataWithoutBorders/pynwb/issues/1580
+	tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached
+	tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached_bad_ns
+	tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached_core
+	tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached_extension
+	tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached_extension_pass_ns
+	tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached_hdmf_common
+	tests/validation/test_validate.py::TestValidateCLI::test_validate_file_cached_ignore
+	tests/validation/test_validate.py::TestValidateCLI::test_validate_file_invalid
+	tests/validation/test_validate.py::TestValidateCLI::test_validate_file_list_namespaces_core
+	tests/validation/test_validate.py::TestValidateCLI::test_validate_file_list_namespaces_extension
+	tests/validation/test_validate.py::TestValidateCLI::test_validate_file_no_cache
+	tests/validation/test_validate.py::TestValidateCLI::test_validate_file_no_cache_bad_ns
+)
+
+distutils_enable_tests pytest


             reply	other threads:[~2023-03-22 19:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-22 19:39 Horea Christian [this message]
  -- strict thread matches above, loose matches on Subject: below --
2023-05-22 11:12 [gentoo-commits] proj/sci:master commit in: dev-python/pynwb/, dev-python/pynwb/files/ Horea Christian
2023-01-12  9:49 Horea Christian

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1679513952.16797f5b3289b8970625b8c03645e9a6a5fcaa04.chymera@gentoo \
    --to=horea.christ@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox