Skip to content

Commit

Permalink
dev-python/hdmf-zarr: new package, add 0.5.0
Browse files Browse the repository at this point in the history
Signed-off-by: Horea Christian <[email protected]>
  • Loading branch information
TheChymera committed Jan 25, 2024
1 parent 20e1e64 commit 5f89fde
Show file tree
Hide file tree
Showing 4 changed files with 77 additions and 0 deletions.
1 change: 1 addition & 0 deletions dev-python/hdmf-zarr/Manifest
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DIST hdmf_zarr-0.5.0.tar.gz 3095566 BLAKE2B f824b480bb99ffbf495b18505d561a3511af60f654df66f89c2c5c081ba49889512e29cb31b6eb617ef7abac58472fa4b6d9f23cd9c33be436a77ceb2d54130a SHA512 205dd5b2de1a403fc7098e7ba26e4bbba1949b8f50641173ea614011e821a77a461ab255f19afefddcd5fa019ed0e7c047fd7c940a2d09a1f63c5de5f1ac50cb
28 changes: 28 additions & 0 deletions dev-python/hdmf-zarr/files/hdmf-zarr-0.5.0-coverage.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
diff --git a/pyproject.toml b/pyproject.toml
index 4008b3b..40e281a 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -62,9 +62,6 @@ exclude = [".git_archival.txt"]
[tool.hatch.build.targets.wheel]
packages = ["src/hdmf_zarr"]

-[tool.pytest.ini_options]
-addopts = "--cov --cov-report html"
-
[tool.codespell]
skip = "htmlcov,.git,.mypy_cache,.pytest_cache,.coverage,*.pdf,*.svg,venvs,.tox,./docs/_build/*,*.ipynb"
ignore-words-list = "datas"
diff --git a/tox.ini b/tox.ini
index 720a97f..66d0df3 100644
--- a/tox.ini
+++ b/tox.ini
@@ -28,8 +28,7 @@ commands =
[testenv:localcoverage]
basepython = python3.11
commands =
- pytest --cov=hdmf_zarr
- coverage html -d tests/coverage/htmlcov
+ pytest

# Test with python 3.11; pinned dev and optional reqs
[testenv:py311-optional]
32 changes: 32 additions & 0 deletions dev-python/hdmf-zarr/hdmf-zarr-0.5.0.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
PYTHON_COMPAT=( python3_{10..11} )
DISTUTILS_USE_PEP517=hatchling

inherit distutils-r1 pypi

DESCRIPTION="Zarr I/O backend for HDMF"
HOMEPAGE="https://github.com/hdmf-dev/hdmf-zarr"
#SRC_URI="https://github.com/hdmf-dev/hdmf-zarr/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
KEYWORDS="~amd64 ~x86"

LICENSE="BSD"
SLOT="0"

RDEPEND="
dev-python/hdmf[${PYTHON_USEDEP}]
dev-python/numcodecs[${PYTHON_USEDEP}]
dev-python/numpy[${PYTHON_USEDEP}]
dev-python/pynwb[${PYTHON_USEDEP}]
dev-python/threadpoolctl[${PYTHON_USEDEP}]
dev-python/zarr[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"

PATCHES=(
"${FILESDIR}/${P}-coverage.patch"
)

distutils_enable_tests pytest
16 changes: 16 additions & 0 deletions dev-python/hdmf-zarr/metadata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>[email protected]</email>
<name>Horea Christian</name>
</maintainer>
<maintainer type="project">
<email>[email protected]</email>
<name>Gentoo Science Project</name>
</maintainer>
<upstream>
<remote-id type="github">hdmf-dev/hdmf-zarr</remote-id>
<remote-id type="pypi">hdmf-zarr</remote-id>
</upstream>
</pkgmetadata>

0 comments on commit 5f89fde

Please sign in to comment.