From nobody Wed Jan 26 07:33:39 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 DF1721979C3B; Wed, 26 Jan 2022 07:33:39 +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 4JkFnv50Fgz4sM6; Wed, 26 Jan 2022 07:33:39 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643182419; 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=yMNfNEylIR5rGJb4cG6EgIylHSUJS//OyNmK9QgnYAA=; b=GsfdO8PD9haiI4IDyBPFwqaelJ8/Jdu/W+VpAr/Zem58+MmvBTh0QEUFQDpp2bzvlYZW+V xlwph66DlCvnIbyxzv6a0OphWfArRsTqQdHmLY2NjwaVe8ktHzHlINPNT+zBdA5AAEwol5 oWS1KsGTdwO9dY6jNoFrDOP1FENQ+3DOqUmnft10vCS0OH9ApoqMga92WxQ55fjonRYIEU 0d4dsCOTTxNrhddL0UefarNF5L8us9EOQfcsumKkoC8eo8Vdi99fVjl99IWIT+5w3a/kPe HeCkBe9CuUsOJF3oDciYiyd9diuOUZIOASHfQ1Dy3pJve8BWPwCtcG+2N/Uj6g== 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 8CE2F19446; Wed, 26 Jan 2022 07:33:39 +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 20Q7XdCp060907; Wed, 26 Jan 2022 07:33:39 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 20Q7Xd12060906; Wed, 26 Jan 2022 07:33:39 GMT (envelope-from git) Date: Wed, 26 Jan 2022 07:33:39 GMT Message-Id: <202201260733.20Q7Xd12060906@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Hiroki Tagato Subject: git: ade72e60a0ce - main - www/py-httpx-oauth: add port: Async OAuth client using HTTPX 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: tagattie X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: ade72e60a0ceadb97de926e2ed94dc117de1093b Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1643182419; 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=yMNfNEylIR5rGJb4cG6EgIylHSUJS//OyNmK9QgnYAA=; b=tT9bZFkN6xpaDg1XSTY+mEzV0HPisNdtuSSba/tMWQE76iIzW/yamw0Gf4SDevMdyKiht1 ChEeXfujcf5IvoskAwynfY+xvbm7BaajN9mKMn3TLo7k0mgps2S5TNAQ7C1kC1U6A56rnL 6U/Nkqc85Fupw74RKjDeD6pS/ybBsHGhW+onCmoKC7aE6NsR+cWUhjFLxeWPaQgWu/HMqu N0GFvaZBDISgwGl0sUJTG2wS1qqFxS9jHxGfd5Z/r1uIPUc2RkauaAg0h5SdRt36IbtgAC K+HoWhgezkWdhcjrPPzdvn6lhmki9rKU3nyGgqCRLonma5acJGJoTxH9kRaJzA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1643182419; a=rsa-sha256; cv=none; b=VZmCZpWJ8MTe7cdtn3MpswedwUPriic8ZIsSbUiUXCkzRoRYpQw5rmlWFVJm12LunChpxZ DqwravfVVJ/2FMxtOrIAEcAm8YHeeh5i0UFU+GMkJXO5cRqzt5M8NDwW359RPeSOZtmB0O vkZE5Du04UisQhqW9wPNlUZKQq/oX5hCtfdfAA0+cR+PFTxFyK4wPE5ZBcSpuh1sjJyE3c yZDHdYr4Ek7xFg0Xaaw02WGmBYhJxdwqKTx6KYAVc+7+99JRFYWZyGjBFpg7ijkfIruUho XD33R6onITvnQwoPIWW61S7EjyLlS8ZPKqBh6N7cZ/ui28wlpQAN2cxx9qyTjg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by tagattie: URL: https://cgit.FreeBSD.org/ports/commit/?id=ade72e60a0ceadb97de926e2ed94dc117de1093b commit ade72e60a0ceadb97de926e2ed94dc117de1093b Author: Goran Mekić AuthorDate: 2022-01-26 07:31:52 +0000 Commit: Hiroki Tagato CommitDate: 2022-01-26 07:31:52 +0000 www/py-httpx-oauth: add port: Async OAuth client using HTTPX A generic OAuth2 class is provided to adapt to any OAuth2-compliant service. Utilities are provided to ease the integration of an OAuth2 process in FastAPI. WWW: https://github.com/frankie567/httpx-oauth PR: 260880 Reported by: Goran Mekić (new maintainer) --- www/Makefile | 1 + www/py-httpx-oauth/Makefile | 29 +++++++++++++++++++++++++++++ www/py-httpx-oauth/distinfo | 3 +++ www/py-httpx-oauth/files/patch-setup.py | 28 ++++++++++++++++++++++++++++ www/py-httpx-oauth/pkg-descr | 4 ++++ 5 files changed, 65 insertions(+) diff --git a/www/Makefile b/www/Makefile index 042daaf2fa83..10ad3c5f0c2c 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1669,6 +1669,7 @@ SUBDIR += py-httpretty SUBDIR += py-httptools SUBDIR += py-httpx + SUBDIR += py-httpx-oauth SUBDIR += py-httpx-socks SUBDIR += py-httpx013 SUBDIR += py-hyper diff --git a/www/py-httpx-oauth/Makefile b/www/py-httpx-oauth/Makefile new file mode 100644 index 000000000000..e076dc3c954c --- /dev/null +++ b/www/py-httpx-oauth/Makefile @@ -0,0 +1,29 @@ +PORTNAME= httpx-oauth +DISTVERSION= 0.4.1 +CATEGORIES= www devel python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= meka@tilda.center +COMMENT= Async OAuth client using HTTPX + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httpx>=0:www/py-httpx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}respx>=0:www/py-respx@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}typing-extensions>=0:devel/py-typing-extensions@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} + +USES= python:3.7+ +USE_PYTHON= autoplist distutils + +TEST_ENV= PYTHONPATH=${WRKSRC}/src + +NO_ARCH= yes + +# Tests fail with current ports +# do-test: + # cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts= + +.include diff --git a/www/py-httpx-oauth/distinfo b/www/py-httpx-oauth/distinfo new file mode 100644 index 000000000000..b3751120c20d --- /dev/null +++ b/www/py-httpx-oauth/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1643132368 +SHA256 (httpx-oauth-0.4.1.tar.gz) = ee777ee8c33ab521b8bee26158bed1c5eb709034559bd53442509e736458ffee +SIZE (httpx-oauth-0.4.1.tar.gz) = 15272 diff --git a/www/py-httpx-oauth/files/patch-setup.py b/www/py-httpx-oauth/files/patch-setup.py new file mode 100644 index 000000000000..a02860017a80 --- /dev/null +++ b/www/py-httpx-oauth/files/patch-setup.py @@ -0,0 +1,28 @@ +--- setup.py.orig 2022-01-25 17:47:55 UTC ++++ setup.py +@@ -0,0 +1,25 @@ ++#!/usr/bin/env python ++# setup.py generated by flit for tools that don't yet use PEP 517 ++ ++from distutils.core import setup ++ ++packages = \ ++['httpx_oauth', 'httpx_oauth.clients', 'httpx_oauth.integrations'] ++ ++package_data = \ ++{'': ['*']} ++ ++install_requires = \ ++['httpx >=0.18,<0.22', 'typing-extensions'] ++ ++setup(name='httpx-oauth', ++ version='0.4.1', ++ description='Async OAuth client using HTTPX.', ++ author='François Voron', ++ author_email='fvoron@gmail.com', ++ url='https://github.com/frankie567/httpx-oauth', ++ packages=packages, ++ package_data=package_data, ++ install_requires=install_requires, ++ python_requires='>=3.7', ++ ) diff --git a/www/py-httpx-oauth/pkg-descr b/www/py-httpx-oauth/pkg-descr new file mode 100644 index 000000000000..ca5848907739 --- /dev/null +++ b/www/py-httpx-oauth/pkg-descr @@ -0,0 +1,4 @@ +A generic OAuth2 class is provided to adapt to any OAuth2-compliant service. +Utilities are provided to ease the integration of an OAuth2 process in FastAPI. + +WWW: https://github.com/frankie567/httpx-oauth