Skip to contentSkip to conversation

meta-python: Remove superfluous "PYPI_PACKAGE" assignments

PATCH New Robert P. J. Day 1 participant 1 message Mar 2, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meta-python: Remove superfluous "PYPI_PACKAGE" assignments

Given calculation of PYPI_PACKAGE value from recipe file name, a number of Python recipe files unnecessarily set this value, so delete these superfluous lines.

In addition, the act of editing added a missing EOL at the end of one of the files.

---

i dislike extraneous content, so a quick cleaning of some
meta-python recipes where PYPI_PACKAGE will already have the correct value as calculated by pypi.bbclass.

meta-python/recipes-connectivity/python-pyconnman/python-pyconnman_0.1.0.bb +1 -3
index 6eeab7e..5cef7d9 100644
@@ -7,8 +7,6 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=3b83ef96387f14655fc854ddc3c6bd57"
 SRC_URI[md5sum] = "b7fa82034b1c0e1fb1b518ffe3bb4fc0"
 SRC_URI[sha256sum] = "46c64c0692063fd0c9fb0216d49f7884bec9fa9760d8473db4b1e2f8162fab4a"
 
-PYPI_PACKAGE = "pyconnman"
-
 inherit pypi setuptools
 
-RDEPENDS_${PN} = "python-dbus python-pprint"
\ No newline at end of file
+RDEPENDS_${PN} = "python-dbus python-pprint"
meta-python/recipes-devtools/python/python-pycrypto.inc +0 -1
index 42e31a9..fb2c17d 100644
@@ -6,7 +6,6 @@ LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=35f354d199e8cb7667b059a23578e63d"
 FILESEXTRAPATHS_prepend := "${THISDIR}/${PN}:"
 
 DEPENDS += " gmp"
-PYPI_PACKAGE = "pycrypto"
 
 inherit pypi autotools-brokensep
 
meta-python/recipes-devtools/python/python-pyinotify.inc +0 -1
index a9edb2c..0168f1a 100644
@@ -7,5 +7,4 @@ RDEPENDS_${PN} += "python-threading python-io python-subprocess python-misc pyth
 SRC_URI[md5sum] = "8e580fa1ff3971f94a6f81672b76c406"
 SRC_URI[sha256sum] = "9c998a5d7606ca835065cdabc013ae6c66eb9ea76a00a1e3bc6e0cfe2b4f71f4"
 
-PYPI_PACKAGE = "pyinotify"
 inherit pypi
meta-python/recipes-devtools/python/python-singledispatch_3.4.0.3.bb +0 -1
index 87f46e5..44c9505 100644
@@ -9,5 +9,4 @@ LIC_FILES_CHKSUM = "file://README.rst;md5=ee3cd67264adc7eb07981f3644dc17dc"
 SRC_URI[md5sum] = "af2fc6a3d6cc5a02d0bf54d909785fcb"
 SRC_URI[sha256sum] = "5b06af87df13818d14f08a028e42f566640aef80805c3b50c5056b086e3c2b9c"
 
-PYPI_PACKAGE = "singledispatch"
 inherit pypi setuptools
meta-python/recipes-devtools/python/python-ujson_1.35.bb +0 -1
index 4ef3d18..238dc92 100644
@@ -7,7 +7,6 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;startline=8;endline=9;md5=4f369b3c3c290b4aed
 SRC_URI[md5sum] = "42f77b0cce686dfa4da2e68480b1dd24"
 SRC_URI[sha256sum] = "f66073e5506e91d204ab0c614a148d5aa938bdbf104751be66f8ad7a222f5f86"
 
-PYPI_PACKAGE = "ujson"
 inherit pypi setuptools
 
 RDEPENDS_${PN} += "\
meta-python/recipes-devtools/python/python-yappi_0.98.bb +0 -1
index 02ec7d0..51308c8 100644
@@ -7,7 +7,6 @@ LIC_FILES_CHKSUM = "file://PKG-INFO;md5=6b131c3041637f6a5175a43112dde05c"
 SRC_URI[md5sum] = "dc56240575c99938a924eaeb7c0d8beb"
 SRC_URI[sha256sum] = "5f657129e1b9b952379ffbc009357d0dcdb58c50f3bfe88ffbb992e4b27b263c"
 
-PYPI_PACKAGE = "yappi"
 inherit pypi setuptools
 
 RDEPENDS_${PN} += "\
Signature · 7 lines
========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================