summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-12 05:39:56 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-12 05:39:56 +0000
commit473ed23a7ea793af63fdca004a119c290e83fca8 (patch)
tree188a9062b3abac3a0ce9bf11a204924b762fef33
parent756ef87289f040f522ff2671c60986780a537119 (diff)
automatic import of python-pyzotero
-rw-r--r--.gitignore1
-rw-r--r--python-pyzotero.spec342
-rw-r--r--sources1
3 files changed, 344 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..183994f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyzotero-1.5.5.tar.gz
diff --git a/python-pyzotero.spec b/python-pyzotero.spec
new file mode 100644
index 0000000..23f14a0
--- /dev/null
+++ b/python-pyzotero.spec
@@ -0,0 +1,342 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyzotero
+Version: 1.5.5
+Release: 1
+Summary: Python wrapper for the Zotero API
+License: MIT
+URL: https://github.com/urschrei/pyzotero
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/ae/ab/1c05b69a9054d47fdffae50307bd2b946fb65f526b8cdd8a0643fe50b0fc/pyzotero-1.5.5.tar.gz
+BuildArch: noarch
+
+Requires: python3-feedparser
+Requires: python3-pytz
+Requires: python3-requests
+Requires: python3-bibtexparser
+Requires: python3-pytest
+Requires: python3-pytest
+
+%description
+[![Supported Python versions](https://img.shields.io/pypi/pyversions/Pyzotero.svg?style=flat)](https://pypi.python.org/pypi/Pyzotero/) [![Docs](https://readthedocs.org/projects/pyzotero/badge/?version=latest)](http://pyzotero.readthedocs.org/en/latest/?badge=latest) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](license.txt) [![PyPI Version](https://img.shields.io/pypi/v/Pyzotero.svg)](https://pypi.python.org/pypi/Pyzotero) [![Anaconda-Server Badge](https://anaconda.org/conda-forge/pyzotero/badges/version.svg)](https://anaconda.org/conda-forge/pyzotero) [![Downloads](https://pepy.tech/badge/pyzotero)](https://pepy.tech/project/pyzotero)
+
+# Pyzotero: An API Client for the Zotero API
+
+# Quickstart
+
+1. `pip install pyzotero` **or** `conda config --add channels conda-forge && conda install pyzotero`
+2. You'll need the ID of the personal or group library you want to access:
+ - Your **personal library ID** is available [here](https://www.zotero.org/settings/keys), in the section `Your userID for use in API calls`
+ - For **group libraries**, the ID can be found by opening the group's page: `https://www.zotero.org/groups/groupname`, and hovering over the `group settings` link. The ID is the integer after `/groups/`
+3. You'll also need<sup>†</sup> to get an **API key** [here][2]
+4. Are you accessing your own Zotero library? `library_type` is `'user'`
+5. Are you accessing a shared group library? `library_type` is `'group'`.
+
+Then:
+
+``` python
+from pyzotero import zotero
+zot = zotero.Zotero(library_id, library_type, api_key)
+items = zot.top(limit=5)
+# we've retrieved the latest five top-level items in our library
+# we can print each item's item type and ID
+for item in items:
+ print('Item: %s | Key: %s' % (item['data']['itemType'], item['data']['key']))
+```
+
+# Documentation
+
+Full documentation of available Pyzotero methods, code examples, and sample output is available on [Read The Docs][3].
+
+# Installation
+
+* Using [pip][10]: `pip install pyzotero` (it's available as a wheel, and is tested on Python 3.6 and up)
+* Using Anaconda:`conda config --add channels conda-forge && conda install pyzotero`
+* From a local clone, if you wish to install Pyzotero from a specific branch:
+
+Example:
+
+``` bash
+git clone git://github.com/urschrei/pyzotero.git
+cd pyzotero
+git checkout dev
+pip install .
+```
+
+## Testing
+
+Run `pytest .` from the top-level directory.
+
+## Issues
+
+The latest commits can be found on the [dev branch][9], although new features are currently rare. If you encounter an error, please open an issue.
+
+## Pull Requests
+
+Pull requests are welcomed. Please read the [contribution guidelines](CONTRIBUTING.md). In particular, please **base your PR on the `dev` branch**.
+
+## Versioning
+
+As of v1.0.0, Pyzotero is versioned according to [Semver](http://semver.org); version increments are performed as follows:
+
+
+
+1. MAJOR version will increment with incompatible API changes,
+2. MINOR version will increment when functionality is added in a backwards-compatible manner, and
+3. PATCH version will increment with backwards-compatible bug fixes.
+
+# Citation
+
+Pyzotero has a DOI:
+[![DOI](https://zenodo.org/badge/1423403.svg)](https://zenodo.org/badge/latestdoi/1423403)
+You may also cite Pyzotero using [CITATION.cff](CITATION.cff).
+A sample citation (APA 6th edition) might look like:
+> Stephan Hügel, The Pyzotero Authors (2019, May 18). urschrei/pyzotero: Version v1.3.15. http://doi.org/10.5281/zenodo.2917290
+
+# License
+
+Pyzotero is licensed under the [MIT license][8]. See [license.txt](license.txt) for details.
+
+[1]: https://www.zotero.org/support/dev/web_api/v3/start
+[2]: https://www.zotero.org/settings/keys/new
+[3]: http://pyzotero.readthedocs.org/en/latest/
+[7]: https://nose2.readthedocs.io/en/latest/
+[8]: http://opensource.org/licenses/MIT
+[9]: https://github.com/urschrei/pyzotero/tree/dev
+[10]: http://www.pip-installer.org/en/latest/index.html
+† This isn't strictly true: you only need an API key for personal libraries and non-public group libraries.
+
+
+
+%package -n python3-pyzotero
+Summary: Python wrapper for the Zotero API
+Provides: python-pyzotero
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pyzotero
+[![Supported Python versions](https://img.shields.io/pypi/pyversions/Pyzotero.svg?style=flat)](https://pypi.python.org/pypi/Pyzotero/) [![Docs](https://readthedocs.org/projects/pyzotero/badge/?version=latest)](http://pyzotero.readthedocs.org/en/latest/?badge=latest) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](license.txt) [![PyPI Version](https://img.shields.io/pypi/v/Pyzotero.svg)](https://pypi.python.org/pypi/Pyzotero) [![Anaconda-Server Badge](https://anaconda.org/conda-forge/pyzotero/badges/version.svg)](https://anaconda.org/conda-forge/pyzotero) [![Downloads](https://pepy.tech/badge/pyzotero)](https://pepy.tech/project/pyzotero)
+
+# Pyzotero: An API Client for the Zotero API
+
+# Quickstart
+
+1. `pip install pyzotero` **or** `conda config --add channels conda-forge && conda install pyzotero`
+2. You'll need the ID of the personal or group library you want to access:
+ - Your **personal library ID** is available [here](https://www.zotero.org/settings/keys), in the section `Your userID for use in API calls`
+ - For **group libraries**, the ID can be found by opening the group's page: `https://www.zotero.org/groups/groupname`, and hovering over the `group settings` link. The ID is the integer after `/groups/`
+3. You'll also need<sup>†</sup> to get an **API key** [here][2]
+4. Are you accessing your own Zotero library? `library_type` is `'user'`
+5. Are you accessing a shared group library? `library_type` is `'group'`.
+
+Then:
+
+``` python
+from pyzotero import zotero
+zot = zotero.Zotero(library_id, library_type, api_key)
+items = zot.top(limit=5)
+# we've retrieved the latest five top-level items in our library
+# we can print each item's item type and ID
+for item in items:
+ print('Item: %s | Key: %s' % (item['data']['itemType'], item['data']['key']))
+```
+
+# Documentation
+
+Full documentation of available Pyzotero methods, code examples, and sample output is available on [Read The Docs][3].
+
+# Installation
+
+* Using [pip][10]: `pip install pyzotero` (it's available as a wheel, and is tested on Python 3.6 and up)
+* Using Anaconda:`conda config --add channels conda-forge && conda install pyzotero`
+* From a local clone, if you wish to install Pyzotero from a specific branch:
+
+Example:
+
+``` bash
+git clone git://github.com/urschrei/pyzotero.git
+cd pyzotero
+git checkout dev
+pip install .
+```
+
+## Testing
+
+Run `pytest .` from the top-level directory.
+
+## Issues
+
+The latest commits can be found on the [dev branch][9], although new features are currently rare. If you encounter an error, please open an issue.
+
+## Pull Requests
+
+Pull requests are welcomed. Please read the [contribution guidelines](CONTRIBUTING.md). In particular, please **base your PR on the `dev` branch**.
+
+## Versioning
+
+As of v1.0.0, Pyzotero is versioned according to [Semver](http://semver.org); version increments are performed as follows:
+
+
+
+1. MAJOR version will increment with incompatible API changes,
+2. MINOR version will increment when functionality is added in a backwards-compatible manner, and
+3. PATCH version will increment with backwards-compatible bug fixes.
+
+# Citation
+
+Pyzotero has a DOI:
+[![DOI](https://zenodo.org/badge/1423403.svg)](https://zenodo.org/badge/latestdoi/1423403)
+You may also cite Pyzotero using [CITATION.cff](CITATION.cff).
+A sample citation (APA 6th edition) might look like:
+> Stephan Hügel, The Pyzotero Authors (2019, May 18). urschrei/pyzotero: Version v1.3.15. http://doi.org/10.5281/zenodo.2917290
+
+# License
+
+Pyzotero is licensed under the [MIT license][8]. See [license.txt](license.txt) for details.
+
+[1]: https://www.zotero.org/support/dev/web_api/v3/start
+[2]: https://www.zotero.org/settings/keys/new
+[3]: http://pyzotero.readthedocs.org/en/latest/
+[7]: https://nose2.readthedocs.io/en/latest/
+[8]: http://opensource.org/licenses/MIT
+[9]: https://github.com/urschrei/pyzotero/tree/dev
+[10]: http://www.pip-installer.org/en/latest/index.html
+† This isn't strictly true: you only need an API key for personal libraries and non-public group libraries.
+
+
+
+%package help
+Summary: Development documents and examples for pyzotero
+Provides: python3-pyzotero-doc
+%description help
+[![Supported Python versions](https://img.shields.io/pypi/pyversions/Pyzotero.svg?style=flat)](https://pypi.python.org/pypi/Pyzotero/) [![Docs](https://readthedocs.org/projects/pyzotero/badge/?version=latest)](http://pyzotero.readthedocs.org/en/latest/?badge=latest) [![MIT licensed](https://img.shields.io/badge/license-MIT-blue.svg)](license.txt) [![PyPI Version](https://img.shields.io/pypi/v/Pyzotero.svg)](https://pypi.python.org/pypi/Pyzotero) [![Anaconda-Server Badge](https://anaconda.org/conda-forge/pyzotero/badges/version.svg)](https://anaconda.org/conda-forge/pyzotero) [![Downloads](https://pepy.tech/badge/pyzotero)](https://pepy.tech/project/pyzotero)
+
+# Pyzotero: An API Client for the Zotero API
+
+# Quickstart
+
+1. `pip install pyzotero` **or** `conda config --add channels conda-forge && conda install pyzotero`
+2. You'll need the ID of the personal or group library you want to access:
+ - Your **personal library ID** is available [here](https://www.zotero.org/settings/keys), in the section `Your userID for use in API calls`
+ - For **group libraries**, the ID can be found by opening the group's page: `https://www.zotero.org/groups/groupname`, and hovering over the `group settings` link. The ID is the integer after `/groups/`
+3. You'll also need<sup>†</sup> to get an **API key** [here][2]
+4. Are you accessing your own Zotero library? `library_type` is `'user'`
+5. Are you accessing a shared group library? `library_type` is `'group'`.
+
+Then:
+
+``` python
+from pyzotero import zotero
+zot = zotero.Zotero(library_id, library_type, api_key)
+items = zot.top(limit=5)
+# we've retrieved the latest five top-level items in our library
+# we can print each item's item type and ID
+for item in items:
+ print('Item: %s | Key: %s' % (item['data']['itemType'], item['data']['key']))
+```
+
+# Documentation
+
+Full documentation of available Pyzotero methods, code examples, and sample output is available on [Read The Docs][3].
+
+# Installation
+
+* Using [pip][10]: `pip install pyzotero` (it's available as a wheel, and is tested on Python 3.6 and up)
+* Using Anaconda:`conda config --add channels conda-forge && conda install pyzotero`
+* From a local clone, if you wish to install Pyzotero from a specific branch:
+
+Example:
+
+``` bash
+git clone git://github.com/urschrei/pyzotero.git
+cd pyzotero
+git checkout dev
+pip install .
+```
+
+## Testing
+
+Run `pytest .` from the top-level directory.
+
+## Issues
+
+The latest commits can be found on the [dev branch][9], although new features are currently rare. If you encounter an error, please open an issue.
+
+## Pull Requests
+
+Pull requests are welcomed. Please read the [contribution guidelines](CONTRIBUTING.md). In particular, please **base your PR on the `dev` branch**.
+
+## Versioning
+
+As of v1.0.0, Pyzotero is versioned according to [Semver](http://semver.org); version increments are performed as follows:
+
+
+
+1. MAJOR version will increment with incompatible API changes,
+2. MINOR version will increment when functionality is added in a backwards-compatible manner, and
+3. PATCH version will increment with backwards-compatible bug fixes.
+
+# Citation
+
+Pyzotero has a DOI:
+[![DOI](https://zenodo.org/badge/1423403.svg)](https://zenodo.org/badge/latestdoi/1423403)
+You may also cite Pyzotero using [CITATION.cff](CITATION.cff).
+A sample citation (APA 6th edition) might look like:
+> Stephan Hügel, The Pyzotero Authors (2019, May 18). urschrei/pyzotero: Version v1.3.15. http://doi.org/10.5281/zenodo.2917290
+
+# License
+
+Pyzotero is licensed under the [MIT license][8]. See [license.txt](license.txt) for details.
+
+[1]: https://www.zotero.org/support/dev/web_api/v3/start
+[2]: https://www.zotero.org/settings/keys/new
+[3]: http://pyzotero.readthedocs.org/en/latest/
+[7]: https://nose2.readthedocs.io/en/latest/
+[8]: http://opensource.org/licenses/MIT
+[9]: https://github.com/urschrei/pyzotero/tree/dev
+[10]: http://www.pip-installer.org/en/latest/index.html
+† This isn't strictly true: you only need an API key for personal libraries and non-public group libraries.
+
+
+
+%prep
+%autosetup -n pyzotero-1.5.5
+
+%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-pyzotero -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed Apr 12 2023 Python_Bot <Python_Bot@openeuler.org> - 1.5.5-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..81b623b
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+393684feda6a8207df8f9564cfa022ef pyzotero-1.5.5.tar.gz