diff options
author | CoprDistGit <infra@openeuler.org> | 2023-04-10 11:25:09 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-04-10 11:25:09 +0000 |
commit | d3f4af0d4b50b477dfa56809a8b22bf07f924f09 (patch) | |
tree | 14a5e4fe51e523a41161eb42b0d5bd1e2b9efd3c /python-pydeck.spec | |
parent | 25613ee95e0213af389a127da410fdb79e17421e (diff) |
automatic import of python-pydeck
Diffstat (limited to 'python-pydeck.spec')
-rw-r--r-- | python-pydeck.spec | 298 |
1 files changed, 298 insertions, 0 deletions
diff --git a/python-pydeck.spec b/python-pydeck.spec new file mode 100644 index 0000000..852e901 --- /dev/null +++ b/python-pydeck.spec @@ -0,0 +1,298 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pydeck +Version: 0.8.0 +Release: 1 +Summary: Widget for deck.gl maps +License: Apache License 2.0 +URL: https://github.com/visgl/deck.gl/tree/master/bindings/pydeck +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a7/86/f7478f621e998b36afa4e668088c407b04182e1080d609f6b8d0b1396401/pydeck-0.8.0.tar.gz +BuildArch: noarch + +Requires: python3-jinja2 +Requires: python3-numpy +Requires: python3-pydeck-carto +Requires: python3-ipywidgets +Requires: python3-traitlets +Requires: python3-ipython +Requires: python3-ipykernel + +%description +[](https://mybinder.org/v2/gh/uber/deck.gl/binder) +[](https://pydeck.gl) +[](https://anaconda.org/conda-forge/pydeck) +[](https://pepy.tech/project/pydeck/week) + +# pydeck: Large-scale interactive data visualization in Python + +[](https://pydeck.gl/) + +The pydeck library is a set of Python bindings for making spatial visualizations with [deck.gl](https://deck.gl), +optimized for a Jupyter environment. To get started, __[see the documentation](https://pydeck.gl/)__. + +__[To install pydeck, see the instructions here](https://pydeck.gl/installation.html)__. + +For __interactive demos__, click the binder logo below: + +[](https://mybinder.org/v2/gh/uber/deck.gl/binder) + +## Sample code + +The following code renders a visualization similar to the one above in a Jupyter notebook: + +```python +import pydeck as pdk + +# 2014 locations of car accidents in the UK +UK_ACCIDENTS_DATA = ('https://raw.githubusercontent.com/uber-common/' + 'deck.gl-data/master/examples/3d-heatmap/heatmap-data.csv') + +# Define a layer to display on a map +layer = pdk.Layer( + 'HexagonLayer', + UK_ACCIDENTS_DATA, + get_position=['lng', 'lat'], + auto_highlight=True, + elevation_scale=50, + pickable=True, + elevation_range=[0, 3000], + extruded=True, + coverage=1) + +# Set the viewport location +view_state = pdk.ViewState( + longitude=-1.415, + latitude=52.2323, + zoom=6, + min_zoom=5, + max_zoom=15, + pitch=40.5, + bearing=-27.36) + +# Render +r = pdk.Deck(layers=[layer], initial_view_state=view_state) +r.to_html('demo.html') +``` + +If you're developing outside a Jupyter environment, you can run: + +```python +r.to_html('demo.html', notebook_display=False) +``` + +__[See the gallery for more examples.](https://pydeck.gl/#gallery)__ + +### Issues and contributing + +If you encounter an issue, file it in the [deck.gl issues page](https://github.com/visgl/deck.gl/issues/new?assignees=&labels=question&template=question.md&title=) +and include your browser's console output, if any. + +If you'd like to contribute to pydeck, please follow the [deck.gl contribution guidelines](https://github.com/visgl/deck.gl/blob/master/CONTRIBUTING.md) +and the [pydeck development installation instructions](https://pydeck.gl/installation.html#development-notes). + + + + +%package -n python3-pydeck +Summary: Widget for deck.gl maps +Provides: python-pydeck +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pydeck +[](https://mybinder.org/v2/gh/uber/deck.gl/binder) +[](https://pydeck.gl) +[](https://anaconda.org/conda-forge/pydeck) +[](https://pepy.tech/project/pydeck/week) + +# pydeck: Large-scale interactive data visualization in Python + +[](https://pydeck.gl/) + +The pydeck library is a set of Python bindings for making spatial visualizations with [deck.gl](https://deck.gl), +optimized for a Jupyter environment. To get started, __[see the documentation](https://pydeck.gl/)__. + +__[To install pydeck, see the instructions here](https://pydeck.gl/installation.html)__. + +For __interactive demos__, click the binder logo below: + +[](https://mybinder.org/v2/gh/uber/deck.gl/binder) + +## Sample code + +The following code renders a visualization similar to the one above in a Jupyter notebook: + +```python +import pydeck as pdk + +# 2014 locations of car accidents in the UK +UK_ACCIDENTS_DATA = ('https://raw.githubusercontent.com/uber-common/' + 'deck.gl-data/master/examples/3d-heatmap/heatmap-data.csv') + +# Define a layer to display on a map +layer = pdk.Layer( + 'HexagonLayer', + UK_ACCIDENTS_DATA, + get_position=['lng', 'lat'], + auto_highlight=True, + elevation_scale=50, + pickable=True, + elevation_range=[0, 3000], + extruded=True, + coverage=1) + +# Set the viewport location +view_state = pdk.ViewState( + longitude=-1.415, + latitude=52.2323, + zoom=6, + min_zoom=5, + max_zoom=15, + pitch=40.5, + bearing=-27.36) + +# Render +r = pdk.Deck(layers=[layer], initial_view_state=view_state) +r.to_html('demo.html') +``` + +If you're developing outside a Jupyter environment, you can run: + +```python +r.to_html('demo.html', notebook_display=False) +``` + +__[See the gallery for more examples.](https://pydeck.gl/#gallery)__ + +### Issues and contributing + +If you encounter an issue, file it in the [deck.gl issues page](https://github.com/visgl/deck.gl/issues/new?assignees=&labels=question&template=question.md&title=) +and include your browser's console output, if any. + +If you'd like to contribute to pydeck, please follow the [deck.gl contribution guidelines](https://github.com/visgl/deck.gl/blob/master/CONTRIBUTING.md) +and the [pydeck development installation instructions](https://pydeck.gl/installation.html#development-notes). + + + + +%package help +Summary: Development documents and examples for pydeck +Provides: python3-pydeck-doc +%description help +[](https://mybinder.org/v2/gh/uber/deck.gl/binder) +[](https://pydeck.gl) +[](https://anaconda.org/conda-forge/pydeck) +[](https://pepy.tech/project/pydeck/week) + +# pydeck: Large-scale interactive data visualization in Python + +[](https://pydeck.gl/) + +The pydeck library is a set of Python bindings for making spatial visualizations with [deck.gl](https://deck.gl), +optimized for a Jupyter environment. To get started, __[see the documentation](https://pydeck.gl/)__. + +__[To install pydeck, see the instructions here](https://pydeck.gl/installation.html)__. + +For __interactive demos__, click the binder logo below: + +[](https://mybinder.org/v2/gh/uber/deck.gl/binder) + +## Sample code + +The following code renders a visualization similar to the one above in a Jupyter notebook: + +```python +import pydeck as pdk + +# 2014 locations of car accidents in the UK +UK_ACCIDENTS_DATA = ('https://raw.githubusercontent.com/uber-common/' + 'deck.gl-data/master/examples/3d-heatmap/heatmap-data.csv') + +# Define a layer to display on a map +layer = pdk.Layer( + 'HexagonLayer', + UK_ACCIDENTS_DATA, + get_position=['lng', 'lat'], + auto_highlight=True, + elevation_scale=50, + pickable=True, + elevation_range=[0, 3000], + extruded=True, + coverage=1) + +# Set the viewport location +view_state = pdk.ViewState( + longitude=-1.415, + latitude=52.2323, + zoom=6, + min_zoom=5, + max_zoom=15, + pitch=40.5, + bearing=-27.36) + +# Render +r = pdk.Deck(layers=[layer], initial_view_state=view_state) +r.to_html('demo.html') +``` + +If you're developing outside a Jupyter environment, you can run: + +```python +r.to_html('demo.html', notebook_display=False) +``` + +__[See the gallery for more examples.](https://pydeck.gl/#gallery)__ + +### Issues and contributing + +If you encounter an issue, file it in the [deck.gl issues page](https://github.com/visgl/deck.gl/issues/new?assignees=&labels=question&template=question.md&title=) +and include your browser's console output, if any. + +If you'd like to contribute to pydeck, please follow the [deck.gl contribution guidelines](https://github.com/visgl/deck.gl/blob/master/CONTRIBUTING.md) +and the [pydeck development installation instructions](https://pydeck.gl/installation.html#development-notes). + + + + +%prep +%autosetup -n pydeck-0.8.0 + +%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-pydeck -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.8.0-1 +- Package Spec generated |