Package Details: python-meshio 5.3.5-1

Git Clone URL: https://aur.archlinux.org/python-meshio.git (read-only, click to copy)
Package Base: python-meshio
Description: Input/output for many mesh formats
Upstream URL: https://github.com/nschloe/meshio
Licenses: MIT
Submitter: tpkessler
Maintainer: tpkessler
Last Packager: tpkessler
Votes: 3
Popularity: 0.031390
First Submitted: 2020-06-04 15:25 (UTC)
Last Updated: 2024-07-26 07:12 (UTC)

Latest Comments

1 2 3 Next › Last »

chilichiller commented on 2024-06-29 17:41 (UTC) (edited on 2024-06-29 22:47 (UTC) by chilichiller)

Would it be possible to update to version 5.3.5? NumPy was recently updated to version 2.0 and the latest update fixes some compatibility issues. Here a diff for an updated PKGBUILD that works for me:

diff --git a/PKGBUILD b/PKGBUILD
index 5bf1612..4e92e20 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,7 +1,7 @@
 # Maintainer: Torsten Keßler <t dot kessler at posteo dot de>
 pkgname=python-meshio
-pkgver=5.3.4
-pkgrel=2
+pkgver=5.3.5
+pkgrel=1
 pkgdesc='Input/output for many mesh formats'
 url='https://github.com/nschloe/meshio'
 arch=('x86_64')
@@ -10,7 +10,7 @@ depends=('python-numpy' 'python-rich')
 makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
 optdepends=('python-netcdf4' 'python-h5py')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
-sha256sums=('710af6e4fa2daed144f7fd58690fa6cbd476956d02b453ecae45787eb0bef3e3')
+sha256sums=('9e05d217857138d8f731803366c67acea2cfd67b0dd5aebe0281f1fb13ba57e5')

 build() {
   cd "meshio-$pkgver"

carlosal1015 commented on 2024-01-20 19:15 (UTC)

Hi there, I have two remarks that I noticed.

  1. meshio version is wrong.
In [1]: import meshio

In [2]: meshio.__version__
Out[2]: '5.0.0'
  1. I think that the following file located there
/usr/share/paraview-5.9/plugins/paraview-meshio-plugin.py

must be there over /opt/paraview/lib/paraview/plugins/ but this change will implies that paraview will be a hard dependency.

Partial solution below.

diff --git a/PKGBUILD b/PKGBUILD
index 5bf1612..20735d9 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -1,20 +1,28 @@
 # Maintainer: Torsten Keßler <t dot kessler at posteo dot de>
+# Contributor: Carlos Aznarán <caznaranl@uni.pe>
 pkgname=python-meshio
 pkgver=5.3.4
-pkgrel=2
+pkgrel=3
 pkgdesc='Input/output for many mesh formats'
 url='https://github.com/nschloe/meshio'
 arch=('x86_64')
 license=('MIT')
 depends=('python-numpy' 'python-rich')
 makedepends=('python-build' 'python-installer' 'python-wheel' 'python-setuptools')
-optdepends=('python-netcdf4' 'python-h5py')
+optdepends=('python-netcdf4' 'python-h5py' 'paraview')
 source=("$pkgname-$pkgver.tar.gz::$url/archive/v$pkgver.tar.gz")
 sha256sums=('710af6e4fa2daed144f7fd58690fa6cbd476956d02b453ecae45787eb0bef3e3')

+prepare() {
+  # Fix meshio version
+  sed -i 's/5.0.0/'"${pkgver}"'/' "meshio-$pkgver"/pyproject.toml
+  # Fix Paraview plugin location?
+  sed -i 's/paraview-5.9/paraview/' "meshio-$pkgver"/setup.cfg
+}
+
 build() {
   cd "meshio-$pkgver"
-  python3 -m build --wheel --no-isolation
+  python -m build --wheel --skip-dependency-check --no-isolation
 }

 package() {
@@ -23,4 +31,3 @@ package() {

   install -Dm644 LICENSE.txt "$pkgdir/usr/share/licenses/$pkgname/LICENSE"
 }
-
-- 
2.43.0

tpkessler commented on 2022-10-29 08:19 (UTC)

Thanks @carlosal1015, I've updated the package accordingly.

carlosal1015 commented on 2022-10-26 17:48 (UTC)

Hi @tpkessler, could you add python-setuptools as makedependency because is used.

[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"

carlosal1015 commented on 2022-03-24 19:09 (UTC)

Thank you very much.

tpkessler commented on 2022-03-24 18:14 (UTC)

Thank you for your feedback @Imartinez-mirror. I adopted the build script to the new package guidelines. It's much simpler now. This also fixes the ownership problems.

@carlosal1015: It's seems like meshio will be split into several packages soon, see the comment on the discussion page, https://github.com/nschloe/meshio/discussions/1285

carlosal1015 commented on 2022-03-24 15:56 (UTC)

meshio is not flagged-out of date, latest release is 5.3.4, not 7

https://pypi.org/project/meshio/

lmartinez-mirror commented on 2022-03-23 21:52 (UTC)

Package could use a rewrite. From a clean chroot, nearly all files in the package are owned by the buildroot, and not by root itself. Arch devs recently updated the Python packaging guidelines; I recommend you check it out.

carlosal1015 commented on 2022-03-16 23:51 (UTC) (edited on 2022-03-23 19:05 (UTC) by carlosal1015)

No more updates for meshio. There are two alternatives now

https://pypi.org/project/meshio-rewrite/#files (propietary)

https://pypi.org/project/meshpro/#files (propietary)