diff options
author | CoprDistGit <infra@openeuler.org> | 2023-05-15 03:14:20 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2023-05-15 03:14:20 +0000 |
commit | 501c0fba61d118ea8e8dc24c1c3f18de956a717e (patch) | |
tree | 1ff30587607dce4718df3c0cbba9582e91951d11 /python-drawdata.spec | |
parent | 610af18ab32cdc4bd736f3968218f6d1f72cd307 (diff) |
automatic import of python-drawdata
Diffstat (limited to 'python-drawdata.spec')
-rw-r--r-- | python-drawdata.spec | 206 |
1 files changed, 206 insertions, 0 deletions
diff --git a/python-drawdata.spec b/python-drawdata.spec new file mode 100644 index 0000000..006cfee --- /dev/null +++ b/python-drawdata.spec @@ -0,0 +1,206 @@ +%global _empty_manifest_terminate_build 0 +Name: python-drawdata +Version: 0.2.0 +Release: 1 +Summary: draw a dataset from inside jupyter +License: MIT License +URL: https://pypi.org/project/drawdata/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d5/ed/f0d354e256126384fc1dd9e8ac9ac7a42423c466b7920d17f5eb269075b0/drawdata-0.2.0.tar.gz +BuildArch: noarch + +Requires: python3-jupyter +Requires: python3-ipython + +%description +<img src="logo.png" width=125 height=125 align="right"> + +# drawdata + +This small python app allows you to draw a dataset in a jupyter +notebook. This should be very useful when teaching machine learning algorithms. + + + +You can get the same tooling from going to [drawdata.xyz](https://drawdata.xyz) +but with this library you'll also be able to use it from within jupyter. This will save you a precious tab in the browser. + +## Installation + +Installation occurs via pip. + +``` +python -m pip install drawdata +``` + +To read the data, `pandas` is useful: + +``` +python -m pip install pandas +``` + +## Usage + +When you run this from jupyter, you should load in an iframe. + +```python +from drawdata import draw_scatter + +draw_scatter() +``` + +Once you're done drawing you can copy the data to the clipboard. After this you can use pandas to read the clipboard to get your drawn data into a dataframe. + +```python +import pandas as pd +pd.read_clipboard(sep=",") +``` + + + + +%package -n python3-drawdata +Summary: draw a dataset from inside jupyter +Provides: python-drawdata +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-drawdata +<img src="logo.png" width=125 height=125 align="right"> + +# drawdata + +This small python app allows you to draw a dataset in a jupyter +notebook. This should be very useful when teaching machine learning algorithms. + + + +You can get the same tooling from going to [drawdata.xyz](https://drawdata.xyz) +but with this library you'll also be able to use it from within jupyter. This will save you a precious tab in the browser. + +## Installation + +Installation occurs via pip. + +``` +python -m pip install drawdata +``` + +To read the data, `pandas` is useful: + +``` +python -m pip install pandas +``` + +## Usage + +When you run this from jupyter, you should load in an iframe. + +```python +from drawdata import draw_scatter + +draw_scatter() +``` + +Once you're done drawing you can copy the data to the clipboard. After this you can use pandas to read the clipboard to get your drawn data into a dataframe. + +```python +import pandas as pd +pd.read_clipboard(sep=",") +``` + + + + +%package help +Summary: Development documents and examples for drawdata +Provides: python3-drawdata-doc +%description help +<img src="logo.png" width=125 height=125 align="right"> + +# drawdata + +This small python app allows you to draw a dataset in a jupyter +notebook. This should be very useful when teaching machine learning algorithms. + + + +You can get the same tooling from going to [drawdata.xyz](https://drawdata.xyz) +but with this library you'll also be able to use it from within jupyter. This will save you a precious tab in the browser. + +## Installation + +Installation occurs via pip. + +``` +python -m pip install drawdata +``` + +To read the data, `pandas` is useful: + +``` +python -m pip install pandas +``` + +## Usage + +When you run this from jupyter, you should load in an iframe. + +```python +from drawdata import draw_scatter + +draw_scatter() +``` + +Once you're done drawing you can copy the data to the clipboard. After this you can use pandas to read the clipboard to get your drawn data into a dataframe. + +```python +import pandas as pd +pd.read_clipboard(sep=",") +``` + + + + +%prep +%autosetup -n drawdata-0.2.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-drawdata -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon May 15 2023 Python_Bot <Python_Bot@openeuler.org> - 0.2.0-1 +- Package Spec generated |