From 31c0816782fec7d183a99a0a3344429bd848c688 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Mon, 10 Apr 2023 13:58:21 +0000 Subject: automatic import of python-spotipy --- .gitignore | 1 + python-spotipy.spec | 322 ++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 324 insertions(+) create mode 100644 python-spotipy.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..3163ecc 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/spotipy-2.23.0.tar.gz diff --git a/python-spotipy.spec b/python-spotipy.spec new file mode 100644 index 0000000..a00423c --- /dev/null +++ b/python-spotipy.spec @@ -0,0 +1,322 @@ +%global _empty_manifest_terminate_build 0 +Name: python-spotipy +Version: 2.23.0 +Release: 1 +Summary: A light weight Python library for the Spotify Web API +License: MIT +URL: https://spotipy.readthedocs.org/ +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/eb/64/3be93b08e95c4e9fd8270d7ef750efc6d454b6479adb91f36f316770f53e/spotipy-2.23.0.tar.gz +BuildArch: noarch + +Requires: python3-redis +Requires: python3-requests +Requires: python3-six +Requires: python3-urllib3 +Requires: python3-redis +Requires: python3-Sphinx +Requires: python3-mock + +%description +# Spotipy + +##### A light weight Python library for the Spotify Web API + +![Tests](https://github.com/plamere/spotipy/workflows/Tests/badge.svg?branch=master) [![Documentation Status](https://readthedocs.org/projects/spotipy/badge/?version=latest)](https://spotipy.readthedocs.io/en/latest/?badge=latest) + +## Documentation + +Spotipy's full documentation is online at [Spotipy Documentation](http://spotipy.readthedocs.org/). + +## Installation + +```bash +pip install spotipy +``` + +alternatively, for Windows users + +```bash +py -m pip install spotipy +``` + +or upgrade + +```bash +pip install spotipy --upgrade +``` + +## Quick Start + +A full set of examples can be found in the [online documentation](http://spotipy.readthedocs.org/) and in the [Spotipy examples directory](https://github.com/plamere/spotipy/tree/master/examples). + +To get started, install spotipy and create an app on https://developers.spotify.com/. +Add your new ID and SECRET to your environment: + +### Without user authentication + +```python +import spotipy +from spotipy.oauth2 import SpotifyClientCredentials + +sp = spotipy.Spotify(auth_manager=SpotifyClientCredentials(client_id="YOUR_APP_CLIENT_ID", + client_secret="YOUR_APP_CLIENT_SECRET")) + +results = sp.search(q='weezer', limit=20) +for idx, track in enumerate(results['tracks']['items']): + print(idx, track['name']) +``` + +### With user authentication + +A redirect URI must be added to your application at [My Dashboard](https://developer.spotify.com/dashboard/applications) to access user authenticated features. + +```python +import spotipy +from spotipy.oauth2 import SpotifyOAuth + +sp = spotipy.Spotify(auth_manager=SpotifyOAuth(client_id="YOUR_APP_CLIENT_ID", + client_secret="YOUR_APP_CLIENT_SECRET", + redirect_uri="YOUR_APP_REDIRECT_URI", + scope="user-library-read")) + +results = sp.current_user_saved_tracks() +for idx, item in enumerate(results['items']): + track = item['track'] + print(idx, track['artists'][0]['name'], " – ", track['name']) +``` + +## Reporting Issues + +For common questions please check our [FAQ](FAQ.md). + +You can ask questions about Spotipy on +[Stack Overflow](http://stackoverflow.com/questions/ask). +Don’t forget to add the *Spotipy* tag, and any other relevant tags as well, before posting. + +If you have suggestions, bugs or other issues specific to this library, +file them [here](https://github.com/plamere/spotipy/issues). +Or just send a pull request. + + + + +%package -n python3-spotipy +Summary: A light weight Python library for the Spotify Web API +Provides: python-spotipy +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-spotipy +# Spotipy + +##### A light weight Python library for the Spotify Web API + +![Tests](https://github.com/plamere/spotipy/workflows/Tests/badge.svg?branch=master) [![Documentation Status](https://readthedocs.org/projects/spotipy/badge/?version=latest)](https://spotipy.readthedocs.io/en/latest/?badge=latest) + +## Documentation + +Spotipy's full documentation is online at [Spotipy Documentation](http://spotipy.readthedocs.org/). + +## Installation + +```bash +pip install spotipy +``` + +alternatively, for Windows users + +```bash +py -m pip install spotipy +``` + +or upgrade + +```bash +pip install spotipy --upgrade +``` + +## Quick Start + +A full set of examples can be found in the [online documentation](http://spotipy.readthedocs.org/) and in the [Spotipy examples directory](https://github.com/plamere/spotipy/tree/master/examples). + +To get started, install spotipy and create an app on https://developers.spotify.com/. +Add your new ID and SECRET to your environment: + +### Without user authentication + +```python +import spotipy +from spotipy.oauth2 import SpotifyClientCredentials + +sp = spotipy.Spotify(auth_manager=SpotifyClientCredentials(client_id="YOUR_APP_CLIENT_ID", + client_secret="YOUR_APP_CLIENT_SECRET")) + +results = sp.search(q='weezer', limit=20) +for idx, track in enumerate(results['tracks']['items']): + print(idx, track['name']) +``` + +### With user authentication + +A redirect URI must be added to your application at [My Dashboard](https://developer.spotify.com/dashboard/applications) to access user authenticated features. + +```python +import spotipy +from spotipy.oauth2 import SpotifyOAuth + +sp = spotipy.Spotify(auth_manager=SpotifyOAuth(client_id="YOUR_APP_CLIENT_ID", + client_secret="YOUR_APP_CLIENT_SECRET", + redirect_uri="YOUR_APP_REDIRECT_URI", + scope="user-library-read")) + +results = sp.current_user_saved_tracks() +for idx, item in enumerate(results['items']): + track = item['track'] + print(idx, track['artists'][0]['name'], " – ", track['name']) +``` + +## Reporting Issues + +For common questions please check our [FAQ](FAQ.md). + +You can ask questions about Spotipy on +[Stack Overflow](http://stackoverflow.com/questions/ask). +Don’t forget to add the *Spotipy* tag, and any other relevant tags as well, before posting. + +If you have suggestions, bugs or other issues specific to this library, +file them [here](https://github.com/plamere/spotipy/issues). +Or just send a pull request. + + + + +%package help +Summary: Development documents and examples for spotipy +Provides: python3-spotipy-doc +%description help +# Spotipy + +##### A light weight Python library for the Spotify Web API + +![Tests](https://github.com/plamere/spotipy/workflows/Tests/badge.svg?branch=master) [![Documentation Status](https://readthedocs.org/projects/spotipy/badge/?version=latest)](https://spotipy.readthedocs.io/en/latest/?badge=latest) + +## Documentation + +Spotipy's full documentation is online at [Spotipy Documentation](http://spotipy.readthedocs.org/). + +## Installation + +```bash +pip install spotipy +``` + +alternatively, for Windows users + +```bash +py -m pip install spotipy +``` + +or upgrade + +```bash +pip install spotipy --upgrade +``` + +## Quick Start + +A full set of examples can be found in the [online documentation](http://spotipy.readthedocs.org/) and in the [Spotipy examples directory](https://github.com/plamere/spotipy/tree/master/examples). + +To get started, install spotipy and create an app on https://developers.spotify.com/. +Add your new ID and SECRET to your environment: + +### Without user authentication + +```python +import spotipy +from spotipy.oauth2 import SpotifyClientCredentials + +sp = spotipy.Spotify(auth_manager=SpotifyClientCredentials(client_id="YOUR_APP_CLIENT_ID", + client_secret="YOUR_APP_CLIENT_SECRET")) + +results = sp.search(q='weezer', limit=20) +for idx, track in enumerate(results['tracks']['items']): + print(idx, track['name']) +``` + +### With user authentication + +A redirect URI must be added to your application at [My Dashboard](https://developer.spotify.com/dashboard/applications) to access user authenticated features. + +```python +import spotipy +from spotipy.oauth2 import SpotifyOAuth + +sp = spotipy.Spotify(auth_manager=SpotifyOAuth(client_id="YOUR_APP_CLIENT_ID", + client_secret="YOUR_APP_CLIENT_SECRET", + redirect_uri="YOUR_APP_REDIRECT_URI", + scope="user-library-read")) + +results = sp.current_user_saved_tracks() +for idx, item in enumerate(results['items']): + track = item['track'] + print(idx, track['artists'][0]['name'], " – ", track['name']) +``` + +## Reporting Issues + +For common questions please check our [FAQ](FAQ.md). + +You can ask questions about Spotipy on +[Stack Overflow](http://stackoverflow.com/questions/ask). +Don’t forget to add the *Spotipy* tag, and any other relevant tags as well, before posting. + +If you have suggestions, bugs or other issues specific to this library, +file them [here](https://github.com/plamere/spotipy/issues). +Or just send a pull request. + + + + +%prep +%autosetup -n spotipy-2.23.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-spotipy -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Mon Apr 10 2023 Python_Bot - 2.23.0-1 +- Package Spec generated diff --git a/sources b/sources new file mode 100644 index 0000000..3c0a5d3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +18195faca386f743e12ad03a4ee06d88 spotipy-2.23.0.tar.gz -- cgit v1.2.3