From nobody Sat Dec 17 15:31:17 2022 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4NZ9120gnQz1G88V; Sat, 17 Dec 2022 15:31:18 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4NZ9120461z3kJ7; Sat, 17 Dec 2022 15:31:18 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671291078; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EAkBhzmXI7D0KLuORIK6SSWgtDd4XZ1qjq6I1aK468U=; b=YEWqL5kUpq0rjPrX2yTHdpJEll0rX1bHnRv27mGt0SPvZJrpXvh20+rsQFxhLxlKHpWt7v DjKdNctAE+9tGMYrMRAJuULlbSihNaQhFm5ucmbul7dgltmj4YizSjrJNbDNiibDDKg+Dg MNxtjdvNCu+yQi3Z6Co4ZQhKFM372ybbPkRY47kKoWN5jbQ2Kqiu0eWYhWfP38ONjPGPPz RdRzFy9MKUkkmb14pAplXcZ9GKcLWDgAMnyiCFZyRTtlSuXf0LhQp6CqJdMbqVv5yYQdEA /ZZ4KFP1BTy2vtrasvn7w6kOw03xXd9bV3hnxnvZe+uPhrfLKucwpr1eRRwJNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1671291078; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=EAkBhzmXI7D0KLuORIK6SSWgtDd4XZ1qjq6I1aK468U=; b=lmMVunkfHjPx47GQ3SJK90WfmCS2odp6TVK1Of31gSzbTxqJtmJTaAW4S0nq6Mh7FLvVPk vDWvDuMmz73hJ/iUPF0Ngrakw65/RwNTX5i+Kl9F1w3/zgHv+o6fqqIkC8mDS59tNYSjVr HDbdwRv8H0xcqirwu7pRMhEQwSmQfi4WgqY5pToW6rNPdFws84j9uCRu1IPNQZPLM/PpVf Vw7F29i8DhFBRqE0E63QVoMaiEjZ4maLp30turB/NHhivby8bhonw5OoJPmZrY9EOSFqv1 LFsB1qOJrOwUz0pbhRJ1IZk31JqCrfEY42wI1/qSOPGqNm8KYLoPT4gayDqIGQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1671291078; a=rsa-sha256; cv=none; b=jn3oPQyKPnUOz3oA6U1KKayx8KmtdzA72rFJAidGhz9W1noZXihnmWcep1OMcwHXkVx78O 3rwK/TOSNxsb4wnSh0aqKeLM7srA1R4wvKrdPgCGj16KwRrfS4oyr+2+QBko+MGl2wSPIc ZqSXddde6RsJtwNj5xyO+Sfl8dcHdCWc23FQQM6mckSUkKxqm0nnv0dJbt11IqPRgRPRD2 XXEoUyZPZHaZsC3g/y3BG6+gaJkFhpL08bxonVE60j1smZb6LhHnno0hqwrEioc0h1d53j nSDXy8vjilF3jVUGlK2u41A/JmIuo1xbd5+bojhhFpLGXSoSGzIqerIfwMQv9Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4NZ9116FP8zxGr; Sat, 17 Dec 2022 15:31:17 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 2BHFVHvp053036; Sat, 17 Dec 2022 15:31:17 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2BHFVHCg053035; Sat, 17 Dec 2022 15:31:17 GMT (envelope-from git) Date: Sat, 17 Dec 2022 15:31:17 GMT Message-Id: <202212171531.2BHFVHCg053035@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nicola Vitale Subject: git: df0ac288bf2b - main - audio/py-spotipy: New port: Python library for Spotify Web API List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: nivit X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: df0ac288bf2b5b281442ebbba0320dc5acf7dfaa Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by nivit: URL: https://cgit.FreeBSD.org/ports/commit/?id=df0ac288bf2b5b281442ebbba0320dc5acf7dfaa commit df0ac288bf2b5b281442ebbba0320dc5acf7dfaa Author: Nicola Vitale AuthorDate: 2022-12-17 15:27:34 +0000 Commit: Nicola Vitale CommitDate: 2022-12-17 15:27:34 +0000 audio/py-spotipy: New port: Python library for Spotify Web API Spotipy is a lightweight Python library for the Spotify Web API. With Spotipy you get full access to all of the music data provided by the Spotify platform. https://github.com/spotipy-dev/spotipy --- audio/Makefile | 1 + audio/py-spotipy/Makefile | 37 +++++++++++++++++++++++++++++++ audio/py-spotipy/distinfo | 3 +++ audio/py-spotipy/files/patch-docs_conf.py | 11 +++++++++ audio/py-spotipy/pkg-descr | 2 ++ 5 files changed, 54 insertions(+) diff --git a/audio/Makefile b/audio/Makefile index 4a03fb9b0fb8..717aff868953 100644 --- a/audio/Makefile +++ b/audio/Makefile @@ -667,6 +667,7 @@ SUBDIR += py-sounddevice SUBDIR += py-soundscrape SUBDIR += py-speechrecognition + SUBDIR += py-spotipy SUBDIR += py-tagpy SUBDIR += py-wavio SUBDIR += py-webrtcvad diff --git a/audio/py-spotipy/Makefile b/audio/py-spotipy/Makefile new file mode 100644 index 000000000000..be825eee30e2 --- /dev/null +++ b/audio/py-spotipy/Makefile @@ -0,0 +1,37 @@ +PORTNAME= spotipy +DISTVERSION= 2.22.0 +CATEGORIES= audio python +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= nivit@FreeBSD.org +COMMENT= Light weight Python library for the Spotify Web API +WWW= https://github.com/spotipy-dev/spotipy + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.md + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}redis>=3.5.3:databases/py-redis@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}requests>=2.25.0:www/py-requests@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}six>=1.15.0:devel/py-six@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}urllib3>=1.26.0:net/py-urllib3@${PY_FLAVOR} + +USES= python +USE_GITHUB= yes +GH_ACCOUNT= spotipy-dev +USE_PYTHON= autoplist distutils + +NO_ARCH= yes + +OPTIONS_DEFINE= DOCS EXAMPLES + +DOCS_BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}sphinx>=1.8.0,1:textproc/py-sphinx@${PY_FLAVOR} +DOCS_PORTDOCS= * .buildinfo +EXAMPLES_PORTEXAMPLES= * + +post-install-DOCS-on: + ${LOCALBASE}/bin/sphinx-build-${PYTHON_VER} -d ${WRKDIR} -b html ${WRKSRC}/docs ${STAGEDIR}${DOCSDIR} + +post-install-EXAMPLES-on: + cd ${WRKSRC}/examples && ${COPYTREE_SHARE} . ${STAGEDIR}/${EXAMPLESDIR} + +.include diff --git a/audio/py-spotipy/distinfo b/audio/py-spotipy/distinfo new file mode 100644 index 000000000000..1593af001406 --- /dev/null +++ b/audio/py-spotipy/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1671214324 +SHA256 (spotipy-dev-spotipy-2.22.0_GH0.tar.gz) = d5cc2672f249d339ba2054d4a0228a1670bc43fd9942f0e7c62fbe99e16f97e2 +SIZE (spotipy-dev-spotipy-2.22.0_GH0.tar.gz) = 109714 diff --git a/audio/py-spotipy/files/patch-docs_conf.py b/audio/py-spotipy/files/patch-docs_conf.py new file mode 100644 index 000000000000..faf767862f62 --- /dev/null +++ b/audio/py-spotipy/files/patch-docs_conf.py @@ -0,0 +1,11 @@ +--- docs/conf.py.orig 2022-12-10 15:31:47 UTC ++++ docs/conf.py +@@ -17,7 +17,7 @@ import sys, os + # add these directories to sys.path here. If the directory is relative to the + # documentation root, use os.path.abspath to make it absolute, like shown here. + #sys.path.insert(0, os.path.abspath('.')) +-sys.path.insert(0, os.path.abspath('.')) ++sys.path.insert(0, os.path.abspath(os.path.join('..'))) + import spotipy + + # -- General configuration ----------------------------------------------------- diff --git a/audio/py-spotipy/pkg-descr b/audio/py-spotipy/pkg-descr new file mode 100644 index 000000000000..2f65e32c998e --- /dev/null +++ b/audio/py-spotipy/pkg-descr @@ -0,0 +1,2 @@ +Spotipy is a lightweight Python library for the Spotify Web API. With Spotipy +you get full access to all of the music data provided by the Spotify platform.