From nobody Sat Apr 16 04:20:52 2022 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 C38E65D55BA; Sat, 16 Apr 2022 04:20:54 +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 4KgKkY2M70z3LRQ; Sat, 16 Apr 2022 04:20:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650082853; 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=j7f2zOPe2w4GlEqhAZ4kd4Z2pftc6aX3fPICDfRo0xQ=; b=V+kzb0T3wCP7NCqMW46cZps/tJgUpeWIup9ex7AfLEWCTqteEDKH5WXnPvzV2wZcOiVxQ8 AB73QZEFCE1/1zehPSAtciGYBN2ZJvFZpHu5m56y3aggaobs2T+8GqFAwMP3xazdnyE2O1 vnfm2sFchIrpsc+tPoWUWZncPXZZOXxunCP9WqdTqqKiuoGLXJETMItA9Ce/Y+m8ZmBgch ng45EEcrRd/Jw369SSmm+fawwhERu54baUHJ/GDQ5qEL+s7WbUG7mVDXrBfAiIC3s9FEDt sohVke3iaA9aOFWJXQnBqDzEFH+gHTnGv8gjs/i9cVEecLiC2zHxYeAlXu+glw== 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 B048222CBD; Sat, 16 Apr 2022 04:20:52 +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 23G4KqGm098544; Sat, 16 Apr 2022 04:20:52 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 23G4Kqd9098543; Sat, 16 Apr 2022 04:20:52 GMT (envelope-from git) Date: Sat, 16 Apr 2022 04:20:52 GMT Message-Id: <202204160420.23G4Kqd9098543@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: a104e33d54e5 - main - net/py-url-normalize: Add py-url-normalize 1.4.3 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: a104e33d54e5ee3683089203bb520769af9c33c5 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1650082853; 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=j7f2zOPe2w4GlEqhAZ4kd4Z2pftc6aX3fPICDfRo0xQ=; b=myaA0kyFJIMqtbALnsYcGHbsktedIdODmVEGipZi/KvVxnc9bzPBfISCyKBKfj5doO87q2 te/7HDSeRKZb13aTre1cdqoalOAIS2cEK84X8BE3uGeiT5a+/D4ykr5re7wEaoJ1+xqfuR SHApsmvmrO5CQj7e8/kHeQAFrzM0Gj+tWteacPKffa8hx+3rLp/U2Jfe6PLnjbLydtIuWk IMfeG93DYjTqf4KwduNaVWJMJoueHQrU+j76JVwkk9GPjzh9gB8004w7S6c91ZsjVkxT+h KmjIiS15ub1ThIQ1NqUACumvDFACpSRVe+SRLzbS2nksZPiFD+isTTdTh2WMjg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1650082853; a=rsa-sha256; cv=none; b=lwE37CEsjlltPemfc720dNErYjxrM8CmwES1rrTBX1vcRsfjsox2k0Y8rfQ+AtUULJzrWg ABdkqVqUDQeofJ/3laqGU4CjIfwmkVkco5VGIYjLm59ViK8dYi9FVPaDjtPTKNQFrrdG56 I1gftR2ctVlTQWTNNlb7AsAGV/kPc4jJNqHCn2rT8O+Dc+u3jSjKxDDym/FP6Pptblqe2A Wn2SSCE2xoQH4WN1w0pwjK+nY2v14btHWs3G98mxTt1FMqhN1EMmqNf+Zd059Yy0Hx+kQh YGp3ifq1wEBWwJf+LZWtcnAzqgNQmE/J6uZnegQ+FIAo12D4om9ljlepEyKdSQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=a104e33d54e5ee3683089203bb520769af9c33c5 commit a104e33d54e5ee3683089203bb520769af9c33c5 Author: Po-Chuan Hsieh AuthorDate: 2022-04-16 03:39:12 +0000 Commit: Po-Chuan Hsieh CommitDate: 2022-04-16 04:19:03 +0000 net/py-url-normalize: Add py-url-normalize 1.4.3 URI Normalization function: - Take care of IDN domains. - Always provide the URI scheme in lowercase characters. - Always provide the host, if any, in lowercase characters. - Only perform percent-encoding where it is essential. - Always use uppercase A-through-F characters when percent-encoding. - Prevent dot-segments appearing in non-relative URI paths. - For schemes that define a default authority, use an empty authority if the default is desired. - For schemes that define an empty path to be equivalent to a path of "/", use "/". - For schemes that define a port, use an empty port if the default is desired - All portions of the URI must be utf-8 encoded NFC from Unicode strings WWW: https://github.com/niksite/url-normalize --- net/Makefile | 1 + net/py-url-normalize/Makefile | 22 ++++++++++++++++++++++ net/py-url-normalize/distinfo | 3 +++ net/py-url-normalize/pkg-descr | 15 +++++++++++++++ 4 files changed, 41 insertions(+) diff --git a/net/Makefile b/net/Makefile index b1f253b9369e..d17143213560 100644 --- a/net/Makefile +++ b/net/Makefile @@ -1153,6 +1153,7 @@ SUBDIR += py-txrestapi SUBDIR += py-uritemplate SUBDIR += py-uritools + SUBDIR += py-url-normalize SUBDIR += py-urlextract SUBDIR += py-urllib3 SUBDIR += py-whois diff --git a/net/py-url-normalize/Makefile b/net/py-url-normalize/Makefile new file mode 100644 index 000000000000..72b5872aca2a --- /dev/null +++ b/net/py-url-normalize/Makefile @@ -0,0 +1,22 @@ +# Created by: Po-Chuan Hsieh + +PORTNAME= url-normalize +PORTVERSION= 1.4.3 +CATEGORIES= net python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= sunpoet@FreeBSD.org +COMMENT= URL normalization for Python + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>=0:devel/py-six@${PY_FLAVOR} + +USES= python:3.6+ +USE_PYTHON= autoplist concurrent distutils + +NO_ARCH= yes + +.include diff --git a/net/py-url-normalize/distinfo b/net/py-url-normalize/distinfo new file mode 100644 index 000000000000..5a9c8d563d0c --- /dev/null +++ b/net/py-url-normalize/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1649423650 +SHA256 (url-normalize-1.4.3.tar.gz) = d23d3a070ac52a67b83a1c59a0e68f8608d1cd538783b401bc9de2c0fac999b2 +SIZE (url-normalize-1.4.3.tar.gz) = 6024 diff --git a/net/py-url-normalize/pkg-descr b/net/py-url-normalize/pkg-descr new file mode 100644 index 000000000000..6a313b01ed1a --- /dev/null +++ b/net/py-url-normalize/pkg-descr @@ -0,0 +1,15 @@ +URI Normalization function: +- Take care of IDN domains. +- Always provide the URI scheme in lowercase characters. +- Always provide the host, if any, in lowercase characters. +- Only perform percent-encoding where it is essential. +- Always use uppercase A-through-F characters when percent-encoding. +- Prevent dot-segments appearing in non-relative URI paths. +- For schemes that define a default authority, use an empty authority if the + default is desired. +- For schemes that define an empty path to be equivalent to a path of "/", use + "/". +- For schemes that define a port, use an empty port if the default is desired +- All portions of the URI must be utf-8 encoded NFC from Unicode strings + +WWW: https://github.com/niksite/url-normalize