Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 0 additions & 11 deletions .github/extensions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,17 +32,6 @@ workspace_discovery = true
ir_versions = ["3", "4"]
release_with_workspace = true

[extensions.python]
package = "morphir-python-binding"
artifact = "morphir-python-binding"
extension_id = "morphir-python"
name = "Morphir Python"
mep_versions = ["0.1"]
targets = ["python"]
languages = [{ id = "python", file_extensions = [".py"] }]
ir_versions = ["3", "4"]
release_with_workspace = true

[extensions.gleam]
package = "morphir-gleam-binding"
artifact = "morphir-gleam-binding"
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -474,12 +474,6 @@ jobs:
if-no-files-found: error
retention-days: 7

- name: Test generated Python functions and closures
if: matrix.id == 'python'
env:
MORPHIR_TEST_PYTHON: python3
run: cargo test --locked -p morphir-python-binding --test functions -- --ignored

workspace-wasm:
name: Build (workspace discovery WASM)
runs-on: ubuntu-latest
Expand Down
194 changes: 0 additions & 194 deletions .mise/tasks/extension/artifact/python

This file was deleted.

38 changes: 2 additions & 36 deletions .mise/tasks/test/cli-release
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/sh
#MISE description="Publish, install and use an extension bundle through the released morphir CLI"
#USAGE arg "<id>" help="Extension short id: avro, elm-native, gleam, openapi, python or rust"
#USAGE arg "<id>" help="Extension short id: avro, elm-native, gleam, openapi or rust"

# The extension bundles built here are hosted by the morphir CLI, which finos/morphir releases.
# This task is the compatibility check between the two: it takes the bundle that
Expand All @@ -19,10 +19,9 @@ case "$ID" in
elm-native) EXTENSION_ID=morphir-elm-native ;;
gleam) EXTENSION_ID=morphir-gleam ;;
openapi) EXTENSION_ID=morphir-openapi ;;
python) EXTENSION_ID=morphir-python ;;
rust) EXTENSION_ID=morphir-rust ;;
*)
echo "usage: mise run test:cli-release <avro|elm-native|gleam|openapi|python|rust>" >&2
echo "usage: mise run test:cli-release <avro|elm-native|gleam|openapi|rust>" >&2
exit 2
;;
esac
Expand Down Expand Up @@ -227,39 +226,6 @@ GLEAM
same_json "compiled-v$version/morphir-ir.json" "recompiled-v$version/morphir-ir.json"
done
;;
python)
mkdir -p "$PROJECT/src/domain"
cat >"$PROJECT/morphir.toml" <<'TOML'
[project]
name = "acme/example"
version = "0.1.0"
source_directory = "src"
[frontend]
language = "python"
emit_parse_stage = false
TOML
cat >"$PROJECT/src/domain/models.py" <<'PYSRC'
from dataclasses import dataclass
@dataclass(frozen=True)
class Point:
coordinates: tuple[int, int]
PYSRC
cat >"$PROJECT/src/domain/rules.py" <<'PYSRC'
from .models import Point
def choose(flag: bool, first: Point, second: Point) -> Point:
if flag:
return first
else:
return second
PYSRC
morphir compile --language python --input src --output compiled
morphir generate --target python --input compiled/morphir-ir.json --output generated
require_file generated/domain/models.py
require_file generated/domain/rules.py
# Generated source has to compile back to the same IR.
morphir compile --language python --input generated --output recompiled
same_json compiled/morphir-ir.json recompiled/morphir-ir.json
;;
rust)
mkdir -p "$PROJECT/src"
cat >"$PROJECT/morphir.toml" <<'TOML'
Expand Down
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -288,6 +288,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
(finos/morphir#921).

### Removed
- **Breaking:** The Python extension crate `morphir-python-binding` (bundle
`morphir-python`, short id `python`) moved to
[finos/morphir-python](https://github.com/finos/morphir-python), which now
maintains and releases it. This workspace no longer builds, tests or
releases it: the crate, its `.github/extensions.toml` registration, the
`extension:artifact:python` task, the `python` case of `test:cli-release`,
the CI step for generated Python functions and the Ruff workspace
dependencies are gone, and `docs/tutorials/python-extension.md` is now a
pointer. Anyone who built the crate from morphir-rust must build it from
finos/morphir-python. The `extension/python/v0.1.0` to
`extension/python/v0.4.0` releases stay published here.
- From `morphir-daemon`, every duplicate of `morphir-host` and
`morphir-host-native`, with the `activation`, `connected`, `container`,
`host_functions`, `process`, `protocol`, `registry` and `session` modules
Expand Down
Loading
Loading