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/meshio | |
| 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/meshio')
| -rw-r--r-- | dev-python/meshio/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/meshio/files/meshio-5.3.5-numpy-2.patch | 52 | ||||
| -rw-r--r-- | dev-python/meshio/meshio-5.3.5-r1.ebuild | 38 | ||||
| -rw-r--r-- | dev-python/meshio/metadata.xml | 10 |
4 files changed, 101 insertions, 0 deletions
diff --git a/dev-python/meshio/Manifest b/dev-python/meshio/Manifest new file mode 100644 index 000000000000..af6a8fd1c05a --- /dev/null +++ b/dev-python/meshio/Manifest @@ -0,0 +1 @@ +DIST meshio-5.3.5.tar.gz 490922 BLAKE2B ff6635db062b5e4041d7a4389f1e2fefc20cf55c1c0e70be1796c9e65e87daf503c7446224130eee94a3a2d0fb52dcd57ce3fa169afe7ca7fe32c3037fa21e00 SHA512 dcf6b914536b5b109ead378b7314de8f6f65ca7eb9b8c1092ce51308c32175c92a8f6386087b00770cd64eddcbc3fa80232dd30b370880894c0fa0b074bd7313 diff --git a/dev-python/meshio/files/meshio-5.3.5-numpy-2.patch b/dev-python/meshio/files/meshio-5.3.5-numpy-2.patch new file mode 100644 index 000000000000..dc7662c3042f --- /dev/null +++ b/dev-python/meshio/files/meshio-5.3.5-numpy-2.patch @@ -0,0 +1,52 @@ +diff --git a/src/meshio/dolfin/_dolfin.py b/src/meshio/dolfin/_dolfin.py +index e43dbd54..0a2c1eaa 100644 +--- a/src/meshio/dolfin/_dolfin.py ++++ b/src/meshio/dolfin/_dolfin.py +@@ -207,7 +207,7 @@ def _write_cell_data(filename, dim, cell_data): + ) + + for k, value in enumerate(cell_data): +- ET.SubElement(mesh_function, "entity", index=str(k), value=repr(value)) ++ ET.SubElement(mesh_function, "entity", index=str(k), value=str(value)) + + tree = ET.ElementTree(dolfin) + tree.write(filename) +diff --git a/src/meshio/gmsh/common.py b/src/meshio/gmsh/common.py +index 717e82ee..adcae241 100644 +--- a/src/meshio/gmsh/common.py ++++ b/src/meshio/gmsh/common.py +@@ -273,7 +273,7 @@ def _write_data(fh, tag, name, data, binary): + tmp.tofile(fh) + fh.write(b"\n") + else: +- fmt = " ".join(["{}"] + ["{!r}"] * num_components) + "\n" ++ fmt = " ".join(["{}"] * (num_components + 1)) + "\n" + # TODO unify + if num_components == 1: + for k, x in enumerate(data): +diff --git a/src/meshio/mdpa/_mdpa.py b/src/meshio/mdpa/_mdpa.py +index afa39eca..e49358af 100644 +--- a/src/meshio/mdpa/_mdpa.py ++++ b/src/meshio/mdpa/_mdpa.py +@@ -418,7 +418,7 @@ def _write_data(fh, tag, name, data, binary): + data = data[:, 0] + + # Actually write the data +- fmt = " ".join(["{}"] + ["{!r}"] * num_components) + "\n" ++ fmt = " ".join(["{}"] * (num_components + 1)) + "\n" + # TODO unify + if num_components == 1: + for k, x in enumerate(data): +diff --git a/src/meshio/ugrid/_ugrid.py b/src/meshio/ugrid/_ugrid.py +index 6fa57c09..f1d5818d 100644 +--- a/src/meshio/ugrid/_ugrid.py ++++ b/src/meshio/ugrid/_ugrid.py +@@ -145,7 +145,7 @@ def read_buffer(f, file_type): + def _write_section(f, file_type, array, dtype): + if file_type["type"] == "ascii": + ncols = array.shape[1] +- fmt = " ".join(["%r"] * ncols) ++ fmt = " ".join(["%s"] * ncols) + np.savetxt(f, array, fmt=fmt) + else: + array.astype(dtype).tofile(f) diff --git a/dev-python/meshio/meshio-5.3.5-r1.ebuild b/dev-python/meshio/meshio-5.3.5-r1.ebuild new file mode 100644 index 000000000000..266428a7e0ef --- /dev/null +++ b/dev-python/meshio/meshio-5.3.5-r1.ebuild @@ -0,0 +1,38 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{13..14} ) + +inherit distutils-r1 pypi + +DESCRIPTION="Input/output for many mesh formats" +HOMEPAGE=" + https://github.com/nschloe/meshio/ + https://pypi.org/project/meshio/ +" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm64" +IUSE="hdf5 netcdf" + +RDEPEND=" + >=dev-python/numpy-1.20.0[${PYTHON_USEDEP}] + dev-python/rich[${PYTHON_USEDEP}] + hdf5? ( dev-python/h5py[${PYTHON_USEDEP}] ) + netcdf? ( dev-python/netcdf4[${PYTHON_USEDEP}] ) +" +BDEPEND=" + test? ( dev-python/h5py[${PYTHON_USEDEP}] ) +" + +EPYTEST_PLUGINS=() +distutils_enable_tests pytest + +PATCHES=( + # https://github.com/nschloe/meshio/pull/1513 + "${FILESDIR}/${P}-numpy-2.patch" +) diff --git a/dev-python/meshio/metadata.xml b/dev-python/meshio/metadata.xml new file mode 100644 index 000000000000..5e95859f915a --- /dev/null +++ b/dev-python/meshio/metadata.xml @@ -0,0 +1,10 @@ +<?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> + <stabilize-allarches /> + <origin>baldeagleos-repo</origin> +</pkgmetadata> |
