summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 20:43:28 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 20:43:28 +0000
commit4964ccc004209024202cc4465ee900a92bb2368b (patch)
treefd17e850d81d8be177a33577c3da8cbb85007dc3
parent9da1e593a497730d96cf403131ea71e64160ec4d (diff)
automatic import of python-ytmusicapi
-rw-r--r--.gitignore1
-rw-r--r--python-ytmusicapi.spec151
-rw-r--r--sources1
3 files changed, 153 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..e55ca35 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/ytmusicapi-1.0.0.tar.gz
diff --git a/python-ytmusicapi.spec b/python-ytmusicapi.spec
new file mode 100644
index 0000000..4de443b
--- /dev/null
+++ b/python-ytmusicapi.spec
@@ -0,0 +1,151 @@
+%global _empty_manifest_terminate_build 0
+Name: python-ytmusicapi
+Version: 1.0.0
+Release: 1
+Summary: Unofficial API for YouTube Music
+License: MIT License Copyright (c) 2020 sigma67 Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+URL: https://pypi.org/project/ytmusicapi/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/8c/34/796777ebcd224d4b7deefa73be529c45e2f0f24bc9fba0b63f6555e353f0/ytmusicapi-1.0.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-sphinx
+Requires: python3-requests
+Requires: python3-pre-commit
+Requires: python3-flake8
+Requires: python3-yapf
+Requires: python3-coverage
+Requires: python3-sphinx-rtd-theme
+
+%description
+At this point ytmusicapi supports nearly all content interactions in the YouTube Music web app.
+If you find something missing or broken, feel free to create an `issue <https://github.com/sigma67/ytmusicapi/issues/new>`_
+| **Browsing**:
+* search (including all filters) and suggestions
+* get artist information and releases (songs, videos, albums, singles, related artists)
+* get user information (videos, playlists)
+* get albums
+* get song metadata
+* get watch playlists (next songs when you press play/radio/shuffle in YouTube Music)
+* get song lyrics
+| **Exploring music**:
+* get moods and genres playlists
+* get latest charts (globally and per country)
+| **Library management**:
+* get library contents: playlists, songs, artists, albums and subscriptions
+* add/remove library content: rate songs, albums and playlists, subscribe/unsubscribe artists
+* get and modify play history
+| **Playlists**:
+* create and delete playlists
+* modify playlists: edit metadata, add/move/remove tracks
+* get playlist contents
+* get playlist suggestions
+| **Uploads**:
+* upload songs and remove them again
+* list uploaded songs, artists and albums
+
+%package -n python3-ytmusicapi
+Summary: Unofficial API for YouTube Music
+Provides: python-ytmusicapi
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-ytmusicapi
+At this point ytmusicapi supports nearly all content interactions in the YouTube Music web app.
+If you find something missing or broken, feel free to create an `issue <https://github.com/sigma67/ytmusicapi/issues/new>`_
+| **Browsing**:
+* search (including all filters) and suggestions
+* get artist information and releases (songs, videos, albums, singles, related artists)
+* get user information (videos, playlists)
+* get albums
+* get song metadata
+* get watch playlists (next songs when you press play/radio/shuffle in YouTube Music)
+* get song lyrics
+| **Exploring music**:
+* get moods and genres playlists
+* get latest charts (globally and per country)
+| **Library management**:
+* get library contents: playlists, songs, artists, albums and subscriptions
+* add/remove library content: rate songs, albums and playlists, subscribe/unsubscribe artists
+* get and modify play history
+| **Playlists**:
+* create and delete playlists
+* modify playlists: edit metadata, add/move/remove tracks
+* get playlist contents
+* get playlist suggestions
+| **Uploads**:
+* upload songs and remove them again
+* list uploaded songs, artists and albums
+
+%package help
+Summary: Development documents and examples for ytmusicapi
+Provides: python3-ytmusicapi-doc
+%description help
+At this point ytmusicapi supports nearly all content interactions in the YouTube Music web app.
+If you find something missing or broken, feel free to create an `issue <https://github.com/sigma67/ytmusicapi/issues/new>`_
+| **Browsing**:
+* search (including all filters) and suggestions
+* get artist information and releases (songs, videos, albums, singles, related artists)
+* get user information (videos, playlists)
+* get albums
+* get song metadata
+* get watch playlists (next songs when you press play/radio/shuffle in YouTube Music)
+* get song lyrics
+| **Exploring music**:
+* get moods and genres playlists
+* get latest charts (globally and per country)
+| **Library management**:
+* get library contents: playlists, songs, artists, albums and subscriptions
+* add/remove library content: rate songs, albums and playlists, subscribe/unsubscribe artists
+* get and modify play history
+| **Playlists**:
+* create and delete playlists
+* modify playlists: edit metadata, add/move/remove tracks
+* get playlist contents
+* get playlist suggestions
+| **Uploads**:
+* upload songs and remove them again
+* list uploaded songs, artists and albums
+
+%prep
+%autosetup -n ytmusicapi-1.0.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-ytmusicapi -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..b98eef2
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+8307733f5d791cc1335eba90ae2e61cf ytmusicapi-1.0.0.tar.gz