From nobody Sun Feb 18 12:06:40 2024 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 4Td4CP3hfsz5424t; Sun, 18 Feb 2024 12:06:41 +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 4Td4CP1QlSz4bDm; Sun, 18 Feb 2024 12:06:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708258001; 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=XRpWwqqZaqABjIBXaFFnu+00C0ui5e3F9s6CltJuFGo=; b=dlT3CyzpM2MM6i/aFpnUCsHMjv3u6N0oX+hDRqxNXALaMMxXJwvfR9cJ3LdqIXwxcW1xFI Iczo5M6W3A2vsqqByUhcQXenPAxDjRaz0UA2KeEq/s3PkfJqzLX5OcXLHqLS9rgZwza7Z/ jvFKWv17TIM5TPCQjGsL1Bi/bjx9ob53jVf6X7FKrdKa4I5dOC0U9r0I41imPXz4rUFrFQ veAriZ4AzwA8O0knBL89DOpdI1bgc91h+JJeOFZf+gjyUUjNWopHtMbFrtgTmVY1pFIUWU A7FDfLxBDqbfLn1UfN6jBnfcIUxpHeY3KGINDA9KIUgU1slSUmsR9w1JzbyvfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708258001; 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=XRpWwqqZaqABjIBXaFFnu+00C0ui5e3F9s6CltJuFGo=; b=cJoKodpQwpDAHMDGsEvGLaUMm3H2pZj+T6t6brcTrMYZlinss/wBb+JeWECMxxapztSz7u 7+IRaxlg8h4nnsTA3RXV/vlBh8qAIJyD8sKUGs9A2XqNsPx3kryt6c96bCc8n/CLZPdQb6 xB/VV40/QfgX5bJoffkSG9Dhtw5GGy749GYeEEXukhVoFLd7l+zO42FRbE1jy5P/QrfYTL sT+fnmiYY5mCV2m5LNc2L/WH1tp4t+RqZ1uI+wAGybBqispwVfxLPbMzT+Y/dx1q9B7+z2 hrgjuKNhu8PQe5WlLbgHVRFd7fkKu4zpMtSGeV3Qj2MuoitUB0BX/BYRLra+hQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708258001; a=rsa-sha256; cv=none; b=JZ3ey/v1W59OeZeF+Rpra3AwTx5K+7CQo2GizpmJsCag8HHnWV2h5LjPRVtVTWyJbhX9Zh J9Sv1VQ8whx2BZF/n4PZZZ5o0uABRunJnSrdFYhzWEHirdoekD0/gLJwlWvimRf3IkDK8D I/+dYs9miYCaFymOSqzL5Cj7d1vVBzV7YPqNNMsDGzh0HzsqUSBTBsQh9Al1HY6mUpJv7L ZUMTdZiTVY9erSGc8r7csKocspChiHjsJPWujgJAhd/ADQZxOQdHysPGqM1kkutnE8h13Z M5nwdtnncoCJqTiU7EAKkuQWzj1Ntpa1cD8V0tvsPjCJ8HeVNXH8tQ0tq4MNVg== 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 4Td4CP0VVxzqmt; Sun, 18 Feb 2024 12:06:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 41IC6ep1088619; Sun, 18 Feb 2024 12:06:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41IC6etu088616; Sun, 18 Feb 2024 12:06:40 GMT (envelope-from git) Date: Sun, 18 Feb 2024 12:06:40 GMT Message-Id: <202402181206.41IC6etu088616@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Michael Gmelin Subject: git: f836820133ad - main - textproc/py-tika-client: New port 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: grembo X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: f836820133ad81b454de23c0a90025facede7307 Auto-Submitted: auto-generated The branch main has been updated by grembo: URL: https://cgit.FreeBSD.org/ports/commit/?id=f836820133ad81b454de23c0a90025facede7307 commit f836820133ad81b454de23c0a90025facede7307 Author: Michael Gmelin AuthorDate: 2024-02-12 13:51:31 +0000 Commit: Michael Gmelin CommitDate: 2024-02-18 12:04:00 +0000 textproc/py-tika-client: New port Python REST client for Apache Tika server --- textproc/Makefile | 1 + textproc/py-tika-client/Makefile | 30 ++++++++++++++++++++++++++++++ textproc/py-tika-client/distinfo | 3 +++ textproc/py-tika-client/pkg-descr | 13 +++++++++++++ 4 files changed, 47 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 0ec3d9f9c2e7..0991355f8e09 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1616,6 +1616,7 @@ SUBDIR += py-textual SUBDIR += py-textwrap3 SUBDIR += py-three-merge + SUBDIR += py-tika-client SUBDIR += py-tiktoken SUBDIR += py-tinycss SUBDIR += py-tinycss2 diff --git a/textproc/py-tika-client/Makefile b/textproc/py-tika-client/Makefile new file mode 100644 index 000000000000..0082c43bb631 --- /dev/null +++ b/textproc/py-tika-client/Makefile @@ -0,0 +1,30 @@ +PORTNAME= tika-client +PORTVERSION= 0.5.0 +CATEGORIES= textproc python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} +DISTNAME= ${PORTNAME:S/-/_/}-${PORTVERSION} + +MAINTAINER= grembo@FreeBSD.org +COMMENT= Python REST client for Apache Tika server +WWW= https://github.com/stumpylog/tika-client + +LICENSE= MPL20 +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}hatchling>=0:devel/py-hatchling@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}httpx>=0.26:www/py-httpx@${PY_FLAVOR} +TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytest>=0:devel/py-pytest@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}pytest-httpx>=0:devel/py-pytest-httpx@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist pep517 + +TEST_ENV= PYTHONPATH=${WRKSRC}/src + +NO_ARCH= yes + +do-test: + cd ${WRKSRC} && ${SETENV} ${TEST_ENV} ${PYTHON_CMD} -m pytest -v -rs -o addopts= + +.include diff --git a/textproc/py-tika-client/distinfo b/textproc/py-tika-client/distinfo new file mode 100644 index 000000000000..27014a468d2b --- /dev/null +++ b/textproc/py-tika-client/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1707592397 +SHA256 (tika_client-0.5.0.tar.gz) = f719fbf20f9ef47d12132b38c5848024b260e79c5f0b9ae5ff95c0b2fe3ba350 +SIZE (tika_client-0.5.0.tar.gz) = 2170597 diff --git a/textproc/py-tika-client/pkg-descr b/textproc/py-tika-client/pkg-descr new file mode 100644 index 000000000000..be18a7c15ddd --- /dev/null +++ b/textproc/py-tika-client/pkg-descr @@ -0,0 +1,13 @@ +Tika Rest Client, simplified: No need to worry about XML or JSON responses, +downloading a Tika jar file or Python 2. Support for Tika 2+ only. + +Full support for type hinting + +Nearly full test coverage run against an actual Tika server for multiple +Python and PyPy versions + +Uses HTTP multipart/form-data to stream files to the server (instead of +reading into memory) + +Optional compression for parsing from a file content already in a buffer (as +opposed to a file)