summaryrefslogtreecommitdiff
path: root/meta-phosphor/recipes-devtools/python
AgeCommit message (Collapse)AuthorFilesLines
2021-10-27pyphosphor: srcrev bump d2aadf1220..cb240aa1edAndrew Geissler1-1/+1
Manojkiran Eda (1): Add OWNERS file Change-Id: I7894d02007f281ab04735db611af0faf3853bb7a Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com>
2021-08-11meta-phosphor: prep for new override syntaxPatrick Williams2-16/+16
Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I588025b614416c43aa2d053765ab53bacf890cb5
2020-06-05python3: Restore .py source filesHarisuddin Mohamed Isa1-7/+0
Due to PEP 3147, an earlier commit which removes .py files on rootfs broke python since .pyc files have been moved to a new directory called __pycache__ and hence no modules can be imported. This reverts those changes. (From meta-phosphor rev: 63f021136249f4f30251de79e910e54dc191a5ea) Signed-off-by: Harisuddin Mohamed Isa <harisuddin@gmail.com> Change-Id: If94ddcd0146c4312c6352db8ff1309d19f2efa96 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-27python: remove a legacy python recipeAndrew Geissler2-87/+0
(From meta-phosphor rev: 69dc71a98b67f63ea71ab264becd45849c13f538) Change-Id: I3c5cbcf32af2fbd89da7752a8ab2eda6a9ffb804 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-23dunfell: remove python2/python3 workaroundsAndrew Geissler2-25/+0
Now that OpenBMC is on python3, these are no longer needed and no longer work in a python3-only world (From meta-phosphor rev: ddb3c792f25648dfb83582eee115de2793382d4f) Change-Id: I1eca2a701686afc1f6a4f16babaeb9811c11b4f3 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-23dunfell: fix up inherits for python3Andrew Geissler2-3/+3
Most of these recipes are no longer needed but bitbake still verifies the inherit clauses for them. python2 has been removed so need these to all use the corresponding python3 classes. (From meta-phosphor rev: d55b42ae26bf5198efeb38db9eed8166139408bd) Change-Id: Idf5fee957d8d0f3128a766a8007c3053fc1464d9 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-23dunfell: remove extra spacesAndrew Geissler1-2/+2
(From meta-phosphor rev: 3879a72e2164291102fc82c6ddfe7890d412d8bf) Change-Id: I02c4fe25fc5866dd2efb5dd0093be516e902ec74 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-23dunfell: remove .py files from rootfsAndrew Geissler1-2/+11
Only the .pyc files are needed so save some space in the image by removing the .py files. With the move to python3, machines that bring python into their image no longer build due to the squashfs being too large. This fixes that issue. A similar function as this used to be under the tiny-distro feature but it just needs to be mandatory now until someone feels like they need the .py files in the image. (From meta-phosphor rev: f846a8387abdb409c3d1b6bb66746d5d7b859bd3) Change-Id: I8a4de733e30e38ee90f9aa8eb2d7cb10204fcad2 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-23dunfell: ensurepip not needed in rootfsAndrew Geissler1-0/+6
This was pulled down from the facebook/openbmc repo: https://github.com/facebook/openbmc/blob/19cd2a3e9638e7a2652518c022e422c7de4c7259/common/recipes-devtools/python/python3_%25.bbappend (From meta-phosphor rev: d23fed577d26eb704e427a4f65f13866cb391de1) Change-Id: I5cb44b0e3b634bf0d605e84e3d32a15e84615354 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-23dunfell: ensure python3 is defaultAndrew Geissler1-0/+5
This was pulled down from the facebook/openbmc repo: https://github.com/facebook/openbmc/blob/19cd2a3e9638e7a2652518c022e422c7de4c7259/common/recipes-devtools/python/python3_%25.bbappend (From meta-phosphor rev: e84b046a582307700a6a193270d2b61a81b57f76) Change-Id: I94766094f0744da58b2ce02ae51526eaf3e73f78 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-23dunfell: remove python2 .py file workaroundAndrew Geissler1-11/+0
python2 is gone in dunfell release so need to remove any appends to that recipe. A later commit in this series will apply this space reducer to a python3 version of the bbappend. (From meta-phosphor rev: afaf32d69470243c7a1367700f0427432789251e) Change-Id: I242d11902250ed8948f244afae45a78787b5299e Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-04-01Remove /usr/bin/py.test and /usr/bin/pytest from install pathVishwanatha Subbanna1-0/+13
When moving to python3 and building openbmc, Yocto throws a QA issue in that, both python2 and python3 attempt to install /usr/bin/py.test, which is not used and hence this commit deletes the file (From meta-phosphor rev: 34ec91f787555b2d5086cc1e8c61c8e8833726f3) Change-Id: Ib7aca05972525e0edf6ad3b2c1f29759d761084c Signed-off-by: Vishwanatha Subbanna <vishwa@linux.vnet.ibm.com> Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-03-16python-mako: remove mako-render from native recipePatrick Williams1-0/+12
Both python-mako and python3-mako attempt to install an executable into /usr/bin/mako-render. Neither of these are used by anything in openbmc. Delete the executable for python-mako-native to avoid the collision. Once we are done with python2 this can be deleted. (From meta-phosphor rev: e0d4ebcd479297ef8659112cfb8d627165c26c9e) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I75b4b28ed2804a02ba8bc487f68ec0a67c3e4a49 Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
2020-02-26python-pyyaml: remove unneeded bbappendPatrick Williams1-1/+0
meta-oe subtree's recipe already contains the BBCLASSEXTEND. (From meta-phosphor rev: dc3061d026743b883b6f7a984680e5b155263073) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I5ceff876c7d956f7953680ae7c0b5960d6a3ec4b Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2020-02-26python-inflection: remove outdated recipePatrick Williams2-23/+0
meta-oe subtree already contains this. (From meta-phosphor rev: 376577db2f02399a46ac97ec087a2801acd49ece) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I1b9224a0ca2ddff16fa0cf8a789cdb08d2ce73e7 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2020-02-26python-mako: remove outdated recipePatrick Williams1-11/+0
meta-oe subtree already contains this. (From meta-phosphor rev: 208ddaa9998d2e12a1892fea3da50b4183dfcdbe) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I8a2f25b81a8f5039d361bb1278442395faa4f720 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2020-01-20python-pygobject: update patchesPatrick Williams1-8/+19
Fix patch fuzz as reported by bitbake warning. patching file configure.ac Hunk #2 succeeded at 82 with fuzz 1. The context lines in the patches can be updated with devtool: devtool modify python-pygobject devtool finish --force-patch-refresh python-pygobject <layer_path> (From meta-phosphor rev: 084e71258affcb86d4ac65ffc6ff5da34ff3313b) Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I7fa8b6f79837159ff58979bebd24a820bd2bae96 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-04-25meta-phosphor: python: drop json encoding patchBrad Bishop2-129/+0
The only code that needed this patch was phosphor-rest-server, which no longer has a recipe in meta-phosphor. This reverts 39beab95c635374ca0e9aa50fdce2c02e85efdca. (From meta-phosphor rev: db6d01e2722e38b0b5e55d06950436312456bf27) Change-Id: I08b381e29d6c6d3cdd510305c628a4e3da68fb03 Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2019-03-29meta-phosphor: Drop recipe for phosphor-restBrad Bishop9-171/+0
This application doesn't have any in-tree users. As such, drop the recipe and its dependencies. (From meta-phosphor rev: 296cc521f5a1c8c87c63a5b475b23c876241bf22) Change-Id: Ie0ce809f84a133c023f96b4727550690583cb9df Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-10-18meta-phosphor: python: pyphosphor: rename as gitPatrick Venture1-0/+1
Rename pyphosphor.bb as pyphosphor_git.bb per OE norms. (From meta-phosphor rev: 82e41912202dacd72fdb22944776e01daba37226) Change-Id: I169e222d1e3ab166acb53a1ed48cf5fdde31ecda Signed-off-by: Patrick Venture <venture@google.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-09-27Keep _sysconfigdata.py in imageAndrew Geissler1-5/+4
The previous logic for keeping this file in the image did not work well when building an SDK (the packaging layout is different). This change works in all cases and is more efficient. Tested: Verified normal image and SDK build fine now for witherspoon. Resolves openbmc/openbmc#3384 (From meta-phosphor rev: aa7464007ae3c880bcffc46b184732fea7f6a280) Change-Id: I9492fdd543353e405d602d1ff392cd518437d007 Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-09-12pyphosphor: srcrev bump f63e191ca6..d2aadf1220Andrew Geissler1-1/+1
Adriana Kobylak (3): sensors: Remove PowerSupplyRedundancySensor sensors: Remove PowerSupplyDeratingSensor sensors: Remove sensor manager (From meta-phosphor rev: 082080eaef2684a7011c3852c8af36efebf40057) Change-Id: I683c551ecb7649eda4ee7f7d7d361ba668b3f832 Signed-off-by: Andrew Geissler <openbmcbump-github@yahoo.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-09-07phosphor-tiny: Remove python-gevent.bb .py filesAndrew Geissler1-0/+6
Only the .pyc files are needed from the gevent recipe. This saves us ~130KB of rofs space. Reference openbmc/openbmc#3372 (From meta-phosphor rev: 9aa5a5623a08708cce8fa898164e9adae5c9b193) Change-Id: I3454bbd93e52be340374feeb15f36ea7f8c0b43c Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-09-07phosphor-tiny: Reduce python.bb .py filesAndrew Geissler1-0/+10
Only the .pyc files are needed from the python recipe. There was some discussion of natively supporting this in the python recipe within this bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=6434 But nothing ever came of it so for now bbappend a file that removes the unneeded .py files during install. This saves us 800KB of rofs space. Testing: Verified the python apps still started without issue in QEMU. Resolves: openbmc/openbmc#3372 (From meta-phosphor rev: 20e22db34e1d1b913607b538d3c536979f38ecf4) Change-Id: I63b452dd63cff3274414b3e01183b62c0c7656f8 Signed-off-by: Andrew Geissler <geissonator@yahoo.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-09-07Add python library pamela as a dependency of phosphor-rest-serverTom Joseph1-0/+15
Pamela is a python wrapper for PAM. Compared to python-pam it has wrapper for account management in addition to authentication. (From meta-phosphor rev: 65c5362ac32389167766f51de4cd3f645fae0123) Change-Id: I5fee48e75d1b68b998fdb2971aad3802191ee1d5 Signed-off-by: Tom Joseph <tomjoseph@in.ibm.com> Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
2018-09-06meta-phosphor: Move layer content from common/Brad Bishop15-0/+446
Adopt a more conventional directory hierarchy. meta-phosphor is still a _long_ way from suitable for hosting on yoctoproject.org but things like this don't help. (From meta-phosphor rev: 471cfcefa74b8c7ceb704cb670e6d915cf27c63b) Change-Id: I3f106b2f6cdc6cec734be28a6090800546f362eb Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>