Skip to content

Commit 4c0046d

Browse files
authored
Py-enigma-support (#1109)
Annoyingly py-enigma is relatively old and unmaintained but regularly used in platforms like Ada. The maintainer hasn't included a wheel in the distribution so can't be dynamically installed via micropip. I built one from the `tar.gz` file instead and included alongside or other custom install packages using the command: ``` python -m pip wheel https://files.pythonhosted.org/packages/91/4e/44327ad4a5960de12d86d39e1797f3ab67396a17d82182e8fc1b5ef347e5/py-enigma-0.1.tar.gz ``` where the `tar.gz` file location came from the location in PyPI - https://pypi.org/project/py-enigma/#files
1 parent 45f72e8 commit 4c0046d

File tree

4 files changed

+17
-2
lines changed

4 files changed

+17
-2
lines changed

CHANGELOG.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66

77
## Unreleased
88

9+
## [0.28.4] - 2024-10-23
10+
11+
### Added
12+
13+
- py-enigma support (#1109)
14+
915
## [0.28.3] - 2024-10-22
1016

1117
### Fixed
@@ -936,7 +942,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
936942

937943
- Events in Web Component indicating whether Mission Zero criteria have been met (#113)
938944

939-
[unreleased]: https://github.com/RaspberryPiFoundation/editor-ui/compare/v0.28.3...HEAD
945+
[unreleased]: https://github.com/RaspberryPiFoundation/editor-ui/compare/v0.28.4...HEAD
946+
[0.28.4]: https://github.com/RaspberryPiFoundation/editor-ui/releases/tag/v0.28.4
940947
[0.28.3]: https://github.com/RaspberryPiFoundation/editor-ui/releases/tag/v0.28.3
941948
[0.28.2]: https://github.com/RaspberryPiFoundation/editor-ui/releases/tag/v0.28.2
942949
[0.28.1]: https://github.com/RaspberryPiFoundation/editor-ui/releases/tag/v0.28.1

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@raspberrypifoundation/editor-ui",
3-
"version": "0.28.3",
3+
"version": "0.28.4",
44
"private": true,
55
"dependencies": {
66
"@apollo/client": "^3.7.8",
45.8 KB
Binary file not shown.

src/PyodideWorker.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,14 @@ const PyodideWorker = () => {
158158
};
159159

160160
const vendoredPackages = {
161+
// Support for https://pypi.org/project/py-enigma/ due to package not having a whl file on PyPi.
162+
enigma: {
163+
before: async () => {
164+
await pyodide.loadPackage(
165+
`${process.env.ASSETS_URL}/pyodide/packages/py_enigma-0.1-py3-none-any.whl`,
166+
);
167+
},
168+
},
161169
turtle: {
162170
before: async () => {
163171
pyodide.registerJsModule("basthon", fakeBasthonPackage);

0 commit comments

Comments
 (0)