mirror of
https://git.freebsd.org/ports.git
synced 2025-07-18 17:59:20 -04:00
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
This commit is contained in:
parent
773af17f8c
commit
a104e33d54
4 changed files with 41 additions and 0 deletions
|
@ -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
|
||||
|
|
22
net/py-url-normalize/Makefile
Normal file
22
net/py-url-normalize/Makefile
Normal file
|
@ -0,0 +1,22 @@
|
|||
# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
|
||||
|
||||
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 <bsd.port.mk>
|
3
net/py-url-normalize/distinfo
Normal file
3
net/py-url-normalize/distinfo
Normal file
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1649423650
|
||||
SHA256 (url-normalize-1.4.3.tar.gz) = d23d3a070ac52a67b83a1c59a0e68f8608d1cd538783b401bc9de2c0fac999b2
|
||||
SIZE (url-normalize-1.4.3.tar.gz) = 6024
|
15
net/py-url-normalize/pkg-descr
Normal file
15
net/py-url-normalize/pkg-descr
Normal file
|
@ -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
|
Loading…
Add table
Reference in a new issue