[bitbake-devel] [PATCH v3 0/7] NPM refactoring

Jean-Marie LEMETAYER jean-marie.lemetayer at savoirfairelinux.com
Wed Nov 20 09:34:05 UTC 2019


These patches are part of a set which are mainly in OE-core.

More infos can be found on the openembedded-core list.

--- V2

 - Add the 'check_network_access' function before each network access to check
   for 'BB_NO_NETWORK' and 'BB_ALLOWED_NETWORKS' variables.

 - Add a 'bb.tests.fetch.NPMTest' test suite for 'bitbake-selftest' to test the
   npm fetcher. Here is the list of the new test cases:
     - bb.tests.fetch.NPMTest.test_npm
     - bb.tests.fetch.NPMTest.test_npm_name_invalid
     - bb.tests.fetch.NPMTest.test_npm_name_none
     - bb.tests.fetch.NPMTest.test_npm_registry_alternate
     - bb.tests.fetch.NPMTest.test_npm_registry_invalid
     - bb.tests.fetch.NPMTest.test_npm_registry_none
     - bb.tests.fetch.NPMTest.test_npm_version_invalid
     - bb.tests.fetch.NPMTest.test_npm_version_latest
     - bb.tests.fetch.NPMTest.test_npm_version_none

--- V3

 - Add two more tests regarding the BB_NO_NETWORK variable:
     - bb.tests.fetch.NPMTest.test_npm_no_network_no_tarball
     - bb.tests.fetch.NPMTest.test_npm_no_network_with_tarball

 - Restrict the version parameter to allow only semver versions and the 'latest'
   tag (do not allow the npm range formats).

 - Split the commits for better understanding.

 - Add helper functions to handle dependency fetching and unpacking in the
   npm.bbclass and the recipetool/create_npm.py files.

 - Remove the progress handler as it does not work well while fetching the
   dependencies.

 - These patches can be found here:
     - https://github.com/savoirfairelinux/bitbake/tree/npm-refactoring-v3
     - https://github.com/savoirfairelinux/poky/tree/npm-refactoring-v3

Jean-Marie LEMETAYER (7):
  bitbake: utils.py: add sha384_file and sha512_file functions
  fetch2/npm.py: refactor the npm fetcher
  fetch2/npm.py: restrict version parameter
  fetch2/npm.py: add utility functions to handle dependencies
  fetch2/npm.py: unpack the dependencies in a node_modules directory
  fetch2/npm.py: restrict the build to be offline
  tests/fetch.py: add npm tests

 lib/bb/fetch2/npm.py  | 576 +++++++++++++++++++++++-------------------
 lib/bb/tests/fetch.py | 103 ++++++++
 lib/bb/utils.py       |  24 ++
 3 files changed, 441 insertions(+), 262 deletions(-)

--
2.20.1



More information about the bitbake-devel mailing list