Skip to content

Add pypi.bbclass; python improvements

Tim Orling openembedded-core 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest13 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/13pypi.bbclass: bring in from meta-pythonmeta/classes/pypi.bbclass+26 -00 replies
2/13python-*-manifest/generator: add runpy; python3-plistlibmeta/recipes-devtools/python/python-2.7-manifest.inc meta/recipes-devtools/python/python-3.5-manifest.inc scripts/contrib/python/generate-manifest-2.7.py +1 more+30 -80 replies
3/13python-setuptools: upgrade to 36.8.0; use pypi.bbclass; improvementsmeta/recipes-devtools/python/python-setuptools.inc meta/recipes-devtools/python/python-setuptools_36.5.0.bb meta/recipes-devtools/python/python-setuptools_36.8.0.bb +2 more+51 -820 replies
4/13python3-pip: use pypi.bbclassmeta/recipes-devtools/python/python3-pip_9.0.1.bb+3 -100 replies
5/13python-nose: use pypi.bbclassmeta/recipes-devtools/python/python-nose.inc meta/recipes-devtools/python/python-nose_1.3.7.bb meta/recipes-devtools/python/python3-nose_1.3.7.bb+20 -470 replies
6/13python-six: use pypi.bbclassmeta/recipes-devtools/python/python-six.inc meta/recipes-devtools/python/python3-six_1.11.0.bb+3 -70 replies
7/13python-async: use pypi.bbclassmeta/recipes-devtools/python/python-async.inc meta/recipes-devtools/python/python3-async_0.6.2.bb+4 -90 replies
8/13python-mako: use pypi.bbclassmeta/recipes-devtools/python/python-mako.inc meta/recipes-devtools/python/python3-mako_1.0.7.bb+10 -140 replies
9/13python-smmap: use pypi.bbclassmeta/recipes-devtools/python/python-smmap.inc meta/recipes-devtools/python/python3-smmap_0.9.0.bb+7 -100 replies
10/13python-gitdb: use pypi.bbclassmeta/recipes-devtools/python/python-gitdb.inc meta/recipes-devtools/python/python3-gitdb_0.6.4.bb+12 -100 replies
11/13python-git: use pypi.bbclassmeta/recipes-devtools/python/python-git.inc meta/recipes-devtools/python/python3-git_2.1.7.bb+21 -100 replies
12/13python3-iniparse: use pypi.bbclassmeta/recipes-devtools/python/python3-iniparse_0.4.bb+3 -60 replies
13/13python-scons: upgrade to v3.0.1; use pypi.bbclassmeta/recipes-devtools/python/python-scons-native_3.0.1.bb meta/recipes-devtools/python/python-scons/SConscript-Support-python2-print-statements.patch meta/recipes-devtools/python/python-scons_3.0.1.bb+3 -490 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 00/13] Add pypi.bbclass; python improvements

The pypi.bbclass added to meta-python by Derek Straka significantly simplifies python module packaging and has utility outside of just the meta-python layer. Most notably, it knows how to generate the SRC_URI, S, UPSTREAM_CHECK_URI and UPSTREAM_CHECK_REGEX variables given a PYPI_PACKAGE. For special cases where PYPI_PACKAGE is not guessable from the BPN, the value can be set in your recipe. For special cases where the upstream source is not bundled as a .tar.gz, the PYPI_PACKAGE_EXT can be set in your recipe. Providing python2 and python3 packaging is also simplified by putting most of the common content into .inc files. Note that it is strongly recommend to use PYTHON_PN to dynamically set "python-" vs. "python3-" prefix for your DEPENDS and RDEPENDS needs. This often moves everything but the "requires python-foo.inc" and "include setuptools*" lines in your python recipes to the common .inc file. Much simpler maintenance.

This patch series adds runpy to the python-*-manifests (and generators), which allows you to run, for example "python -m pip" from the command line. It also adds a couple dependencies that were silently breaking python packages at runtime.

This series modifies all the recipes in recipes-devtools/python which had a SRC_URI pointing to "pythonhosted" to use the pypi.bbclass. Where it made sense, the "python-" and "python3-" specific files were simplified, putting the common content into the .inc file.

Finally, this series upgrades python-scons and python*-setuptools to the latest versions.

The following changes since commit 33418ed064fe9cff5b4803f09135a81d9170c189:

