Skip to content

Commit b6dd817

Browse files
committed
ci(build): Release 0.1.3
1 parent e89f26a commit b6dd817

File tree

12 files changed

+150
-26
lines changed

12 files changed

+150
-26
lines changed

.github/workflows/release-python-task.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
name: Release Python Packages
22

33
on:
4-
release:
5-
types: [published]
6-
push:
7-
branches:
8-
- main
9-
- master
10-
pull_request:
4+
# release:
5+
# types: [published]
6+
# push:
7+
# branches:
8+
# - main
9+
# - master
10+
# pull_request:
1111
workflow_dispatch:
1212

1313
permissions:

Cargo.lock

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ default-members = [
99
]
1010

1111
[workspace.package]
12-
version = "0.1.2"
12+
version = "0.1.3"
1313
authors = ["fangyinc <staneyffer@gmail.com>"]
1414
edition = "2021"
1515
homepage = "https://github.com/fangyinc/lyric"
@@ -44,8 +44,8 @@ tokio-stream = { version = "0.1.16", features = ["io-util"] }
4444
pyo3 = { version = "0.22.5" }
4545
python3-dll-a = "0.2.10"
4646

47-
lyric = { version = "0.1.2", path = "crates/lyric", default-features = false }
48-
lyric-utils = { version = "0.1.2", path = "crates/lyric-utils", default-features = false }
49-
lyric-rpc = { version = "0.1.2", path = "crates/lyric-rpc", default-features = false }
50-
lyric-wasm-runtime = { version = "0.1.2", path = "crates/lyric-wasm-runtime", default-features = false }
51-
lyric-py = { version = "0.1.2", path = "bindings/python/lyric-py", default-features = false }
47+
lyric = { version = "0.1.3", path = "crates/lyric", default-features = false }
48+
lyric-utils = { version = "0.1.3", path = "crates/lyric-utils", default-features = false }
49+
lyric-rpc = { version = "0.1.3", path = "crates/lyric-rpc", default-features = false }
50+
lyric-wasm-runtime = { version = "0.1.3", path = "crates/lyric-wasm-runtime", default-features = false }
51+
lyric-py = { version = "0.1.3", path = "bindings/python/lyric-py", default-features = false }

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,19 @@ A Rust-powered secure sandbox for multi-language code execution, leveraging WebA
1717
**Install Lyric via pip:**
1818

1919
```bash
20-
pip install lyric-py
20+
pip install "lyric-py>=0.1.3"
2121
```
2222

2323
**Install default Python webassembly worker:**
2424

2525
```bash
26-
pip install lyric-py-worker
26+
pip install "lyric-py-worker>=0.1.3"
2727
```
2828

2929
**Install default JavaScript webassembly worker:**
3030

3131
```bash
32-
pip install lyric-js-worker
32+
pip install "lyric-js-worker>=0.1.3"
3333
```
3434

3535
### Basic Usage

bindings/python/Makefile

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
.DEFAULT_GOAL := help
2+
3+
# Define subproject paths
4+
PY_WORKER_DIR = lyric-py-worker
5+
JS_WORKER_DIR = lyric-js-worker
6+
TASK_WORKER_DIR = lyric-task
7+
8+
.PHONY: all
9+
all: build ## Build all subprojects
10+
11+
.PHONY: build
12+
build: build-task build-py-worker build-js-worker ## Build all subprojects
13+
14+
.PHONY: build-task
15+
build-task: ## Build the task dependency
16+
@echo "Building task..."
17+
$(MAKE) -C $(TASK_WORKER_DIR) build
18+
19+
.PHONY: build-py-worker
20+
build-py-worker: ## Build the Python worker
21+
@echo "Building Python worker..."
22+
$(MAKE) -C $(PY_WORKER_DIR) build
23+
24+
25+
.PHONY: build-js-worker
26+
build-js-worker: ## Build the JavaScript worker
27+
@echo "Building JavaScript worker..."
28+
$(MAKE) -C $(JS_WORKER_DIR) build
29+
30+
.PHONY: clean
31+
clean: ## Clean all projects
32+
@echo "Cleaning all projects..."
33+
rm -rf dist
34+
35+
36+
.PHONY: publish-pypi
37+
publish-pypi: build ## Publish all packages to PyPI
38+
@echo "Publishing to PyPI..."
39+
@if [ -z "$(TWINE_USERNAME)" ] || [ -z "$(TWINE_PASSWORD)" ]; then \
40+
echo "Error: TWINE_USERNAME and TWINE_PASSWORD environment variables must be set"; \
41+
exit 1; \
42+
fi
43+
@echo "Uploading all distributions from dist/"
44+
twine upload dist/*
45+
46+
.PHONY: publish-testpypi
47+
publish-testpypi: build ## Publish all packages to TestPyPI
48+
@echo "Publishing to TestPyPI..."
49+
@if [ -z "$(TWINE_USERNAME)" ] || [ -z "$(TWINE_PASSWORD)" ]; then \
50+
echo "Error: TWINE_USERNAME and TWINE_PASSWORD environment variables must be set"; \
51+
exit 1; \
52+
fi
53+
@echo "Uploading all distributions from dist/"
54+
rye run twine upload --repository testpypi dist/*
55+
56+
.PHONY: help
57+
help: ## Display this help screen
58+
@echo "Available commands:"
59+
@grep -E '^[a-z.A-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-18s\033[0m %s\n", $$1, $$2}' | sort

bindings/python/lyric-js-worker/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "lyric-js-worker"
3-
version = "0.1.2-rc1"
3+
version = "0.1.3"
44
description = "Add your description here"
55
authors = [
66
{ name = "Fangyin Cheng", email = "staneyffer@gmail.com" },

bindings/python/lyric-py-worker/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "lyric-py-worker"
3-
version = "0.1.2-rc1"
3+
version = "0.1.3"
44
description = "Add your description here"
55
authors = [
66
{ name = "Fangyin Cheng", email = "staneyffer@gmail.com" },
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
.DEFAULT_GOAL := help
2+
3+
.PHONY: build
4+
build:
5+
rye build

bindings/python/lyric-task/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "lyric-task"
3-
version = "0.1.2-rc1"
3+
version = "0.1.3"
44
description = "Add your description here"
55
authors = [
66
{ name = "Fangyin Cheng", email = "staneyffer@gmail.com" },

bindings/python/pyproject.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "python"
3-
version = "0.1.2"
3+
version = "0.1.3"
44
description = "Add your description here"
55
authors = [
66
{ name = "Fangyin Cheng", email = "staneyffer@gmail.com" }
@@ -19,7 +19,8 @@ dev-dependencies = [
1919
"pytest>=7.0.0",
2020
"black>=23.0.0",
2121
"isort>=5.0.0",
22-
"maturin>=1.7,<2.0"
22+
"maturin>=1.7,<2.0",
23+
"twine"
2324
]
2425

2526
[tool.rye.workspace]

0 commit comments

Comments
 (0)