This updates all Python packages that download their source from PyPi to use pypi.mk. This will allow future improvements/changes to pypi.mk to affect all relevant packages. This also makes it easier for future Python packages to start using pypi.mk, when it's clear how it is used in existing packages. Signed-off-by: Jeffery To <jeffery.to@gmail.com>
59 lines
1.5 KiB
Makefile
59 lines
1.5 KiB
Makefile
include $(TOPDIR)/rules.mk
|
|
|
|
PKG_NAME:=s3transfer
|
|
PKG_VERSION:=0.2.0
|
|
PKG_RELEASE:=1
|
|
|
|
PYPI_NAME:=$(PKG_NAME)
|
|
PKG_HASH:=f23d5cb7d862b104401d9021fc82e5fa0e0cf57b7660a1331425aab0c691d021
|
|
|
|
PKG_MAINTAINER:=Daniel Danzberger <daniel@dd-wrt.com>
|
|
PKG_LICENSE:=MIT
|
|
|
|
include ../pypi.mk
|
|
include $(INCLUDE_DIR)/package.mk
|
|
include ../python-package.mk
|
|
include ../python3-package.mk
|
|
|
|
define Package/python-s3transfer/Default
|
|
SECTION:=lang
|
|
CATEGORY:=Languages
|
|
SUBMENU:=Python
|
|
TITLE:=s3transfer
|
|
URL:=https://github.com/boto/s3transfer
|
|
endef
|
|
|
|
define Package/python-s3transfer
|
|
$(call Package/python-s3transfer/Default)
|
|
DEPENDS:= \
|
|
+PACKAGE_python-s3transfer:python \
|
|
+PACKAGE_python-s3transfer:python-botocore \
|
|
+PACKAGE_python-s3transfer:python-futures
|
|
VARIANT:=python
|
|
endef
|
|
|
|
define Package/python3-s3transfer
|
|
$(call Package/python-s3transfer/Default)
|
|
DEPENDS:= \
|
|
+PACKAGE_python3-s3transfer:python3 \
|
|
+PACKAGE_python3-s3transfer:python3-botocore
|
|
VARIANT:=python3
|
|
endef
|
|
|
|
define Package/python-s3transfer/description
|
|
S3transfer is a Python library for managing Amazon S3 transfers.
|
|
endef
|
|
|
|
define Package/python3-s3transfer/description
|
|
$(call Package/python-s3transfer/description)
|
|
.
|
|
(Variant for Python3)
|
|
endef
|
|
|
|
$(eval $(call PyPackage,python-s3transfer))
|
|
$(eval $(call BuildPackage,python-s3transfer))
|
|
$(eval $(call BuildPackage,python-s3transfer-src))
|
|
|
|
$(eval $(call Py3Package,python3-s3transfer))
|
|
$(eval $(call BuildPackage,python3-s3transfer))
|
|
$(eval $(call BuildPackage,python3-s3transfer-src))
|