From nobody Wed Feb 21 15:17:31 2024 X-Original-To: dev-commits-ports-main@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 4Tg0JD3l7Mz59dv6; Wed, 21 Feb 2024 15:17:32 +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 4Tg0JD0Hgkz4tw0; Wed, 21 Feb 2024 15:17:32 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708528652; 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=PGAJS0umE8H/QKNrTv5/vnX8XASDXHu56HfA1sbQJSo=; b=yyln35wn6oqiIPQ5HWjN78RNwYXJ0yJBvULmFQjkP8Dv/NI8DKvimcjQQut6+UPHsIoclv C2PQuYSQWTnxXx2Rgyvjlef2AhrU8fksZgtxtTodnZmAwZaaUb6El8mWox1PpHmTX0LuUn tAxF4DoZ5NomMlB2h6cNt0ZrIag8gUv370r/tuP42CWG+T/+2rf4HcPR3ZYJPKv8n8U4Ie HdlsJk1lO5hjZ64EU9EeDMefIQDKbmQACP3c4b2jHo/3eaXnR+IHwNRI9akkGLApSAP0uZ WRmv1dPxVK1/HR9bm3qv8ZcPgXAL74v979ofTWexG9Of0OCNXBppLFI8aO3Dvg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1708528652; 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=PGAJS0umE8H/QKNrTv5/vnX8XASDXHu56HfA1sbQJSo=; b=OjaejBIGN11UzR7AaxADGDsu8eM+4+8ovgzKJ4LPYvbgqFPiP5N+zWb9XudZRBuETc0KpH ZNVn/fGU7XHFm+ZxnY4tNME9jaAESHAOfuaUpQh7lJV30tJV0erBK5x/sOA+vdDWb0dkL7 nd/R6CyeO1EAcfD5Jrl6CEEoxcALKS+EIzK8f7tRhvrrytb1lgHGyQmxkQHE6p3kuCRceQ RwDcCVP3mPVJ+XgXqQateQKYGWWFhsoNUM4Ge4h51x9NM4OhgRTDxDVH67Eb8EEmmauH7Y U18yYzYlU0uuNffUwxWm8cpLLsuIQi/JBZUIe6d4ZWYekQeJLkSQhLtazGYlMA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1708528652; a=rsa-sha256; cv=none; b=RIhbmHTNdLXOXLOtvhVihkoengpz02bkKeGP+KAU3SRnayAx6B76qsCmXb3BE2JrZOhgba RMI+2yxxvqrNU8/JSfpqYQHApSNvyQ0/MSiFt415u1IhSLalzGAsb1oTSgkhJDpg8lLuza Ke6+/eC7Of7pdkQF4/caya+vIEVpENBJZXxt4/48JLqSeVPOMz2BiGEwWAQN1lVlCGLNM3 RYZAhLOWBoD+gMtO2+6sfLH+EgoiRPeEqIbC+IcnmC9xJGBr0WY9lnMHyLDLK/OC1QCbfJ 7WrHPmWtPp9CAPPf9D63rknGYp7nprW/kQmAiOIZbNm3tmciBlU4Pqy2nFJ1Pg== 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 4Tg0JC6LQQz17B3; Wed, 21 Feb 2024 15:17:31 +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 41LFHVOV012811; Wed, 21 Feb 2024 15:17:31 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 41LFHVP4012808; Wed, 21 Feb 2024 15:17:31 GMT (envelope-from git) Date: Wed, 21 Feb 2024 15:17:31 GMT Message-Id: <202402211517.41LFHVP4012808@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Po-Chuan Hsieh Subject: git: 0532aa392a24 - main - www/py-htmldate: Add py-htmldate 1.7.0 List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: sunpoet X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 0532aa392a247337f8afcc9c58025347d9fff64c Auto-Submitted: auto-generated The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=0532aa392a247337f8afcc9c58025347d9fff64c commit 0532aa392a247337f8afcc9c58025347d9fff64c Author: Po-Chuan Hsieh AuthorDate: 2024-02-21 14:13:47 +0000 Commit: Po-Chuan Hsieh CommitDate: 2024-02-21 15:06:10 +0000 www/py-htmldate: Add py-htmldate 1.7.0 htmldate finds original and updated publication dates of any web page. From the command-line or within Python, all the steps needed from web page download to HTML parsing, scraping, and text analysis are included. --- www/Makefile | 1 + www/py-htmldate/Makefile | 26 ++++++++++++++++++++++++++ www/py-htmldate/distinfo | 3 +++ www/py-htmldate/files/patch-setup.py | 11 +++++++++++ www/py-htmldate/pkg-descr | 3 +++ 5 files changed, 44 insertions(+) diff --git a/www/Makefile b/www/Makefile index 44c67c184f35..8d99027b44c3 100644 --- a/www/Makefile +++ b/www/Makefile @@ -1721,6 +1721,7 @@ SUBDIR += py-html3 SUBDIR += py-html5-parser SUBDIR += py-html5lib + SUBDIR += py-htmldate SUBDIR += py-httmock SUBDIR += py-http-parser SUBDIR += py-httpbin diff --git a/www/py-htmldate/Makefile b/www/py-htmldate/Makefile new file mode 100644 index 000000000000..2e44731e6ea0 --- /dev/null +++ b/www/py-htmldate/Makefile @@ -0,0 +1,26 @@ +PORTNAME= htmldate +PORTVERSION= 1.7.0 +CATEGORIES= www python +MASTER_SITES= PYPI +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= Fast and robust extraction of publication dates from URLs and web pages +WWW= https://htmldate.readthedocs.io/en/latest/ \ + https://github.com/adbar/htmldate + +LICENSE= GPLv3+ +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}charset-normalizer>=3.3.2:textproc/py-charset-normalizer@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}dateparser>=1.1.2:devel/py-dateparser@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}lxml>=4.9.3<6:devel/py-lxml@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}dateutil>=2.8.2:devel/py-dateutil@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}urllib3>=1.26,1<3,1:net/py-urllib3@${PY_FLAVOR} + +USES= python +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/www/py-htmldate/distinfo b/www/py-htmldate/distinfo new file mode 100644 index 000000000000..010b81ad6da7 --- /dev/null +++ b/www/py-htmldate/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1708448862 +SHA256 (htmldate-1.7.0.tar.gz) = 02a800dd224cbf74bf483b042f64e14f57ba0e40c6b4404b284e98bc6c30b68d +SIZE (htmldate-1.7.0.tar.gz) = 53992 diff --git a/www/py-htmldate/files/patch-setup.py b/www/py-htmldate/files/patch-setup.py new file mode 100644 index 000000000000..1a2e3831b98c --- /dev/null +++ b/www/py-htmldate/files/patch-setup.py @@ -0,0 +1,11 @@ +--- setup.py.orig 2024-01-17 16:57:16 UTC ++++ setup.py +@@ -120,7 +120,7 @@ setup( + "dateparser >= 1.1.2", # 1.1.3+ slower + # see tests on Github Actions + "lxml == 4.9.2; platform_system == 'Darwin' and python_version <= '3.8'", +- "lxml >= 4.9.4, < 6; platform_system != 'Darwin' or python_version > '3.8'", ++ "lxml >= 4.9.3, < 6; platform_system != 'Darwin' or python_version > '3.8'", + "python-dateutil >= 2.8.2", + "urllib3 >= 1.26, < 2; python_version < '3.7'", + "urllib3 >= 1.26, < 3; python_version >= '3.7'", diff --git a/www/py-htmldate/pkg-descr b/www/py-htmldate/pkg-descr new file mode 100644 index 000000000000..0d27dc7f96f5 --- /dev/null +++ b/www/py-htmldate/pkg-descr @@ -0,0 +1,3 @@ +htmldate finds original and updated publication dates of any web page. From the +command-line or within Python, all the steps needed from web page download to +HTML parsing, scraping, and text analysis are included.