-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add nodejs20.x support * fix: Fix missing encoding when logging from Makefile (#535) * Fix missing encoding when logging from Makefile * Add comment explaining why stderr * Undo testing code * Version bump to 1.37.0 (#537) * Support PEP 600 platform tags for arm64 (#536) * chore(deps-dev): bump ruff from 0.0.284 to 0.0.287 in /requirements (#539) Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.284 to 0.0.287. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](astral-sh/ruff@v0.0.284...v0.0.287) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... * chore(deps): bump actions/checkout from 3 to 4 (#538) Bumps [actions/checkout](https://github.com/actions/checkout) from 3 to 4. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v3...v4) --- updated-dependencies: - dependency-name: actions/checkout dependency-type: direct:production update-type: version-update:semver-major ... * chore(deps-dev): bump black from 23.3.0 to 23.7.0 in /requirements (#534) * chore(deps-dev): bump black from 23.3.0 to 23.7.0 in /requirements Bumps [black](https://github.com/psf/black) from 23.3.0 to 23.7.0. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](psf/black@23.3.0...23.7.0) --- updated-dependencies: - dependency-name: black dependency-type: direct:development update-type: version-update:semver-minor ... * Update requirements/dev.txt --------- * chore(deps-dev): bump black from 23.7.0 to 23.9.1 in /requirements (#543) Bumps [black](https://github.com/psf/black) from 23.7.0 to 23.9.1. - [Release notes](https://github.com/psf/black/releases) - [Changelog](https://github.com/psf/black/blob/main/CHANGES.md) - [Commits](psf/black@23.7.0...23.9.1) --- updated-dependencies: - dependency-name: black dependency-type: direct:development update-type: version-update:semver-minor ... * chore(deps-dev): bump ruff from 0.0.287 to 0.0.288 in /requirements (#542) Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.287 to 0.0.288. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](astral-sh/ruff@v0.0.287...v0.0.288) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... * chore(deps-dev): update pyelftools requirement in /requirements (#540) Updates the requirements on [pyelftools](https://github.com/eliben/pyelftools) to permit the latest version. - [Changelog](https://github.com/eliben/pyelftools/blob/master/CHANGES) - [Commits](eliben/pyelftools@v0.29...v0.30) --- updated-dependencies: - dependency-name: pyelftools dependency-type: direct:development ... * chore(deps-dev): bump coverage from 7.2.7 to 7.3.1 in /requirements (#541) * chore(deps-dev): bump coverage from 7.2.7 to 7.3.1 in /requirements Bumps [coverage](https://github.com/nedbat/coveragepy) from 7.2.7 to 7.3.1. - [Release notes](https://github.com/nedbat/coveragepy/releases) - [Changelog](https://github.com/nedbat/coveragepy/blob/master/CHANGES.rst) - [Commits](nedbat/coveragepy@7.2.7...7.3.1) --- updated-dependencies: - dependency-name: coverage dependency-type: direct:development update-type: version-update:semver-minor ... * fix: set coverage versions based on python versions - since coverage 7.3.x python3.7 support has been dropped. --------- * chore: Version Bump 1.38.0 (#544) * chore(deps-dev): bump ruff from 0.0.288 to 0.0.290 in /requirements (#545) Bumps [ruff](https://github.com/astral-sh/ruff) from 0.0.288 to 0.0.290. - [Release notes](https://github.com/astral-sh/ruff/releases) - [Changelog](https://github.com/astral-sh/ruff/blob/main/BREAKING_CHANGES.md) - [Commits](astral-sh/ruff@v0.0.288...v0.0.290) --- updated-dependencies: - dependency-name: ruff dependency-type: direct:development update-type: version-update:semver-patch ... * Update github action to install nodejs 20 --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: Andrea Culot <[email protected]> Co-authored-by: Lucas <[email protected]> Co-authored-by: Daniel Mil <[email protected]> Co-authored-by: jack-davies <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Sriram Madapusi Vasudevan <[email protected]> Co-authored-by: Sriram Madapusi Vasudevan <[email protected]> Co-authored-by: Mohamed Elasmar <[email protected]> Co-authored-by: Mohamed ElAsmar <[email protected]>
1 parent
f5d08dd
commit 7640b1a
Showing
6 changed files
with
41 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,7 +41,7 @@ def tearDown(self): | |
shutil.rmtree(self.dependencies_dir) | ||
shutil.rmtree(self.temp_dir) | ||
|
||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",)]) | ||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",), ("nodejs20.x",)]) | ||
def test_builds_project_without_dependencies(self, runtime): | ||
source_dir = os.path.join(self.TEST_DATA_FOLDER, "no-deps") | ||
|
||
|
@@ -57,7 +57,7 @@ def test_builds_project_without_dependencies(self, runtime): | |
output_files = set(os.listdir(self.artifacts_dir)) | ||
self.assertEqual(expected_files, output_files) | ||
|
||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",)]) | ||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",), ("nodejs20.x",)]) | ||
def test_builds_project_without_manifest(self, runtime): | ||
source_dir = os.path.join(self.TEST_DATA_FOLDER, "no-manifest") | ||
|
||
|
@@ -75,7 +75,7 @@ def test_builds_project_without_manifest(self, runtime): | |
mock_warning.assert_called_once_with("package.json file not found. Continuing the build without dependencies.") | ||
self.assertEqual(expected_files, output_files) | ||
|
||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",)]) | ||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",), ("nodejs20.x",)]) | ||
def test_builds_project_and_excludes_hidden_aws_sam(self, runtime): | ||
source_dir = os.path.join(self.TEST_DATA_FOLDER, "excluded-files") | ||
|
||
|
@@ -91,7 +91,7 @@ def test_builds_project_and_excludes_hidden_aws_sam(self, runtime): | |
output_files = set(os.listdir(self.artifacts_dir)) | ||
self.assertEqual(expected_files, output_files) | ||
|
||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",)]) | ||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",), ("nodejs20.x",)]) | ||
def test_builds_project_with_remote_dependencies(self, runtime): | ||
source_dir = os.path.join(self.TEST_DATA_FOLDER, "npm-deps") | ||
|
||
|
@@ -111,7 +111,7 @@ def test_builds_project_with_remote_dependencies(self, runtime): | |
output_modules = set(os.listdir(os.path.join(self.artifacts_dir, "node_modules"))) | ||
self.assertEqual(expected_modules, output_modules) | ||
|
||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",)]) | ||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",), ("nodejs20.x",)]) | ||
def test_builds_project_with_npmrc(self, runtime): | ||
source_dir = os.path.join(self.TEST_DATA_FOLDER, "npmrc") | ||
|
||
|
@@ -138,14 +138,17 @@ def test_builds_project_with_npmrc(self, runtime): | |
("nodejs14.x", "package-lock"), | ||
("nodejs16.x", "package-lock"), | ||
("nodejs18.x", "package-lock"), | ||
("nodejs20.x", "package-lock"), | ||
("nodejs12.x", "shrinkwrap"), | ||
("nodejs14.x", "shrinkwrap"), | ||
("nodejs16.x", "shrinkwrap"), | ||
("nodejs18.x", "shrinkwrap"), | ||
("nodejs20.x", "shrinkwrap"), | ||
("nodejs12.x", "package-lock-and-shrinkwrap"), | ||
("nodejs14.x", "package-lock-and-shrinkwrap"), | ||
("nodejs16.x", "package-lock-and-shrinkwrap"), | ||
("nodejs18.x", "package-lock-and-shrinkwrap"), | ||
("nodejs20.x", "package-lock-and-shrinkwrap"), | ||
] | ||
) | ||
def test_builds_project_with_lockfile(self, runtime, dir_name): | ||
|
@@ -172,7 +175,7 @@ def test_builds_project_with_lockfile(self, runtime, dir_name): | |
|
||
self.assertEqual(expected_files, output_files) | ||
|
||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",)]) | ||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",), ("nodejs20.x",)]) | ||
def test_fails_if_npm_cannot_resolve_dependencies(self, runtime): | ||
source_dir = os.path.join(self.TEST_DATA_FOLDER, "broken-deps") | ||
|
||
|
@@ -187,7 +190,7 @@ def test_fails_if_npm_cannot_resolve_dependencies(self, runtime): | |
|
||
self.assertIn("No matching version found for [email protected]", str(ctx.exception)) | ||
|
||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",)]) | ||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",), ("nodejs20.x",)]) | ||
def test_builds_project_with_remote_dependencies_without_download_dependencies_with_dependencies_dir(self, runtime): | ||
source_dir = os.path.join(self.TEST_DATA_FOLDER, "npm-deps") | ||
|
||
|
@@ -205,7 +208,7 @@ def test_builds_project_with_remote_dependencies_without_download_dependencies_w | |
output_files = set(os.listdir(self.artifacts_dir)) | ||
self.assertEqual(expected_files, output_files) | ||
|
||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",)]) | ||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",), ("nodejs20.x",)]) | ||
def test_builds_project_with_remote_dependencies_with_download_dependencies_and_dependencies_dir(self, runtime): | ||
source_dir = os.path.join(self.TEST_DATA_FOLDER, "npm-deps") | ||
|
||
|
@@ -235,7 +238,7 @@ def test_builds_project_with_remote_dependencies_with_download_dependencies_and_ | |
output_dependencies_files = set(os.listdir(os.path.join(self.dependencies_dir))) | ||
self.assertNotIn(expected_dependencies_files, output_dependencies_files) | ||
|
||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",)]) | ||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",), ("nodejs20.x",)]) | ||
def test_builds_project_with_remote_dependencies_without_download_dependencies_without_dependencies_dir( | ||
self, runtime | ||
): | ||
|
@@ -256,7 +259,7 @@ def test_builds_project_with_remote_dependencies_without_download_dependencies_w | |
output_files = set(os.listdir(self.artifacts_dir)) | ||
self.assertEqual(expected_files, output_files) | ||
|
||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",)]) | ||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",), ("nodejs20.x",)]) | ||
def test_builds_project_without_combine_dependencies(self, runtime): | ||
source_dir = os.path.join(self.TEST_DATA_FOLDER, "npm-deps") | ||
|
||
|
@@ -283,7 +286,7 @@ def test_builds_project_without_combine_dependencies(self, runtime): | |
output_dependencies_files = set(os.listdir(os.path.join(self.dependencies_dir))) | ||
self.assertNotIn(expected_dependencies_files, output_dependencies_files) | ||
|
||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",)]) | ||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",), ("nodejs20.x",)]) | ||
def test_build_in_source_with_download_dependencies(self, runtime): | ||
source_dir = os.path.join(self.temp_testdata_dir, "npm-deps") | ||
|
||
|
@@ -312,7 +315,7 @@ def test_build_in_source_with_download_dependencies(self, runtime): | |
output_files = set(os.listdir(self.artifacts_dir)) | ||
self.assertEqual(expected_files, output_files) | ||
|
||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",)]) | ||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",), ("nodejs20.x",)]) | ||
def test_build_in_source_with_download_dependencies_local_dependency(self, runtime): | ||
source_dir = os.path.join(self.temp_testdata_dir, "with-local-dependency") | ||
|
||
|
@@ -341,7 +344,7 @@ def test_build_in_source_with_download_dependencies_local_dependency(self, runti | |
output_files = set(os.listdir(self.artifacts_dir)) | ||
self.assertEqual(expected_files, output_files) | ||
|
||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",)]) | ||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",), ("nodejs20.x",)]) | ||
def test_build_in_source_with_download_dependencies_and_dependencies_dir(self, runtime): | ||
source_dir = os.path.join(self.temp_testdata_dir, "npm-deps") | ||
|
||
|
@@ -376,7 +379,7 @@ def test_build_in_source_with_download_dependencies_and_dependencies_dir(self, r | |
output_files = set(os.listdir(self.artifacts_dir)) | ||
self.assertEqual(expected_files, output_files) | ||
|
||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",)]) | ||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",), ("nodejs20.x",)]) | ||
def test_build_in_source_with_download_dependencies_and_dependencies_dir_without_combine_dependencies( | ||
self, runtime | ||
): | ||
|
@@ -409,7 +412,7 @@ def test_build_in_source_with_download_dependencies_and_dependencies_dir_without | |
output_files = set(os.listdir(self.artifacts_dir)) | ||
self.assertEqual(expected_files, output_files) | ||
|
||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",)]) | ||
@parameterized.expand([("nodejs12.x",), ("nodejs14.x",), ("nodejs16.x",), ("nodejs18.x",), ("nodejs20.x",)]) | ||
def test_build_in_source_reuse_saved_dependencies_dir(self, runtime): | ||
source_dir = os.path.join(self.temp_testdata_dir, "npm-deps") | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters