diff options
author | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2025-03-20 20:30:01 +0000 |
---|---|---|
committer | CoprDistGit <copr-devel@lists.fedorahosted.org> | 2025-03-20 20:30:01 +0000 |
commit | e41e8ff10f21436ba03ca1d826e128e1eb8ae77e (patch) | |
tree | 7ab94d6f4c33afd83128b354fb51f46ab3c32626 | |
parent | 200c12f54c025d2c2119f5bb503287b1e16ac385 (diff) |
automatic import of python-astrovascpyf42
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-astrovascpy.spec | 129 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 131 insertions, 0 deletions
@@ -0,0 +1 @@ +/AstroVascPy-0.1.6.tar.gz diff --git a/python-astrovascpy.spec b/python-astrovascpy.spec new file mode 100644 index 0000000..1323a3a --- /dev/null +++ b/python-astrovascpy.spec @@ -0,0 +1,129 @@ +## START: Set by rpmautospec +## (rpmautospec version 0.7.3) +## RPMAUTOSPEC: autorelease, autochangelog +%define autorelease(e:s:pb:n) %{?-p:0.}%{lua: + release_number = 2; + base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); + print(release_number + base_release_number - 1); +}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} +## END: Set by rpmautospec + +%global pypi_name AstroVascPy + +# Packaged is arched but has no debuginfo +%global debug_package %{nil} + +Name: python-astrovascpy +Version: 0.1.6 +Release: %{autorelease} +Summary: Simulating blood flow in vasculature + +%global forgeurl https://github.com/openbraininstitute/AstroVascPy +%global tag %{version} +%forgemeta + +License: Apache-2.0 +URL: %forgeurl +Source: %forgesource + +BuildRequires: gcc +BuildRequires: python3-devel + +BuildRequires: python3-mpi4py-mpich +BuildRequires: python3-petsc-mpich +BuildRequires: mpich-devel +BuildRequires: python3-mpi4py-openmpi +BuildRequires: python3-petsc-openmpi +BuildRequires: openmpi-devel + +%global _description %{expand: +AstroVascPy is a Python library for computing the blood pressure and +flow through the vasculature (whole cortical column). AstroVascPy +incorporates the effect of astrocytic endfeet on the blood vessel +radii. In particular, AstroVascPy replicates the dynamics of the radius +of a vessel due to vasodilation. + +AstroVascPy uses vascpy Point Graph representation to access the +vasculature database stored in h5 file (sonata format). + +vascpy standardizes the api for the vasculature datasets. +PointVasculature (PointGraph) representation is basically a composition +of two pandas data frames, one for node properties (x, y, z, radius, +other...) and one for edge properties (start_node, end_node, +other...).} + +%description %_description + + +%package -n python3-astrovascpy +Summary: %{summary} +Requires: python3-mpi4py-runtime +Recommends: python3-petsc-mpich if python3-petsc-mpich +Recommends: python3-petsc-openmpi if python3-petsc-openmpi + +%description -n python3-astrovascpy %_description + + +%pyproject_extras_subpkg -n python3-astrovascpy viz + + +%prep +%forgeautosetup -p1 + +# Nothing provides `python3dist(mpi4py)` since it depends on the MPI +# provider. We build require both flavors. +sed -r \ + -e '/mpi4py/ d' \ + -i setup.py + + +%generate_buildrequires +%pyproject_buildrequires -x test,viz + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files -l astrovascpy + + +%check +export BACKEND_SOLVER_BFS=petsc +# Test fails for unknow reasons +k="${k-}${k+ and }not test_petsc_installation" +%{_mpich_load} +# Normal test run will skip MPI tests +%pytest -v ${k+-k }"${k-}" +# MPI tests need to be run with `-n 4` specifically +%{py3_test_envvars} mpirun -n 4 \ + %{python3} -m pytest -v --with-mpi tests/test_mpi.py +%pyproject_check_import +%{_mpich_unload} + +%{_openmpi_load} +# Normal test run will skip MPI tests +%pytest -v ${k+-k }"${k-}" +# MPI tests need to be run with `-n 4` specifically +%{py3_test_envvars} mpirun -n 4 \ + %{python3} -m pytest -v --with-mpi tests/test_mpi.py +%pyproject_check_import +%{_openmpi_unload} + +%files -n python3-astrovascpy -f %{pyproject_files} +%doc README.md AUTHORS.txt CHANGELOG.md CITATION.cff + + +%changelog +## START: Generated by rpmautospec +* Thu Mar 20 2025 Sandro <devel@penguinpee.nl> - 0.1.6-2 +- Update URLs + +* Sat Nov 23 2024 Sandro <devel@penguinpee.nl> - 0.1.6-1 +- Update to 0.1.6 + +* Fri May 24 2024 Sandro <devel@penguinpee.nl> - 0.1.5-1 +- Initial package +## END: Generated by rpmautospec @@ -0,0 +1 @@ +acfcdd445eb1973da92be502bbe45f57 AstroVascPy-0.1.6.tar.gz |