From 60a78d6e2a64f6c2491be782940f96515a2b94f8 Mon Sep 17 00:00:00 2001 From: zhengruoqin Date: Tue, 8 Sep 2020 10:42:13 +0800 Subject: python3-ddjango-compressor: Change to python3 Because python2 is no longer maintained, bb file is changed to python3 version. Signed-off-by: Zheng Ruoqin Signed-off-by: Bruce Ashfield --- .../python/python3-django-compressor_2.1.bb | 27 ++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 meta-openstack/recipes-devtools/python/python3-django-compressor_2.1.bb (limited to 'meta-openstack/recipes-devtools/python/python3-django-compressor_2.1.bb') diff --git a/meta-openstack/recipes-devtools/python/python3-django-compressor_2.1.bb b/meta-openstack/recipes-devtools/python/python3-django-compressor_2.1.bb new file mode 100644 index 0000000..40a0133 --- /dev/null +++ b/meta-openstack/recipes-devtools/python/python3-django-compressor_2.1.bb @@ -0,0 +1,27 @@ +DESCRIPTION = "Compresses linked and inline JavaScript or CSS into single cached files." +HOMEPAGE = "http://django-compressor.readthedocs.org/en/latest/" +SECTION = "devel/python" +LICENSE = "MIT & BSD-3-Clause & BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=021598d037fd39ab02e53249e1fe4b6f" + +PYPI_PACKAGE = "django_compressor" + +SRC_URI[md5sum] = "21ecfe4e8615eae64f7068a5599df9af" +SRC_URI[sha256sum] = "ae0051bc0c7a0660c93434e68d617553fccdd573293dfd15aa33f78d2b4954ef" + +inherit setuptools3 pypi + +RDEPENDS_${PN} += " \ + python3-django-appconf \ + python3-rcssmin \ + python3-rjsmin \ + " + +do_install_append() { + # Ensure permisive perms are granted + find -L "${D}${PYTHON_SITEPACKAGES_DIR}/compressor" -type f -exec chmod 644 {} \; + find -L "${D}${PYTHON_SITEPACKAGES_DIR}/compressor" -type d -exec chmod 755 {} \; +} + + +CLEANBROKEN = "1" -- cgit v1.2.3-54-g00ecf