diff --git a/src/github.js b/src/github.js index dc4e509..437d688 100644 --- a/src/github.js +++ b/src/github.js @@ -353,6 +353,14 @@ class Github { } else { const tree = await this.getSubPackageTree({ onlyBase }); deps = Object.keys(tree); + if (onlyBase) { + deps = []; + for (const k in tree) { + if (tree[k].vias.includes('apache-superset')) { + deps.push(k); + } + } + } } if (shuffle) { deps = shuffleArray(deps); @@ -492,12 +500,12 @@ class Github { await runShellCommand({ command: 'git clean -f', ...shellOptions }); } - // Run pip-compile-multi let pythonPackages = [pythonPackage]; if (includeSubpackages) { pythonPackages = await this.allDescendantPackages(pythonPackage); } console.log('Packages to bump', pythonPackages); + // Run pip-compile-multi for (const lib of pythonPackages) { try { await runShellCommand({ command: `pip-compile-multi --use-cache -P ${lib}`, ...shellOptions }); diff --git a/src/utils.js b/src/utils.js index ba78735..0967bc2 100644 --- a/src/utils.js +++ b/src/utils.js @@ -122,6 +122,7 @@ export function parsePinnedRequirementsTree(requirements) { .map((line) => line.trim().toLowerCase()) .filter((line) => !line.startsWith('# via -r ')) // this removes funky lines refing other files .filter((line) => !line.startsWith('-e ')) // this removes funky lines refing other files + .filter((line) => !line.includes('-r ')) // this removes funky lines refing other files .filter((line) => !!line); // this removes empty lines const depsObject = {};