From c926d17e3c1cd4fb00ba2b430b7e8da9796a9741 Mon Sep 17 00:00:00 2001 From: martinRenou Date: Thu, 20 Jul 2023 11:31:59 +0200 Subject: [PATCH 1/2] Provide a way for Voici to pin packages --- jupyterlite_xeus_python/env_build_addon.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/jupyterlite_xeus_python/env_build_addon.py b/jupyterlite_xeus_python/env_build_addon.py index 32c5d64..ca12d29 100644 --- a/jupyterlite_xeus_python/env_build_addon.py +++ b/jupyterlite_xeus_python/env_build_addon.py @@ -52,6 +52,10 @@ class XeusPythonEnv(FederatedExtensionAddon): description="The path or URL to the empack config file", ) + pin_packages = PackagesList([]).tag( + description="This property is not supposed to be used, unless you know what you're doing.", + ) + packages = PackagesList([]).tag( config=True, description="A comma-separated list of packages to install in the xeus-python env", @@ -78,7 +82,7 @@ def post_build(self, manager): env_prefix = build_and_pack_emscripten_env( xeus_python_version=self.xeus_python_version, - packages=self.packages, + packages=[*self.packages, *self.pin_packages], environment_file=Path(self.manager.lite_dir) / self.environment_file, empack_config=self.empack_config, output_path=self.cwd.name, From ac6ad084952ec109ce2663f0a2ccb947ab5cf52f Mon Sep 17 00:00:00 2001 From: martinRenou Date: Thu, 20 Jul 2023 11:35:38 +0200 Subject: [PATCH 2/2] Fix Python version --- .github/workflows/build.yml | 2 +- .github/workflows/check-release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b4dfd74..e3f3f39 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,7 +55,7 @@ jobs: - name: Install Python uses: actions/setup-python@v2 with: - python-version: '3.8' + python-version: '3.10' architecture: 'x64' - uses: actions/download-artifact@v2 with: diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index 2a4c1d2..7ea99dc 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -19,7 +19,7 @@ jobs: - name: Install Python uses: actions/setup-python@v2 with: - python-version: 3.9 + python-version: '3.10' architecture: 'x64' - name: Install node uses: actions/setup-node@v2