pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
py-w3lib: Update py-w3lib to 1.14.2.
Module Name: pkgsrc-wip
Committed By: Leonardo Taccari <leot%NetBSD.org@localhost>
Pushed By: leot
Date: Thu Apr 14 15:18:24 2016 +0200
Changeset: 2c6df338efcda036df90a783157dee886c8c3ff0
Modified Files:
py-w3lib/DESCR
py-w3lib/Makefile
py-w3lib/PLIST
py-w3lib/distinfo
Log Message:
py-w3lib: Update py-w3lib to 1.14.2.
pkgsrc changes:
* Update LICENSE to reflect upstream change (now is under 3-clauses BSD)
* Misc cleanups: move from devel to www category, simplify MASTER_SITE, use
<../../lang/python/egg.mk>, does not need any LANGUAGES.
Changes:
v1.14.2
Bugfix release:
* fix function import for (deprecated) urljoin_rfc (issue #51)
* only expose wanted functions from w3lib.url, via __all__ (see issue #54,
scrapy/scrapy#1917)
v1.14.1
Bugfix release:
* For bytes URLs, when supplied encoding (or default UTF8) is wrong,
safe_url_string falls back to percent-encoding offending bytes.
v1.14.0
Changes to safe_url_string:
* proper handling of non-ASCII characters in Python2 and Python3
* support IDNs
* new path_encoding to override default UTF-8 when serializing non-ASCII
characters before percent-encoding html_body_declared_encoding also
detects encoding when not sole attribute in <meta>.
* Jan 13, 2015
v<1.14.0
No changelog available from upstream.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=2c6df338efcda036df90a783157dee886c8c3ff0
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
py-w3lib/DESCR | 12 ++++++++++--
py-w3lib/Makefile | 16 +++++++++-------
py-w3lib/PLIST | 14 ++++++++++----
py-w3lib/distinfo | 7 ++++---
4 files changed, 33 insertions(+), 16 deletions(-)
diffs:
diff --git a/py-w3lib/DESCR b/py-w3lib/DESCR
index 6d7ec0e..3130983 100644
--- a/py-w3lib/DESCR
+++ b/py-w3lib/DESCR
@@ -1,2 +1,10 @@
-A library of web-related functions. It can remove comments, extract
-base URL, convert HTTP headers to dicts and vice-versa.
+This is a Python library of web-related functions, such as:
+
+ * remove comments, or tags from HTML snippets
+ * extract base url from HTML snippets
+ * translate entites on HTML strings
+ * convert raw HTTP headers to dicts and vice-versa
+ * construct HTTP auth header
+ * converting HTML pages to unicode
+ * sanitize urls (like browsers do)
+ * extract arguments from urls
diff --git a/py-w3lib/Makefile b/py-w3lib/Makefile
index 4036f0c..8536ad0 100644
--- a/py-w3lib/Makefile
+++ b/py-w3lib/Makefile
@@ -1,19 +1,21 @@
# $NetBSD: Makefile,v 1.2 2012/10/07 13:57:32 asau Exp $
#
-DISTNAME= w3lib-1.2
+DISTNAME= w3lib-1.14.2
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
-CATEGORIES= devel
-MASTER_SITES= http://pypi.python.org/packages/source/w/w3lib/
+CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_PYPI}
MAINTAINER= slitvinov%gmail.com@localhost
HOMEPAGE= http://github.com/scrapy/w3lib
COMMENT= Library of web-related functions
-LICENSE= mit
+LICENSE= modified-bsd
-REPLACE_PYTHON= ${WRKSRC}/*.py
+DEPENDS+= ${PYPKGPREFIX}-six>=1.4.1:../../lang/py-six
-PYDISTUTILSPKG= yes
+USE_LANGUAGES= # none
-.include "../../lang/python/extension.mk"
+PYTHON_VERSIONS_INCOMPATIBLE= 35 # not yet ported as of 1.14.2
+
+.include "../../lang/python/egg.mk"
.include "../../mk/bsd.pkg.mk"
diff --git a/py-w3lib/PLIST b/py-w3lib/PLIST
index 1ce9b29..a8b7b54 100644
--- a/py-w3lib/PLIST
+++ b/py-w3lib/PLIST
@@ -1,4 +1,13 @@
-@comment $NetBSD: PLIST,v 1.1.1.1 2012/06/07 17:43:19 slitvinov Exp $
+@comment $NetBSD$
+${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
+${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
+${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt
+${PYSITELIB}/${EGG_INFODIR}/not-zip-safe
+${PYSITELIB}/${EGG_INFODIR}/requires.txt
+${PYSITELIB}/${EGG_INFODIR}/top_level.txt
+${PYSITELIB}/w3lib/__init__.py
+${PYSITELIB}/w3lib/__init__.pyc
+${PYSITELIB}/w3lib/__init__.pyo
${PYSITELIB}/w3lib/encoding.py
${PYSITELIB}/w3lib/encoding.pyc
${PYSITELIB}/w3lib/encoding.pyo
@@ -11,9 +20,6 @@ ${PYSITELIB}/w3lib/html.pyo
${PYSITELIB}/w3lib/http.py
${PYSITELIB}/w3lib/http.pyc
${PYSITELIB}/w3lib/http.pyo
-${PYSITELIB}/w3lib/__init__.py
-${PYSITELIB}/w3lib/__init__.pyc
-${PYSITELIB}/w3lib/__init__.pyo
${PYSITELIB}/w3lib/url.py
${PYSITELIB}/w3lib/url.pyc
${PYSITELIB}/w3lib/url.pyo
diff --git a/py-w3lib/distinfo b/py-w3lib/distinfo
index 96c89f4..d89b73e 100644
--- a/py-w3lib/distinfo
+++ b/py-w3lib/distinfo
@@ -1,5 +1,6 @@
$NetBSD: distinfo,v 1.1.1.1 2012/06/07 17:43:19 slitvinov Exp $
-SHA1 (w3lib-1.2.tar.gz) = fa76c12dda3ccd9d608a839af3b0056639e68609
-RMD160 (w3lib-1.2.tar.gz) = f47732ff354ade939b9a0f3ca72fb564c7e07e4a
-Size (w3lib-1.2.tar.gz) = 8584 bytes
+SHA1 (w3lib-1.14.2.tar.gz) = 48fee847f484ebc35d30165d2feef84064bdc25d
+RMD160 (w3lib-1.14.2.tar.gz) = e5f5b8b2fabec497c39bd58e36571b083f5b0b44
+SHA512 (w3lib-1.14.2.tar.gz) = fe5f02ade82d05824e065b43710ee0e44f05df900b79f84b9fa8157a61eded4a3e867278eb3231927da9da808543b07e2ee914005b6270bc23f7caba2cab29e2
+Size (w3lib-1.14.2.tar.gz) = 41191 bytes
Home |
Main Index |
Thread Index |
Old Index