diff options
author | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:40:36 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-06-20 05:40:36 +0000 |
commit | 967c7bda3e29cdeeae91bf9ebf0dfa0e68423520 (patch) | |
tree | 7d2823948c37ee8368134311d7be480441061c0b /python-nanohubtools.spec | |
parent | 04df194b7ca37d2a7393f75b2ab82d5cd39e355b (diff) |
automatic import of python-nanohubtoolsopeneuler20.03
Diffstat (limited to 'python-nanohubtools.spec')
-rw-r--r-- | python-nanohubtools.spec | 406 |
1 files changed, 406 insertions, 0 deletions
diff --git a/python-nanohubtools.spec b/python-nanohubtools.spec new file mode 100644 index 0000000..9ae33ef --- /dev/null +++ b/python-nanohubtools.spec @@ -0,0 +1,406 @@ +%global _empty_manifest_terminate_build 0 +Name: python-nanohubtools +Version: 0.2.3 +Release: 1 +Summary: A set of tools to run nanoHubtools +License: BSD +URL: https://github.com/denphi/nanohubtools +Source0: https://mirrors.aliyun.com/pypi/web/packages/d1/e6/0756e345f2fcc355331b7472b7a7f9ea14028f2a02ef55d0cf1ee126f186/nanohubtools-0.2.3.tar.gz +BuildArch: noarch + +Requires: python3-floatview +Requires: python3-plotly +Requires: python3-numpy +Requires: python3-hublib + +%description +# Nanohubtools + +A set of tools/apps to run on nanohub + +## Installation + + +```bash +pip install nanohubtools +``` + +## Usage + + + +```python + +import nanohubtools as nt +auth_data = { + 'client_id': XXXXXXXX, + 'client_secret': XXXXXXXX, + 'grant_type': 'password', + 'username': XXXXXXXX, + 'password': XXXXXXXX +} + +# to get username and password, register on nanohub.org (https://nanohub.org/register/) +# to get client id and secret, create a web application (https://nanohub.org/developer/api/applications/new), use "https://127.0.0.1" as Redirect URL + +tool = nt.Qdotexplorer(auth_data, parameters={'Number of States'}, modal=True, mode='split-right') + +# modal defines if the container outputs to use FloatView or standard ipywidgets Output +# mode defines the positions of new windows of Floatview is enabled + +tool.loadExperiment('IDSESSION') If an experiment was created befores + +``` + +## Available Nanohub Tools + +### BravaisViewerSimplified, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer) +```python + nt.CrystalViewerConstructor(auth_data, modal=False) +``` + +### CrystalViewerSimplified, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer) +```python + nt.CrystalViewerConstructor(auth_data, modal=False) +``` + +### CrystalLab, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer) +```python + nt.CrystalLab(auth_data) +``` + + +### CrystalViewerMaterial, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer) +```python + nt.CrystalViewerMaterial(auth_data, modal=False) +``` + + + +### CrystalViewerBravais, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer) +```python + nt.CrystalViewerBravais(auth_data, modal=False) +``` + + + +### CrystalViewerConstructor, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer) +```python + nt.CrystalViewerConstructor(auth_data, modal=False) +``` + +### SimpleQuantumDot, supported by [Quantum Dot Lab ](https://nanohub.org/resources/qdot/) +```python + nt.SimpleQuantumDot(auth_data, modal=False) +``` + + + +### StackedQuantumDot, supported by [Quantum Dot Lab ](https://nanohub.org/resources/qdot/) +```python + nt.StackedQuantumDot(auth_data, modal=False) +``` + + +### PNToy, supported by [PN Junction Lab] (https://nanohub.org/resources/pntoy) +```python + nt.PNToy(auth_data, modal=False) +``` + + + +### Driftdiffusionlab, supported by [Drift-Diffusion Lab] (https://nanohub.org/resources/semi) +```python + nt.Driftdiffusionlab(auth_data, modal=False) +``` + + + +### DFTExplorer, supported by [DFT calculations with Quantum ESPRESSO] (https://nanohub.org/resources/dftqe) +```python + nt.DFTExplorer(auth_data, modal=False) +``` + + + + + + +%package -n python3-nanohubtools +Summary: A set of tools to run nanoHubtools +Provides: python-nanohubtools +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-nanohubtools +# Nanohubtools + +A set of tools/apps to run on nanohub + +## Installation + + +```bash +pip install nanohubtools +``` + +## Usage + + + +```python + +import nanohubtools as nt +auth_data = { + 'client_id': XXXXXXXX, + 'client_secret': XXXXXXXX, + 'grant_type': 'password', + 'username': XXXXXXXX, + 'password': XXXXXXXX +} + +# to get username and password, register on nanohub.org (https://nanohub.org/register/) +# to get client id and secret, create a web application (https://nanohub.org/developer/api/applications/new), use "https://127.0.0.1" as Redirect URL + +tool = nt.Qdotexplorer(auth_data, parameters={'Number of States'}, modal=True, mode='split-right') + +# modal defines if the container outputs to use FloatView or standard ipywidgets Output +# mode defines the positions of new windows of Floatview is enabled + +tool.loadExperiment('IDSESSION') If an experiment was created befores + +``` + +## Available Nanohub Tools + +### BravaisViewerSimplified, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer) +```python + nt.CrystalViewerConstructor(auth_data, modal=False) +``` + +### CrystalViewerSimplified, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer) +```python + nt.CrystalViewerConstructor(auth_data, modal=False) +``` + +### CrystalLab, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer) +```python + nt.CrystalLab(auth_data) +``` + + +### CrystalViewerMaterial, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer) +```python + nt.CrystalViewerMaterial(auth_data, modal=False) +``` + + + +### CrystalViewerBravais, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer) +```python + nt.CrystalViewerBravais(auth_data, modal=False) +``` + + + +### CrystalViewerConstructor, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer) +```python + nt.CrystalViewerConstructor(auth_data, modal=False) +``` + +### SimpleQuantumDot, supported by [Quantum Dot Lab ](https://nanohub.org/resources/qdot/) +```python + nt.SimpleQuantumDot(auth_data, modal=False) +``` + + + +### StackedQuantumDot, supported by [Quantum Dot Lab ](https://nanohub.org/resources/qdot/) +```python + nt.StackedQuantumDot(auth_data, modal=False) +``` + + +### PNToy, supported by [PN Junction Lab] (https://nanohub.org/resources/pntoy) +```python + nt.PNToy(auth_data, modal=False) +``` + + + +### Driftdiffusionlab, supported by [Drift-Diffusion Lab] (https://nanohub.org/resources/semi) +```python + nt.Driftdiffusionlab(auth_data, modal=False) +``` + + + +### DFTExplorer, supported by [DFT calculations with Quantum ESPRESSO] (https://nanohub.org/resources/dftqe) +```python + nt.DFTExplorer(auth_data, modal=False) +``` + + + + + + +%package help +Summary: Development documents and examples for nanohubtools +Provides: python3-nanohubtools-doc +%description help +# Nanohubtools + +A set of tools/apps to run on nanohub + +## Installation + + +```bash +pip install nanohubtools +``` + +## Usage + + + +```python + +import nanohubtools as nt +auth_data = { + 'client_id': XXXXXXXX, + 'client_secret': XXXXXXXX, + 'grant_type': 'password', + 'username': XXXXXXXX, + 'password': XXXXXXXX +} + +# to get username and password, register on nanohub.org (https://nanohub.org/register/) +# to get client id and secret, create a web application (https://nanohub.org/developer/api/applications/new), use "https://127.0.0.1" as Redirect URL + +tool = nt.Qdotexplorer(auth_data, parameters={'Number of States'}, modal=True, mode='split-right') + +# modal defines if the container outputs to use FloatView or standard ipywidgets Output +# mode defines the positions of new windows of Floatview is enabled + +tool.loadExperiment('IDSESSION') If an experiment was created befores + +``` + +## Available Nanohub Tools + +### BravaisViewerSimplified, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer) +```python + nt.CrystalViewerConstructor(auth_data, modal=False) +``` + +### CrystalViewerSimplified, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer) +```python + nt.CrystalViewerConstructor(auth_data, modal=False) +``` + +### CrystalLab, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer) +```python + nt.CrystalLab(auth_data) +``` + + +### CrystalViewerMaterial, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer) +```python + nt.CrystalViewerMaterial(auth_data, modal=False) +``` + + + +### CrystalViewerBravais, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer) +```python + nt.CrystalViewerBravais(auth_data, modal=False) +``` + + + +### CrystalViewerConstructor, supported by [Crystal Viewer Tool](https://nanohub.org/resources/crystal_viewer) +```python + nt.CrystalViewerConstructor(auth_data, modal=False) +``` + +### SimpleQuantumDot, supported by [Quantum Dot Lab ](https://nanohub.org/resources/qdot/) +```python + nt.SimpleQuantumDot(auth_data, modal=False) +``` + + + +### StackedQuantumDot, supported by [Quantum Dot Lab ](https://nanohub.org/resources/qdot/) +```python + nt.StackedQuantumDot(auth_data, modal=False) +``` + + +### PNToy, supported by [PN Junction Lab] (https://nanohub.org/resources/pntoy) +```python + nt.PNToy(auth_data, modal=False) +``` + + + +### Driftdiffusionlab, supported by [Drift-Diffusion Lab] (https://nanohub.org/resources/semi) +```python + nt.Driftdiffusionlab(auth_data, modal=False) +``` + + + +### DFTExplorer, supported by [DFT calculations with Quantum ESPRESSO] (https://nanohub.org/resources/dftqe) +```python + nt.DFTExplorer(auth_data, modal=False) +``` + + + + + + +%prep +%autosetup -n nanohubtools-0.2.3 + +%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-nanohubtools -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.3-1 +- Package Spec generated |