diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-11 03:39:00 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-11 03:39:00 +0000 |
commit | 72372bdb28617fd0080f847e23c6eb9ed3c3f8e0 (patch) | |
tree | f8b160dca610fe49c804d629ea0df2f0647a201d | |
parent | 0f25ab67b7c835bdb5cf68e023822b5d238a54d6 (diff) |
automatic import of python-pythreejs
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-pythreejs.spec | 516 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 518 insertions, 0 deletions
@@ -0,0 +1 @@ +/pythreejs-2.4.2.tar.gz diff --git a/python-pythreejs.spec b/python-pythreejs.spec new file mode 100644 index 0000000..e35d852 --- /dev/null +++ b/python-pythreejs.spec @@ -0,0 +1,516 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pythreejs +Version: 2.4.2 +Release: 1 +Summary: Interactive 3D graphics for the Jupyter Notebook and JupyterLab, using Three.js and Jupyter Widgets. +License: BSD-3-Clause +URL: https://github.com/jupyter-widgets/pythreejs +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/0a/2e/0ec94286b8eb3fe1200700080e8adb2c8d871bb8db589858a49600d97a7d/pythreejs-2.4.2.tar.gz +BuildArch: noarch + +Requires: python3-ipywidgets +Requires: python3-ipydatawidgets +Requires: python3-numpy +Requires: python3-traitlets +Requires: python3-sphinx +Requires: python3-nbsphinx +Requires: python3-nbsphinx-link +Requires: python3-sphinx-rtd-theme +Requires: python3-scipy +Requires: python3-matplotlib +Requires: python3-scikit-image +Requires: python3-ipywebrtc +Requires: python3-nbval +Requires: python3-pytest-check-links +Requires: python3-numpy + +%description +# pythreejs + +[![Interactive demo on Binder][binder-badge]][binder] +[![Install from PyPI][pypi-badge]][pypi] +[![Install from conda-forge][cf-badge]][cf] +[![Reuse from npm][npm-badge]][npm] +[![Documentation Status][docs-badge]][docs] +[![Build Status][ci-badge]][ci] + +A Python / ThreeJS bridge for [Jupyter Widgets][widgets]. + +![Screencast] + +[binder-badge]: https://mybinder.org/badge_logo.svg +[binder]: https://mybinder.org/v2/gh/jupyter-widgets/pythreejs/HEAD?urlpath=lab%2Ftree%2Fexamples%2FExamples.ipynb +[pypi-badge]: https://img.shields.io/pypi/v/pythreejs?logo=pypi +[pypi]: https://pypi.org/project/pythreejs +[cf-badge]: https://img.shields.io/conda/vn/conda-forge/pythreejs?logo=conda-forge +[cf]: https://anaconda.org/conda-forge/pythreejs +[npm-badge]: https://img.shields.io/npm/v/jupyter-threejs?logo=npm +[npm]: https://www.npmjs.com/package/jupyter-threejs +[docs-badge]: https://readthedocs.org/projects/pythreejs/badge/?version=stable +[docs]: https://pythreejs.readthedocs.io/en/stable +[ci-badge]: https://github.com/jupyter-widgets/pythreejs/actions/workflows/ci.yml/badge.svg +[ci]: https://github.com/jupyter-widgets/pythreejs/actions/workflows/ci.yml?query=branch%3Amaster +[widgets]: https://jupyter.org/widgets +[screencast]: https://raw.githubusercontent.com/jupyter-widgets/pythreejs/master/screencast.gif + +## Installation + +Using `pip`: + +```bash +pip install pythreejs +``` + +or `conda`: + +```bash +conda install -c conda-forge pythreejs +``` + +> For a development install, see the [contributing guide][contributing]. + +The extension should then be installed automatically for your Jupyter client. + +> For JupyterLab `<3`, you may also need to ensure `nodejs` is installed, and +> rebuild the application: +> +> ```bash +> # conda install -c cond-forge 'nodejs>=12' +> jupyter lab build +> ``` + +[contributing]: https://github.com/jupyter-widgets/pythreejs/blob/master/CONTRIBUTING.md + +## Troubleshooting + +If the extension is not automatically installed, you can manually enable it + +### Jupyter Notebook Classic + +```bash +jupyter nbextension list +jupyter nbextension install --py --symlink --sys-prefix pythreejs +jupyter nbextension enable --py --sys-prefix pythreejs +jupyter nbextension list +``` + +You should see: + +```bash +Known nbextensions: + ... + jupyter-js-widgets/extension enabled + - Validating: OK +``` + +> Note for developers: the `--symlink` argument on Linux or MacOS allows one to +> modify the JavaScript code in-place. This feature is not available on Windows. + +### JupyterLab + +To perform a _source installation_: + +```bash +## ensure you have nodejs install, e.g. with conda +# conda install -c conda-forge 'nodejs>=12' +jupyter labextension list +jupyter labextension install --no-build @jupyter-widgets/jupyterlab-manager +jupyter labextension install --no-build jupyter-datawidgets/extension +jupyter labextension install jupyter-threejs +jupyter labextension list +``` + +You should see: + +```bash +JupyterLab v... + ... + jupyterlab-datawidgets v... enabled OK + @jupyter-widgets/jupyterlab-manager v... enabled OK + jupyter-threejs v... enabled OK + +``` + +> This approach is _not recommended_ for JupyterLab 3, which enables +> _federated modules_, installed via `pip`, `conda` or other package managers, +> and does not require rebuilding the entire application. + +## Uninstallation + +Using `pip`: + +```bash +pip uninstall pythreejs +``` + +or `conda`: + +```bash +conda uninstall pythreejs +``` + +> If you applied any manual steps above, it may be necessary to remove the + +### Jupyter Notebook Classic + +```bash +jupyter nbextension disable --py --sys-prefix pythreejs +``` + +### Jupyter Lab + +```bash +jupyter labextension uninstall jupyter-threejs +``` + +## Open Source + +This software is licensed under the [BSD-3-Clause][] License. + +[bsd-3-clause]: https://github.com/jupyter-widgets/pythreejs/blob/master/LICENSE + + +%package -n python3-pythreejs +Summary: Interactive 3D graphics for the Jupyter Notebook and JupyterLab, using Three.js and Jupyter Widgets. +Provides: python-pythreejs +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pythreejs +# pythreejs + +[![Interactive demo on Binder][binder-badge]][binder] +[![Install from PyPI][pypi-badge]][pypi] +[![Install from conda-forge][cf-badge]][cf] +[![Reuse from npm][npm-badge]][npm] +[![Documentation Status][docs-badge]][docs] +[![Build Status][ci-badge]][ci] + +A Python / ThreeJS bridge for [Jupyter Widgets][widgets]. + +![Screencast] + +[binder-badge]: https://mybinder.org/badge_logo.svg +[binder]: https://mybinder.org/v2/gh/jupyter-widgets/pythreejs/HEAD?urlpath=lab%2Ftree%2Fexamples%2FExamples.ipynb +[pypi-badge]: https://img.shields.io/pypi/v/pythreejs?logo=pypi +[pypi]: https://pypi.org/project/pythreejs +[cf-badge]: https://img.shields.io/conda/vn/conda-forge/pythreejs?logo=conda-forge +[cf]: https://anaconda.org/conda-forge/pythreejs +[npm-badge]: https://img.shields.io/npm/v/jupyter-threejs?logo=npm +[npm]: https://www.npmjs.com/package/jupyter-threejs +[docs-badge]: https://readthedocs.org/projects/pythreejs/badge/?version=stable +[docs]: https://pythreejs.readthedocs.io/en/stable +[ci-badge]: https://github.com/jupyter-widgets/pythreejs/actions/workflows/ci.yml/badge.svg +[ci]: https://github.com/jupyter-widgets/pythreejs/actions/workflows/ci.yml?query=branch%3Amaster +[widgets]: https://jupyter.org/widgets +[screencast]: https://raw.githubusercontent.com/jupyter-widgets/pythreejs/master/screencast.gif + +## Installation + +Using `pip`: + +```bash +pip install pythreejs +``` + +or `conda`: + +```bash +conda install -c conda-forge pythreejs +``` + +> For a development install, see the [contributing guide][contributing]. + +The extension should then be installed automatically for your Jupyter client. + +> For JupyterLab `<3`, you may also need to ensure `nodejs` is installed, and +> rebuild the application: +> +> ```bash +> # conda install -c cond-forge 'nodejs>=12' +> jupyter lab build +> ``` + +[contributing]: https://github.com/jupyter-widgets/pythreejs/blob/master/CONTRIBUTING.md + +## Troubleshooting + +If the extension is not automatically installed, you can manually enable it + +### Jupyter Notebook Classic + +```bash +jupyter nbextension list +jupyter nbextension install --py --symlink --sys-prefix pythreejs +jupyter nbextension enable --py --sys-prefix pythreejs +jupyter nbextension list +``` + +You should see: + +```bash +Known nbextensions: + ... + jupyter-js-widgets/extension enabled + - Validating: OK +``` + +> Note for developers: the `--symlink` argument on Linux or MacOS allows one to +> modify the JavaScript code in-place. This feature is not available on Windows. + +### JupyterLab + +To perform a _source installation_: + +```bash +## ensure you have nodejs install, e.g. with conda +# conda install -c conda-forge 'nodejs>=12' +jupyter labextension list +jupyter labextension install --no-build @jupyter-widgets/jupyterlab-manager +jupyter labextension install --no-build jupyter-datawidgets/extension +jupyter labextension install jupyter-threejs +jupyter labextension list +``` + +You should see: + +```bash +JupyterLab v... + ... + jupyterlab-datawidgets v... enabled OK + @jupyter-widgets/jupyterlab-manager v... enabled OK + jupyter-threejs v... enabled OK + +``` + +> This approach is _not recommended_ for JupyterLab 3, which enables +> _federated modules_, installed via `pip`, `conda` or other package managers, +> and does not require rebuilding the entire application. + +## Uninstallation + +Using `pip`: + +```bash +pip uninstall pythreejs +``` + +or `conda`: + +```bash +conda uninstall pythreejs +``` + +> If you applied any manual steps above, it may be necessary to remove the + +### Jupyter Notebook Classic + +```bash +jupyter nbextension disable --py --sys-prefix pythreejs +``` + +### Jupyter Lab + +```bash +jupyter labextension uninstall jupyter-threejs +``` + +## Open Source + +This software is licensed under the [BSD-3-Clause][] License. + +[bsd-3-clause]: https://github.com/jupyter-widgets/pythreejs/blob/master/LICENSE + + +%package help +Summary: Development documents and examples for pythreejs +Provides: python3-pythreejs-doc +%description help +# pythreejs + +[![Interactive demo on Binder][binder-badge]][binder] +[![Install from PyPI][pypi-badge]][pypi] +[![Install from conda-forge][cf-badge]][cf] +[![Reuse from npm][npm-badge]][npm] +[![Documentation Status][docs-badge]][docs] +[![Build Status][ci-badge]][ci] + +A Python / ThreeJS bridge for [Jupyter Widgets][widgets]. + +![Screencast] + +[binder-badge]: https://mybinder.org/badge_logo.svg +[binder]: https://mybinder.org/v2/gh/jupyter-widgets/pythreejs/HEAD?urlpath=lab%2Ftree%2Fexamples%2FExamples.ipynb +[pypi-badge]: https://img.shields.io/pypi/v/pythreejs?logo=pypi +[pypi]: https://pypi.org/project/pythreejs +[cf-badge]: https://img.shields.io/conda/vn/conda-forge/pythreejs?logo=conda-forge +[cf]: https://anaconda.org/conda-forge/pythreejs +[npm-badge]: https://img.shields.io/npm/v/jupyter-threejs?logo=npm +[npm]: https://www.npmjs.com/package/jupyter-threejs +[docs-badge]: https://readthedocs.org/projects/pythreejs/badge/?version=stable +[docs]: https://pythreejs.readthedocs.io/en/stable +[ci-badge]: https://github.com/jupyter-widgets/pythreejs/actions/workflows/ci.yml/badge.svg +[ci]: https://github.com/jupyter-widgets/pythreejs/actions/workflows/ci.yml?query=branch%3Amaster +[widgets]: https://jupyter.org/widgets +[screencast]: https://raw.githubusercontent.com/jupyter-widgets/pythreejs/master/screencast.gif + +## Installation + +Using `pip`: + +```bash +pip install pythreejs +``` + +or `conda`: + +```bash +conda install -c conda-forge pythreejs +``` + +> For a development install, see the [contributing guide][contributing]. + +The extension should then be installed automatically for your Jupyter client. + +> For JupyterLab `<3`, you may also need to ensure `nodejs` is installed, and +> rebuild the application: +> +> ```bash +> # conda install -c cond-forge 'nodejs>=12' +> jupyter lab build +> ``` + +[contributing]: https://github.com/jupyter-widgets/pythreejs/blob/master/CONTRIBUTING.md + +## Troubleshooting + +If the extension is not automatically installed, you can manually enable it + +### Jupyter Notebook Classic + +```bash +jupyter nbextension list +jupyter nbextension install --py --symlink --sys-prefix pythreejs +jupyter nbextension enable --py --sys-prefix pythreejs +jupyter nbextension list +``` + +You should see: + +```bash +Known nbextensions: + ... + jupyter-js-widgets/extension enabled + - Validating: OK +``` + +> Note for developers: the `--symlink` argument on Linux or MacOS allows one to +> modify the JavaScript code in-place. This feature is not available on Windows. + +### JupyterLab + +To perform a _source installation_: + +```bash +## ensure you have nodejs install, e.g. with conda +# conda install -c conda-forge 'nodejs>=12' +jupyter labextension list +jupyter labextension install --no-build @jupyter-widgets/jupyterlab-manager +jupyter labextension install --no-build jupyter-datawidgets/extension +jupyter labextension install jupyter-threejs +jupyter labextension list +``` + +You should see: + +```bash +JupyterLab v... + ... + jupyterlab-datawidgets v... enabled OK + @jupyter-widgets/jupyterlab-manager v... enabled OK + jupyter-threejs v... enabled OK + +``` + +> This approach is _not recommended_ for JupyterLab 3, which enables +> _federated modules_, installed via `pip`, `conda` or other package managers, +> and does not require rebuilding the entire application. + +## Uninstallation + +Using `pip`: + +```bash +pip uninstall pythreejs +``` + +or `conda`: + +```bash +conda uninstall pythreejs +``` + +> If you applied any manual steps above, it may be necessary to remove the + +### Jupyter Notebook Classic + +```bash +jupyter nbextension disable --py --sys-prefix pythreejs +``` + +### Jupyter Lab + +```bash +jupyter labextension uninstall jupyter-threejs +``` + +## Open Source + +This software is licensed under the [BSD-3-Clause][] License. + +[bsd-3-clause]: https://github.com/jupyter-widgets/pythreejs/blob/master/LICENSE + + +%prep +%autosetup -n pythreejs-2.4.2 + +%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-pythreejs -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 2.4.2-1 +- Package Spec generated @@ -0,0 +1 @@ +b4064be2f60ee1bb09fcce763fdf3bb0 pythreejs-2.4.2.tar.gz |