summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 13:28:28 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 13:28:28 +0000
commit5c1e6e01472170f49a97723f5c30926ed85b41a7 (patch)
tree7d5ef9dc32cf1cd4d8dee5c6bfd67098394c28b1
parent847bc9e41b71caf672371def8d31d4a2d1f86bc0 (diff)
automatic import of python-datasette-copyableopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-datasette-copyable.spec213
-rw-r--r--sources1
3 files changed, 215 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..cbc3a03 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/datasette-copyable-0.3.2.tar.gz
diff --git a/python-datasette-copyable.spec b/python-datasette-copyable.spec
new file mode 100644
index 0000000..933d8c6
--- /dev/null
+++ b/python-datasette-copyable.spec
@@ -0,0 +1,213 @@
+%global _empty_manifest_terminate_build 0
+Name: python-datasette-copyable
+Version: 0.3.2
+Release: 1
+Summary: Datasette plugin for outputting tables in formats suitable for copy and paste
+License: Apache License, Version 2.0
+URL: https://github.com/simonw/datasette-copyable
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/af/89/09f5889f5f37e5638449beaff393065280d47fa53133ad54f287c8fb3a11/datasette-copyable-0.3.2.tar.gz
+BuildArch: noarch
+
+Requires: python3-datasette
+Requires: python3-tabulate
+Requires: python3-pytest
+Requires: python3-pytest-asyncio
+Requires: python3-httpx
+Requires: python3-sqlite-utils
+
+%description
+# datasette-copyable
+
+[![PyPI](https://img.shields.io/pypi/v/datasette-copyable.svg)](https://pypi.org/project/datasette-copyable/)
+[![Changelog](https://img.shields.io/github/v/release/simonw/datasette-copyable?include_prereleases&label=changelog)](https://github.com/simonw/datasette-copyable/releases)
+[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/datasette-copyable/blob/master/LICENSE)
+
+Datasette plugin for outputting tables in formats suitable for copy and paste
+
+## Installation
+
+Install this plugin in the same environment as Datasette.
+
+ $ pip install datasette-copyable
+
+## Demo
+
+You can try this plugin on [fivethirtyeight.datasettes.com](https://fivethirtyeight.datasettes.com/) - browse for tables or queries there and look for the "copyable" link. Here's an example for a table of [airline safety data](https://fivethirtyeight.datasettes.com/fivethirtyeight/airline-safety~2Fairline-safety.copyable).
+
+## Usage
+
+This plugin adds a `.copyable` output extension to every table, view and query.
+
+Navigating to this page will show an interface allowing you to select a format for copying and pasting the demo. The default is TSV, which is suitable for copying into Google Sheets or Excel.
+
+You can add `?_raw=1` to get back just the raw data.
+
+## Development
+
+To set up this plugin locally, first checkout the code. Then create a new virtual environment:
+
+ cd datasette-copyable
+ python3 -mvenv venv
+ source venv/bin/activate
+
+Or if you are using `pipenv`:
+
+ pipenv shell
+
+Now install the dependencies and tests:
+
+ pip install -e '.[test]'
+
+To run the tests:
+
+ pytest
+
+
+%package -n python3-datasette-copyable
+Summary: Datasette plugin for outputting tables in formats suitable for copy and paste
+Provides: python-datasette-copyable
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-datasette-copyable
+# datasette-copyable
+
+[![PyPI](https://img.shields.io/pypi/v/datasette-copyable.svg)](https://pypi.org/project/datasette-copyable/)
+[![Changelog](https://img.shields.io/github/v/release/simonw/datasette-copyable?include_prereleases&label=changelog)](https://github.com/simonw/datasette-copyable/releases)
+[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/datasette-copyable/blob/master/LICENSE)
+
+Datasette plugin for outputting tables in formats suitable for copy and paste
+
+## Installation
+
+Install this plugin in the same environment as Datasette.
+
+ $ pip install datasette-copyable
+
+## Demo
+
+You can try this plugin on [fivethirtyeight.datasettes.com](https://fivethirtyeight.datasettes.com/) - browse for tables or queries there and look for the "copyable" link. Here's an example for a table of [airline safety data](https://fivethirtyeight.datasettes.com/fivethirtyeight/airline-safety~2Fairline-safety.copyable).
+
+## Usage
+
+This plugin adds a `.copyable` output extension to every table, view and query.
+
+Navigating to this page will show an interface allowing you to select a format for copying and pasting the demo. The default is TSV, which is suitable for copying into Google Sheets or Excel.
+
+You can add `?_raw=1` to get back just the raw data.
+
+## Development
+
+To set up this plugin locally, first checkout the code. Then create a new virtual environment:
+
+ cd datasette-copyable
+ python3 -mvenv venv
+ source venv/bin/activate
+
+Or if you are using `pipenv`:
+
+ pipenv shell
+
+Now install the dependencies and tests:
+
+ pip install -e '.[test]'
+
+To run the tests:
+
+ pytest
+
+
+%package help
+Summary: Development documents and examples for datasette-copyable
+Provides: python3-datasette-copyable-doc
+%description help
+# datasette-copyable
+
+[![PyPI](https://img.shields.io/pypi/v/datasette-copyable.svg)](https://pypi.org/project/datasette-copyable/)
+[![Changelog](https://img.shields.io/github/v/release/simonw/datasette-copyable?include_prereleases&label=changelog)](https://github.com/simonw/datasette-copyable/releases)
+[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/datasette-copyable/blob/master/LICENSE)
+
+Datasette plugin for outputting tables in formats suitable for copy and paste
+
+## Installation
+
+Install this plugin in the same environment as Datasette.
+
+ $ pip install datasette-copyable
+
+## Demo
+
+You can try this plugin on [fivethirtyeight.datasettes.com](https://fivethirtyeight.datasettes.com/) - browse for tables or queries there and look for the "copyable" link. Here's an example for a table of [airline safety data](https://fivethirtyeight.datasettes.com/fivethirtyeight/airline-safety~2Fairline-safety.copyable).
+
+## Usage
+
+This plugin adds a `.copyable` output extension to every table, view and query.
+
+Navigating to this page will show an interface allowing you to select a format for copying and pasting the demo. The default is TSV, which is suitable for copying into Google Sheets or Excel.
+
+You can add `?_raw=1` to get back just the raw data.
+
+## Development
+
+To set up this plugin locally, first checkout the code. Then create a new virtual environment:
+
+ cd datasette-copyable
+ python3 -mvenv venv
+ source venv/bin/activate
+
+Or if you are using `pipenv`:
+
+ pipenv shell
+
+Now install the dependencies and tests:
+
+ pip install -e '.[test]'
+
+To run the tests:
+
+ pytest
+
+
+%prep
+%autosetup -n datasette-copyable-0.3.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-datasette-copyable -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.2-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..15234a7
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+fdffbc51631a02b3e0a411dd803d5798 datasette-copyable-0.3.2.tar.gz