From 137456e900be6a08ab6cadd31025f9e7b374cbfb Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Thu, 31 Oct 2024 14:41:09 +0100 Subject: python3-flask-xstatic: drop unnecessary FILESEXTRAPATHS and fold .inc into .bb * python2 is long dead, kill .inc file as well * rename python-flask-xstatic to BPN python3-flask-xstatic which is included in default FILESPATH Signed-off-by: Martin Jansa Signed-off-by: Khem Raj --- .../recipes-devtools/python/python-flask-xstatic.inc | 15 --------------- .../python-flask-xstatic/remove-pip-requires.patch | 9 --------- .../python3-flask-xstatic/remove-pip-requires.patch | 9 +++++++++ .../python/python3-flask-xstatic_0.0.1.bb | 16 +++++++++++++++- 4 files changed, 24 insertions(+), 25 deletions(-) delete mode 100644 meta-python/recipes-devtools/python/python-flask-xstatic.inc delete mode 100644 meta-python/recipes-devtools/python/python-flask-xstatic/remove-pip-requires.patch create mode 100644 meta-python/recipes-devtools/python/python3-flask-xstatic/remove-pip-requires.patch (limited to 'meta-python/recipes-devtools/python') diff --git a/meta-python/recipes-devtools/python/python-flask-xstatic.inc b/meta-python/recipes-devtools/python/python-flask-xstatic.inc deleted file mode 100644 index 6fc32107f2..0000000000 --- a/meta-python/recipes-devtools/python/python-flask-xstatic.inc +++ /dev/null @@ -1,15 +0,0 @@ -DESCRIPTION = "XStatic support for flask" -LICENSE = "BSD-2-Clause" -LIC_FILES_CHKSUM = "file://LICENSE;md5=659968f6ebd4b70b6c3190d20b4a924c" - -SRC_URI[sha256sum] = "226ea8e97065a9488b59bfe5c94af4c6e2ea70a25052e301fb231a1381490133" - -FILESEXTRAPATHS:prepend := "${THISDIR}/python-flask-xstatic:" -SRC_URI += "file://remove-pip-requires.patch" - -PYPI_PACKAGE = "Flask-XStatic" - -RDEPENDS:${PN} += "\ - python3-flask \ - python3-xstatic \ - " diff --git a/meta-python/recipes-devtools/python/python-flask-xstatic/remove-pip-requires.patch b/meta-python/recipes-devtools/python/python-flask-xstatic/remove-pip-requires.patch deleted file mode 100644 index ba06d670e3..0000000000 --- a/meta-python/recipes-devtools/python/python-flask-xstatic/remove-pip-requires.patch +++ /dev/null @@ -1,9 +0,0 @@ -Upstream-Status: Pending - ---- Flask-XStatic-0.0.1/setup.py.orig 2015-01-30 08:01:56.000000000 -0800 -+++ Flask-XStatic-0.0.1/setup.py 2017-04-17 21:40:32.570181626 -0700 -@@ -1,4 +1,3 @@ --from pip.req import parse_requirements - import setuptools - - with open('README.rst') as f: diff --git a/meta-python/recipes-devtools/python/python3-flask-xstatic/remove-pip-requires.patch b/meta-python/recipes-devtools/python/python3-flask-xstatic/remove-pip-requires.patch new file mode 100644 index 0000000000..ba06d670e3 --- /dev/null +++ b/meta-python/recipes-devtools/python/python3-flask-xstatic/remove-pip-requires.patch @@ -0,0 +1,9 @@ +Upstream-Status: Pending + +--- Flask-XStatic-0.0.1/setup.py.orig 2015-01-30 08:01:56.000000000 -0800 ++++ Flask-XStatic-0.0.1/setup.py 2017-04-17 21:40:32.570181626 -0700 +@@ -1,4 +1,3 @@ +-from pip.req import parse_requirements + import setuptools + + with open('README.rst') as f: diff --git a/meta-python/recipes-devtools/python/python3-flask-xstatic_0.0.1.bb b/meta-python/recipes-devtools/python/python3-flask-xstatic_0.0.1.bb index 5412befdb5..c4cad466ad 100644 --- a/meta-python/recipes-devtools/python/python3-flask-xstatic_0.0.1.bb +++ b/meta-python/recipes-devtools/python/python3-flask-xstatic_0.0.1.bb @@ -1,2 +1,16 @@ +DESCRIPTION = "XStatic support for flask" +LICENSE = "BSD-2-Clause" +LIC_FILES_CHKSUM = "file://LICENSE;md5=659968f6ebd4b70b6c3190d20b4a924c" + +SRC_URI[sha256sum] = "226ea8e97065a9488b59bfe5c94af4c6e2ea70a25052e301fb231a1381490133" + +SRC_URI += "file://remove-pip-requires.patch" + +PYPI_PACKAGE = "Flask-XStatic" + +RDEPENDS:${PN} += "\ + python3-flask \ + python3-xstatic \ + " + inherit pypi setuptools3 -require python-flask-xstatic.inc -- cgit v1.2.3-54-g00ecf