python-hyperlink: Update to 20.0.1 13143/head
authorJeffery To <jeffery.to@gmail.com>
Sun, 16 Aug 2020 16:30:09 +0000 (00:30 +0800)
committerJeffery To <jeffery.to@gmail.com>
Sun, 16 Aug 2020 17:56:47 +0000 (01:56 +0800)
Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lang/python/python-hyperlink/Makefile
lang/python/python-hyperlink/patches/001-omit-tests.patch

index a91fa1cfe34b7e6a840e3691229d1433314bf617..eea6aa525b6338b37eb267b651972199ca5de5be 100644 (file)
@@ -8,11 +8,11 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=python-hyperlink
-PKG_VERSION:=19.0.0
-PKG_RELEASE:=2
+PKG_VERSION:=20.0.1
+PKG_RELEASE:=1
 
 PYPI_NAME:=hyperlink
-PKG_HASH:=4288e34705da077fada1111a24a0aa08bb1e76699c9ce49876af722441845654
+PKG_HASH:=47fcc7cd339c6cb2444463ec3277bdcfe142c8b1daf2160bdd52248deec815af
 
 PKG_LICENSE:=MIT
 PKG_LICENSE_FILES:=LICENSE
@@ -30,6 +30,7 @@ define Package/python3-hyperlink
   URL:=https://github.com/python-hyper/hyperlink
   DEPENDS:= \
       +python3-light \
+      +python3-codecs \
       +python3-idna
 endef
 
@@ -39,6 +40,11 @@ on RFC 3986 and 3987, the Hyperlink URL makes working with both URIs and
 IRIs easy.
 endef
 
+define Py3Package/python3-hyperlink/filespec
++|$(PYTHON3_PKG_DIR)
+-|$(PYTHON3_PKG_DIR)/hyperlink/hypothesis.py
+endef
+
 $(eval $(call Py3Package,python3-hyperlink))
 $(eval $(call BuildPackage,python3-hyperlink))
 $(eval $(call BuildPackage,python3-hyperlink-src))
index cd0c8b800e4bba18856a7239f091c0493966007e..e0ee3bddb1b052e80f5a1055c907b3ea7b0589dd 100644 (file)
@@ -1,13 +1,11 @@
 --- a/setup.py
 +++ b/setup.py
-@@ -24,8 +24,9 @@ setup(name='hyperlink',
-       author=__author__,
-       author_email=__contact__,
-       url=__url__,
--      packages=['hyperlink', 'hyperlink.test'],
-+      packages=['hyperlink'],
-       include_package_data=True,
-+      exclude_package_data={'':['test/*']},
-       zip_safe=False,
-       license=__license__,
-       platforms='any',
+@@ -25,7 +25,7 @@ setup(
+     author=__author__,
+     author_email=__contact__,
+     url=__url__,
+-    packages=find_packages(where="src"),
++    packages=find_packages(where="src", exclude=["*.test", "*.test.*"]),
+     package_dir={"": "src"},
+     package_data=dict(hyperlink=["py.typed"]),
+     zip_safe=False,