Browse Source

python-zope-interface: update to 4.5.0

Signed-off-by: Jeffery To <jeffery.to@gmail.com>
lilik-openwrt-22.03
Jeffery To 7 years ago
parent
commit
a8c87eb1e4
2 changed files with 27 additions and 18 deletions
  1. +6
    -18
      lang/python/python-zope-interface/Makefile
  2. +21
    -0
      lang/python/python-zope-interface/patches/001-omit-tests.patch

+ 6
- 18
lang/python/python-zope-interface/Makefile View File

@ -8,12 +8,12 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=python-zope-interface PKG_NAME:=python-zope-interface
PKG_VERSION:=4.4.3
PKG_RELEASE:=2
PKG_VERSION:=4.5.0
PKG_RELEASE:=1
PKG_SOURCE:=zope.interface-$(PKG_VERSION).tar.gz PKG_SOURCE:=zope.interface-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://pypi.python.org/packages/bd/d2/25349ed41f9dcff7b3baf87bd88a4c82396cf6e02f1f42bb68657a3132af
PKG_HASH:=d6d26d5dfbfd60c65152938fcb82f949e8dada37c041f72916fef6621ba5c5ce
PKG_SOURCE_URL:=https://files.pythonhosted.org/packages/source/z/zope.interface
PKG_HASH:=57c38470d9f57e37afb460c399eb254e7193ac7fb8042bd09bdc001981a9c74c
PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-zope-interface-$(PKG_VERSION) PKG_BUILD_DIR:=$(BUILD_DIR)/$(BUILD_VARIANT)-zope-interface-$(PKG_VERSION)
@ -36,14 +36,14 @@ endef
define Package/python-zope-interface define Package/python-zope-interface
$(call Package/python-zope-interface/Default) $(call Package/python-zope-interface/Default)
TITLE:=python-zope-interface
TITLE:=Interfaces for Python
DEPENDS:=+PACKAGE_python-zope-interface:python-light DEPENDS:=+PACKAGE_python-zope-interface:python-light
VARIANT:=python VARIANT:=python
endef endef
define Package/python3-zope-interface define Package/python3-zope-interface
$(call Package/python-zope-interface/Default) $(call Package/python-zope-interface/Default)
TITLE:=python3-zope-interface
TITLE:=Interfaces for Python
DEPENDS:=+PACKAGE_python3-zope-interface:python3-light DEPENDS:=+PACKAGE_python3-zope-interface:python3-light
VARIANT:=python3 VARIANT:=python3
endef endef
@ -61,18 +61,6 @@ $(call Package/python-zope-interface/description)
(Variant for Python3) (Variant for Python3)
endef endef
define PyPackage/python-zope-interface/filespec
+|$(PYTHON_PKG_DIR)
-|$(PYTHON_PKG_DIR)/zope/interface/common/tests
-|$(PYTHON_PKG_DIR)/zope/interface/tests
endef
define Py3Package/python3-zope-interface/filespec
+|$(PYTHON3_PKG_DIR)
-|$(PYTHON3_PKG_DIR)/zope/interface/common/tests
-|$(PYTHON3_PKG_DIR)/zope/interface/tests
endef
$(eval $(call PyPackage,python-zope-interface)) $(eval $(call PyPackage,python-zope-interface))
$(eval $(call BuildPackage,python-zope-interface)) $(eval $(call BuildPackage,python-zope-interface))
$(eval $(call BuildPackage,python-zope-interface-src)) $(eval $(call BuildPackage,python-zope-interface-src))


+ 21
- 0
lang/python/python-zope-interface/patches/001-omit-tests.patch View File

@ -0,0 +1,21 @@
diff --git a/setup.py b/setup.py
index 0eb36ea..2e64aae 100644
--- a/setup.py
+++ b/setup.py
@@ -121,7 +121,7 @@ setup(name='zope.interface',
"Framework :: Zope3",
"Topic :: Software Development :: Libraries :: Python Modules",
],
- packages=find_packages('src'),
+ packages=find_packages('src', exclude=["*.tests", "*.tests.*"]),
package_dir={'': 'src'},
namespace_packages=["zope"],
cmdclass={
@@ -129,6 +129,7 @@ setup(name='zope.interface',
},
test_suite='zope.interface.tests',
include_package_data=True,
+ exclude_package_data={'':['tests/*']},
zip_safe=False,
tests_require=tests_require,
install_requires=['setuptools'],

Loading…
Cancel
Save