summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-11 20:27:19 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-11 20:27:19 +0000
commitb6cc5bd87367273712f7585ddc5a04f3ab70d545 (patch)
treeb6e0b8a3d9f3e6e1a860b37b82ac672aeb00f862
parentfe69fa49428e7d544680b7a6c7f730b76df7f6d7 (diff)
automatic import of python-dash-leaflet
-rw-r--r--.gitignore1
-rw-r--r--python-dash-leaflet.spec259
-rw-r--r--sources1
3 files changed, 261 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..5df1b66 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/dash_leaflet-0.1.23.tar.gz
diff --git a/python-dash-leaflet.spec b/python-dash-leaflet.spec
new file mode 100644
index 0000000..0326819
--- /dev/null
+++ b/python-dash-leaflet.spec
@@ -0,0 +1,259 @@
+%global _empty_manifest_terminate_build 0
+Name: python-dash-leaflet
+Version: 0.1.23
+Release: 1
+Summary: Leaflet component for Dash
+License: MIT
+URL: https://github.com/thedirtyfew/dash-leaflet
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/1b/cc/debb15e079684a4e4601a233e722f223461a05fb465b016fc79907d0465c/dash_leaflet-0.1.23.tar.gz
+BuildArch: noarch
+
+Requires: python3-geobuf
+
+%description
+Dash Leaflet is a light wrapper around React-Leaflet. The syntax is similar to other Dash components, with naming conventions following the React-Leaflet API.
+
+## Getting started
+
+The easiest way to get started is to install the latest version of Dash and Dash Leaflet via pip.
+
+```
+pip install dash==2.0.0
+pip install dash-leaflet
+```
+
+Once the installation is completed, paste the following lines of code into a .py file and run it.
+
+````
+import dash
+import dash_leaflet as dl
+
+app = dash.Dash()
+app.layout = dl.Map(dl.TileLayer(), style={'width': '1000px', 'height': '500px'})
+
+if __name__ == '__main__':
+ app.run_server()
+````
+
+If you visit http://127.0.0.1:8050/ in your browser, you should see a Leaflet map.
+
+## Documentation
+
+The documentation has been moved to [Heroku](https://dash-leaflet.herokuapp.com/) to enable an interactive example gallery.
+
+NB: The 0.1.0 release contains a number breaking changes, most prominently merging of the `SuperCluster` and `GeoJSON` components into a new `GeoJSON` component powered by [functional properties](https://dash-leaflet.herokuapp.com/#func_props).
+
+## Build instructions
+
+Start by cloning this repository,
+
+````
+git clone git@github.com:thedirtyfew/dash-leaflet.git
+cd dash-leaflet
+````
+
+Next, create a virtual environment and install the python dependencies,
+
+````
+python3 -m venv venv && . venv/bin/activate
+pip install -r requirements.txt
+````
+
+Finally, install packages via npm (ignore errors) and run the build script,
+
+````
+npm i --ignore-scripts
+npm run build
+````
+
+## Donation
+
+[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=Z9RXT5HVPK3B8&currency_code=DKK&source=url)
+
+
+
+
+
+
+%package -n python3-dash-leaflet
+Summary: Leaflet component for Dash
+Provides: python-dash-leaflet
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-dash-leaflet
+Dash Leaflet is a light wrapper around React-Leaflet. The syntax is similar to other Dash components, with naming conventions following the React-Leaflet API.
+
+## Getting started
+
+The easiest way to get started is to install the latest version of Dash and Dash Leaflet via pip.
+
+```
+pip install dash==2.0.0
+pip install dash-leaflet
+```
+
+Once the installation is completed, paste the following lines of code into a .py file and run it.
+
+````
+import dash
+import dash_leaflet as dl
+
+app = dash.Dash()
+app.layout = dl.Map(dl.TileLayer(), style={'width': '1000px', 'height': '500px'})
+
+if __name__ == '__main__':
+ app.run_server()
+````
+
+If you visit http://127.0.0.1:8050/ in your browser, you should see a Leaflet map.
+
+## Documentation
+
+The documentation has been moved to [Heroku](https://dash-leaflet.herokuapp.com/) to enable an interactive example gallery.
+
+NB: The 0.1.0 release contains a number breaking changes, most prominently merging of the `SuperCluster` and `GeoJSON` components into a new `GeoJSON` component powered by [functional properties](https://dash-leaflet.herokuapp.com/#func_props).
+
+## Build instructions
+
+Start by cloning this repository,
+
+````
+git clone git@github.com:thedirtyfew/dash-leaflet.git
+cd dash-leaflet
+````
+
+Next, create a virtual environment and install the python dependencies,
+
+````
+python3 -m venv venv && . venv/bin/activate
+pip install -r requirements.txt
+````
+
+Finally, install packages via npm (ignore errors) and run the build script,
+
+````
+npm i --ignore-scripts
+npm run build
+````
+
+## Donation
+
+[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=Z9RXT5HVPK3B8&currency_code=DKK&source=url)
+
+
+
+
+
+
+%package help
+Summary: Development documents and examples for dash-leaflet
+Provides: python3-dash-leaflet-doc
+%description help
+Dash Leaflet is a light wrapper around React-Leaflet. The syntax is similar to other Dash components, with naming conventions following the React-Leaflet API.
+
+## Getting started
+
+The easiest way to get started is to install the latest version of Dash and Dash Leaflet via pip.
+
+```
+pip install dash==2.0.0
+pip install dash-leaflet
+```
+
+Once the installation is completed, paste the following lines of code into a .py file and run it.
+
+````
+import dash
+import dash_leaflet as dl
+
+app = dash.Dash()
+app.layout = dl.Map(dl.TileLayer(), style={'width': '1000px', 'height': '500px'})
+
+if __name__ == '__main__':
+ app.run_server()
+````
+
+If you visit http://127.0.0.1:8050/ in your browser, you should see a Leaflet map.
+
+## Documentation
+
+The documentation has been moved to [Heroku](https://dash-leaflet.herokuapp.com/) to enable an interactive example gallery.
+
+NB: The 0.1.0 release contains a number breaking changes, most prominently merging of the `SuperCluster` and `GeoJSON` components into a new `GeoJSON` component powered by [functional properties](https://dash-leaflet.herokuapp.com/#func_props).
+
+## Build instructions
+
+Start by cloning this repository,
+
+````
+git clone git@github.com:thedirtyfew/dash-leaflet.git
+cd dash-leaflet
+````
+
+Next, create a virtual environment and install the python dependencies,
+
+````
+python3 -m venv venv && . venv/bin/activate
+pip install -r requirements.txt
+````
+
+Finally, install packages via npm (ignore errors) and run the build script,
+
+````
+npm i --ignore-scripts
+npm run build
+````
+
+## Donation
+
+[![paypal](https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif)](https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=Z9RXT5HVPK3B8&currency_code=DKK&source=url)
+
+
+
+
+
+
+%prep
+%autosetup -n dash-leaflet-0.1.23
+
+%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-dash-leaflet -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Tue Apr 11 2023 Python_Bot <Python_Bot@openeuler.org> - 0.1.23-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..6e9d014
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+6e8b2bfa7d3f9b2d10ccd7beaf8abc0b dash_leaflet-0.1.23.tar.gz