Skip to content
This repository was archived by the owner on Feb 14, 2024. It is now read-only.

Commit f6e764f

Browse files
authored
Provide a way for Voici to pin packages (#139)
* Provide a way for Voici to pin packages * Fix Python version
1 parent 87d2c6d commit f6e764f

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

.github/workflows/build.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: Install Python
5656
uses: actions/setup-python@v2
5757
with:
58-
python-version: '3.8'
58+
python-version: '3.10'
5959
architecture: 'x64'
6060
- uses: actions/download-artifact@v2
6161
with:

.github/workflows/check-release.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Install Python
2020
uses: actions/setup-python@v2
2121
with:
22-
python-version: 3.9
22+
python-version: '3.10'
2323
architecture: 'x64'
2424
- name: Install node
2525
uses: actions/setup-node@v2

jupyterlite_xeus_python/env_build_addon.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,10 @@ class XeusPythonEnv(FederatedExtensionAddon):
5252
description="The path or URL to the empack config file",
5353
)
5454

55+
pin_packages = PackagesList([]).tag(
56+
description="This property is not supposed to be used, unless you know what you're doing.",
57+
)
58+
5559
packages = PackagesList([]).tag(
5660
config=True,
5761
description="A comma-separated list of packages to install in the xeus-python env",
@@ -78,7 +82,7 @@ def post_build(self, manager):
7882

7983
env_prefix = build_and_pack_emscripten_env(
8084
xeus_python_version=self.xeus_python_version,
81-
packages=self.packages,
85+
packages=[*self.packages, *self.pin_packages],
8286
environment_file=Path(self.manager.lite_dir) / self.environment_file,
8387
empack_config=self.empack_config,
8488
output_path=self.cwd.name,

0 commit comments

Comments
 (0)