runqemu: Also specialcase resolution of '.' to the file's location (2017-11-21 17:58:36 +0000)

are available in the git repository at:

git://push.openembedded.org/openembedded-core-contrib ttorling/pypi

Tim Orling (13):
pypi.bbclass: bring in from meta-python python-*-manifest/generator: add runpy; python3-plistlib
python-setuptools: upgrade to 36.8.0; use pypi.bbclass; improvements
python3-pip: use pypi.bbclass
python-nose: use pypi.bbclass
python-six: use pypi.bbclass
python-async: use pypi.bbclass
python-mako: use pypi.bbclass
python-smmap: use pypi.bbclass
python-gitdb: use pypi.bbclass
python-git: use pypi.bbclass
python3-iniparse: use pypi.bbclass
python-scons: upgrade to v3.0.1; use pypi.bbclass

 meta/classes/pypi.bbclass                          | 26 ++++++++++++++
 .../python/python-2.7-manifest.inc                 | 12 ++++---
 .../python/python-3.5-manifest.inc                 | 16 ++++++---
 meta/recipes-devtools/python/python-async.inc      |  7 ++--
 meta/recipes-devtools/python/python-git.inc        | 26 +++++++++++---
 meta/recipes-devtools/python/python-gitdb.inc      | 15 +++++---
 meta/recipes-devtools/python/python-mako.inc       | 13 ++++---
 meta/recipes-devtools/python/python-nose.inc       | 18 ++++++++++
 meta/recipes-devtools/python/python-nose_1.3.7.bb  | 25 +------------
 ...ative_3.0.0.bb => python-scons-native_3.0.1.bb} |  0
 ...onscript-Support-python2-print-statements.patch | 38 --------------------
 ...python-scons_3.0.0.bb => python-scons_3.0.1.bb} | 14 ++------
 meta/recipes-devtools/python/python-setuptools.inc | 42 ++++++++++++++++++----
 .../python/python-setuptools_36.5.0.bb             | 38 --------------------
 .../python/python-setuptools_36.8.0.bb             |  9 +++++
 meta/recipes-devtools/python/python-six.inc        |  8 ++---
 meta/recipes-devtools/python/python-smmap.inc      | 12 +++----
 .../recipes-devtools/python/python3-async_0.6.2.bb |  6 +---
 meta/recipes-devtools/python/python3-git_2.1.7.bb  |  5 ---
 .../recipes-devtools/python/python3-gitdb_0.6.4.bb |  7 +---
 .../python/python3-iniparse_0.4.bb                 |  9 ++---
 meta/recipes-devtools/python/python3-mako_1.0.7.bb | 11 +-----
 meta/recipes-devtools/python/python3-nose_1.3.7.bb | 24 +------------
 meta/recipes-devtools/python/python3-pip_9.0.1.bb  | 13 ++-----
 .../python/python3-setuptools_36.5.0.bb            | 38 --------------------
 .../python/python3-setuptools_36.8.0.bb            |  6 ++++
 meta/recipes-devtools/python/python3-six_1.11.0.bb |  2 --
 .../recipes-devtools/python/python3-smmap_0.9.0.bb |  5 +--
 scripts/contrib/python/generate-manifest-2.7.py    |  3 ++
 scripts/contrib/python/generate-manifest-3.5.py    |  7 ++++
 30 files changed, 193 insertions(+), 262 deletions(-)
 create mode 100644 meta/classes/pypi.bbclass
 create mode 100644 meta/recipes-devtools/python/python-nose.inc
 rename meta/recipes-devtools/python/{python-scons-native_3.0.0.bb => python-scons-native_3.0.1.bb} (100%)
 delete mode 100644 meta/recipes-devtools/python/python-scons/SConscript-Support-python2-print-statements.patch
 rename meta/recipes-devtools/python/{python-scons_3.0.0.bb => python-scons_3.0.1.bb} (43%)
 delete mode 100644 meta/recipes-devtools/python/python-setuptools_36.5.0.bb
 create mode 100644 meta/recipes-devtools/python/python-setuptools_36.8.0.bb
 delete mode 100644 meta/recipes-devtools/python/python3-setuptools_36.5.0.bb
 create mode 100644 meta/recipes-devtools/python/python3-setuptools_36.8.0.bb
Signature · 1 line
2.13.6