Skip to contentSkip to conversation

python3-haversine: Fix build with latest python/setuptools

PATCH New Khem Raj 1 participant 1 message May 18, 2021

lore
Share & tools
lore

Khem Raj

author
#0 lore raw

PATCH 1/1 python3-haversine: Fix build with latest python/setuptools

---
 ...up.py-Correct-the-license-assignment.patch | 32 +++++++++++++++++++
 .../python/python3-haversine_2.3.0.bb         |  2 ++
 2 files changed, 34 insertions(+)
 create mode 100644 meta-python/recipes-devtools/python/python3-haversine/0001-setup.py-Correct-the-license-assignment.patch
meta-python/recipes-devtools/python/python3-haversine/0001-setup.py-Correct-the-license-assignment.patch new file +32 -0
new file mode 100644
index 0000000000..bb5955a44e
@@ -0,0 +1,32 @@
+From 56b421a18ef8acb41ab9e4bde7e1f5452ec67da9 Mon Sep 17 00:00:00 2001
+From: Khem Raj <[email protected]>
+Date: Mon, 17 May 2021 22:17:07 -0700
+Subject: [PATCH] setup.py: Correct the license assignment
+
+latest python/2.9 + setuptools bail out otherwise
+
+lines = header.split('\n')
+| AttributeError: 'list' object has no attribute 'split'
+
+Upstream-Status: Submitted [https://github.com/mapado/haversine/pull/38]
+Signed-off-by: Khem Raj <[email protected]>
+---
+ setup.py | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/setup.py b/setup.py
+index 549436d..9e7fb00 100755
+--- a/setup.py
++++ b/setup.py
+@@ -15,7 +15,7 @@ setup(
+     maintainer_email='[email protected]',
+     url='https://github.com/mapado/haversine',
+     packages=['haversine'],
+-    license=['MIT'],
++    license='MIT',
+     classifiers=[
+         'Development Status :: 4 - Beta',
+         'Intended Audience :: Developers',
+-- 
+2.31.1
+
meta-python/recipes-devtools/python/python3-haversine_2.3.0.bb +2 -0
index 6e02fcf71e..624d30ca01 100644
@@ -2,6 +2,8 @@ SUMMARY = "Calculate the distance between 2 points on Earth"
 LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/MIT;md5=0835ade698e0bcf8506ecda2f7b4f302"
 
+SRC_URI += "file://0001-setup.py-Correct-the-license-assignment.patch"
+
 SRC_URI[md5sum] = "ff2d43a74195ec00c42ccd5da2a3f3de"
 SRC_URI[sha256sum] = "72c76855ac25e6ad054c7ed380e95c1a96803185f005dd11f40ccaa9620b551f"
 
Signature · 1 line
2.31.1