diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-15 05:48:11 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 05:48:11 +0000 |
commit | c7e07babf5bf5507d01eea3eaf006ccc78405737 (patch) | |
tree | 84661e1b8dcf05fb7833d9d2f05b7ac98eaee0f3 /python-cortix.spec | |
parent | d6051996f1698b71eb0173c115b350af1d9e827b (diff) |
automatic import of python-cortix
Diffstat (limited to 'python-cortix.spec')
-rw-r--r-- | python-cortix.spec | 342 |
1 files changed, 342 insertions, 0 deletions
diff --git a/python-cortix.spec b/python-cortix.spec new file mode 100644 index 0000000..15837cb --- /dev/null +++ b/python-cortix.spec @@ -0,0 +1,342 @@ +%global _empty_manifest_terminate_build 0 +Name: python-cortix +Version: 1.1.32 +Release: 1 +Summary: Cortix is a Python library for network dynamics modeling and HPC simulation. +License: GNU General Public License v3 (GPLv3) +URL: https://cortix.org +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/5e/a8/f2306c39e523047f7f61cf358c68065d2f8d2912ff3e447a8cf776cdb28c/cortix-1.1.32.tar.gz +BuildArch: noarch + +Requires: python3-pandas +Requires: python3-matplotlib +Requires: python3-numpy +Requires: python3-scipy +Requires: python3-pytest +Requires: python3-graphviz + +%description +# Cortix +A Python library for network dynamics modeling and HPC simulation. + + [Cortix on Jupyter notebook examples](https://github.com/dpploy/cortix-nb) + + [Documentation on the web](https://cortix.org) + + +[](https://cortix.org) +[](https://badge.fury.io/py/cortix) +[](https://badge.fury.io/py/cortix) + +[](https://codecov.io/gh/dpploy/cortix) + + + +## What is Cortix? + +* Cortix is a massively parallel Python library for system-level module coupling, execution, and + analysis of dynamical system models that exchange time-dependent data. +* Cortix takes as input a collection of computational modules and provides an + environment for the coupling of these modules into a single simulation. +* Cortix supports: + - Module decoupling + - Communication between modules + - Data visualization +* Cortix runs on top of [MPI](https://www.open-mpi.org/) and scales across many cores. + + +## Installation: start by installing [MPI](https://www.open-mpi.org/) + +## Installing via PyPI +``` +pip install --user cortix +``` + +## Installing from source +1. Clone this repository to install the latest version of Cortix +``` +git clone https://github.com/dpploy/cortix.git +``` +2. Install the required dependencies listed in `requirements.txt` +``` +pip install --user -r cortix/requirements.txt +``` +3. Add ```cortix```'s parent path to your ```$PYTHONPATH``` variable +``` +export PYTHONPATH=$PYTHONPATH:$(pwd) +``` +Note: you may want to add this line to your ```.bashrc``` in order for it to be persistent + +### Verify your Cortix install by running the Droplet example +``` +mpirun -np 12 examples/droplet_run.py +``` + +## Testing + +Testing is facilitated by [PyTest](http://pytest.org). Tests can be run locally from within the `tests` directory +``` +cd tests && py.test +``` + +## Using Cortix + +Please refer to the [documentation](https://cortix.org/contents.html) for more on getting started! + +## Team + +- Valmor F. de Almeida: valmor\_dealmeida@uml.edu +- Taha M. Azzaoui: tazzaoui@cs.uml.edu +- Seamus D. Gallagher: seamus\_gallagher@student.uml.edu +- Austin Rotker: austin_rotker@student.uml.edu +- Gilberto E. Alas: gilberto\_alas@student.uml.edu + +## Contributing + +Pull requests are welcome. For major changes, please open an [issue](https://github.com/dpploy/cortix/issues) first to discuss what you would like to change. + +Please make sure to update tests as appropriate. + +## Location + +Cortix Group + +c/o [UMass Innovation Hub](https://www.uml.edu/Innovation-Hub/) + +110 Canal St., 3rd Floor + +Lowell, MA 01852 + + +%package -n python3-cortix +Summary: Cortix is a Python library for network dynamics modeling and HPC simulation. +Provides: python-cortix +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-cortix +# Cortix +A Python library for network dynamics modeling and HPC simulation. + + [Cortix on Jupyter notebook examples](https://github.com/dpploy/cortix-nb) + + [Documentation on the web](https://cortix.org) + + +[](https://cortix.org) +[](https://badge.fury.io/py/cortix) +[](https://badge.fury.io/py/cortix) + +[](https://codecov.io/gh/dpploy/cortix) + + + +## What is Cortix? + +* Cortix is a massively parallel Python library for system-level module coupling, execution, and + analysis of dynamical system models that exchange time-dependent data. +* Cortix takes as input a collection of computational modules and provides an + environment for the coupling of these modules into a single simulation. +* Cortix supports: + - Module decoupling + - Communication between modules + - Data visualization +* Cortix runs on top of [MPI](https://www.open-mpi.org/) and scales across many cores. + + +## Installation: start by installing [MPI](https://www.open-mpi.org/) + +## Installing via PyPI +``` +pip install --user cortix +``` + +## Installing from source +1. Clone this repository to install the latest version of Cortix +``` +git clone https://github.com/dpploy/cortix.git +``` +2. Install the required dependencies listed in `requirements.txt` +``` +pip install --user -r cortix/requirements.txt +``` +3. Add ```cortix```'s parent path to your ```$PYTHONPATH``` variable +``` +export PYTHONPATH=$PYTHONPATH:$(pwd) +``` +Note: you may want to add this line to your ```.bashrc``` in order for it to be persistent + +### Verify your Cortix install by running the Droplet example +``` +mpirun -np 12 examples/droplet_run.py +``` + +## Testing + +Testing is facilitated by [PyTest](http://pytest.org). Tests can be run locally from within the `tests` directory +``` +cd tests && py.test +``` + +## Using Cortix + +Please refer to the [documentation](https://cortix.org/contents.html) for more on getting started! + +## Team + +- Valmor F. de Almeida: valmor\_dealmeida@uml.edu +- Taha M. Azzaoui: tazzaoui@cs.uml.edu +- Seamus D. Gallagher: seamus\_gallagher@student.uml.edu +- Austin Rotker: austin_rotker@student.uml.edu +- Gilberto E. Alas: gilberto\_alas@student.uml.edu + +## Contributing + +Pull requests are welcome. For major changes, please open an [issue](https://github.com/dpploy/cortix/issues) first to discuss what you would like to change. + +Please make sure to update tests as appropriate. + +## Location + +Cortix Group + +c/o [UMass Innovation Hub](https://www.uml.edu/Innovation-Hub/) + +110 Canal St., 3rd Floor + +Lowell, MA 01852 + + +%package help +Summary: Development documents and examples for cortix +Provides: python3-cortix-doc +%description help +# Cortix +A Python library for network dynamics modeling and HPC simulation. + + [Cortix on Jupyter notebook examples](https://github.com/dpploy/cortix-nb) + + [Documentation on the web](https://cortix.org) + + +[](https://cortix.org) +[](https://badge.fury.io/py/cortix) +[](https://badge.fury.io/py/cortix) + +[](https://codecov.io/gh/dpploy/cortix) + + + +## What is Cortix? + +* Cortix is a massively parallel Python library for system-level module coupling, execution, and + analysis of dynamical system models that exchange time-dependent data. +* Cortix takes as input a collection of computational modules and provides an + environment for the coupling of these modules into a single simulation. +* Cortix supports: + - Module decoupling + - Communication between modules + - Data visualization +* Cortix runs on top of [MPI](https://www.open-mpi.org/) and scales across many cores. + + +## Installation: start by installing [MPI](https://www.open-mpi.org/) + +## Installing via PyPI +``` +pip install --user cortix +``` + +## Installing from source +1. Clone this repository to install the latest version of Cortix +``` +git clone https://github.com/dpploy/cortix.git +``` +2. Install the required dependencies listed in `requirements.txt` +``` +pip install --user -r cortix/requirements.txt +``` +3. Add ```cortix```'s parent path to your ```$PYTHONPATH``` variable +``` +export PYTHONPATH=$PYTHONPATH:$(pwd) +``` +Note: you may want to add this line to your ```.bashrc``` in order for it to be persistent + +### Verify your Cortix install by running the Droplet example +``` +mpirun -np 12 examples/droplet_run.py +``` + +## Testing + +Testing is facilitated by [PyTest](http://pytest.org). Tests can be run locally from within the `tests` directory +``` +cd tests && py.test +``` + +## Using Cortix + +Please refer to the [documentation](https://cortix.org/contents.html) for more on getting started! + +## Team + +- Valmor F. de Almeida: valmor\_dealmeida@uml.edu +- Taha M. Azzaoui: tazzaoui@cs.uml.edu +- Seamus D. Gallagher: seamus\_gallagher@student.uml.edu +- Austin Rotker: austin_rotker@student.uml.edu +- Gilberto E. Alas: gilberto\_alas@student.uml.edu + +## Contributing + +Pull requests are welcome. For major changes, please open an [issue](https://github.com/dpploy/cortix/issues) first to discuss what you would like to change. + +Please make sure to update tests as appropriate. + +## Location + +Cortix Group + +c/o [UMass Innovation Hub](https://www.uml.edu/Innovation-Hub/) + +110 Canal St., 3rd Floor + +Lowell, MA 01852 + + +%prep +%autosetup -n cortix-1.1.32 + +%build +%py3_build + +%install +%py3_install +install -d -m755 %{buildroot}/%{_pkgdocdir} +if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi +if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi +if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi +if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi +pushd %{buildroot} +if [ -d usr/lib ]; then + find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/lib64 ]; then + find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/bin ]; then + find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst +fi +if [ -d usr/sbin ]; then + find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst +fi +touch doclist.lst +if [ -d usr/share/man ]; then + find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst +fi +popd +mv %{buildroot}/filelist.lst . +mv %{buildroot}/doclist.lst . + +%files -n python3-cortix -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 1.1.32-1 +- Package Spec generated |