-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
150 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ default-members = [ | |
] | ||
|
||
[workspace.package] | ||
version = "0.1.2" | ||
version = "0.1.3" | ||
authors = ["fangyinc <[email protected]>"] | ||
edition = "2021" | ||
homepage = "https://github.com/fangyinc/lyric" | ||
|
@@ -44,8 +44,8 @@ tokio-stream = { version = "0.1.16", features = ["io-util"] } | |
pyo3 = { version = "0.22.5" } | ||
python3-dll-a = "0.2.10" | ||
|
||
lyric = { version = "0.1.2", path = "crates/lyric", default-features = false } | ||
lyric-utils = { version = "0.1.2", path = "crates/lyric-utils", default-features = false } | ||
lyric-rpc = { version = "0.1.2", path = "crates/lyric-rpc", default-features = false } | ||
lyric-wasm-runtime = { version = "0.1.2", path = "crates/lyric-wasm-runtime", default-features = false } | ||
lyric-py = { version = "0.1.2", path = "bindings/python/lyric-py", default-features = false } | ||
lyric = { version = "0.1.3", path = "crates/lyric", default-features = false } | ||
lyric-utils = { version = "0.1.3", path = "crates/lyric-utils", default-features = false } | ||
lyric-rpc = { version = "0.1.3", path = "crates/lyric-rpc", default-features = false } | ||
lyric-wasm-runtime = { version = "0.1.3", path = "crates/lyric-wasm-runtime", default-features = false } | ||
lyric-py = { version = "0.1.3", path = "bindings/python/lyric-py", default-features = false } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
.DEFAULT_GOAL := help | ||
|
||
# Define subproject paths | ||
PY_WORKER_DIR = lyric-py-worker | ||
JS_WORKER_DIR = lyric-js-worker | ||
TASK_WORKER_DIR = lyric-task | ||
|
||
.PHONY: all | ||
all: build ## Build all subprojects | ||
|
||
.PHONY: build | ||
build: build-task build-py-worker build-js-worker ## Build all subprojects | ||
|
||
.PHONY: build-task | ||
build-task: ## Build the task dependency | ||
@echo "Building task..." | ||
$(MAKE) -C $(TASK_WORKER_DIR) build | ||
|
||
.PHONY: build-py-worker | ||
build-py-worker: ## Build the Python worker | ||
@echo "Building Python worker..." | ||
$(MAKE) -C $(PY_WORKER_DIR) build | ||
|
||
|
||
.PHONY: build-js-worker | ||
build-js-worker: ## Build the JavaScript worker | ||
@echo "Building JavaScript worker..." | ||
$(MAKE) -C $(JS_WORKER_DIR) build | ||
|
||
.PHONY: clean | ||
clean: ## Clean all projects | ||
@echo "Cleaning all projects..." | ||
rm -rf dist | ||
|
||
|
||
.PHONY: publish-pypi | ||
publish-pypi: build ## Publish all packages to PyPI | ||
@echo "Publishing to PyPI..." | ||
@if [ -z "$(TWINE_USERNAME)" ] || [ -z "$(TWINE_PASSWORD)" ]; then \ | ||
echo "Error: TWINE_USERNAME and TWINE_PASSWORD environment variables must be set"; \ | ||
exit 1; \ | ||
fi | ||
@echo "Uploading all distributions from dist/" | ||
twine upload dist/* | ||
|
||
.PHONY: publish-testpypi | ||
publish-testpypi: build ## Publish all packages to TestPyPI | ||
@echo "Publishing to TestPyPI..." | ||
@if [ -z "$(TWINE_USERNAME)" ] || [ -z "$(TWINE_PASSWORD)" ]; then \ | ||
echo "Error: TWINE_USERNAME and TWINE_PASSWORD environment variables must be set"; \ | ||
exit 1; \ | ||
fi | ||
@echo "Uploading all distributions from dist/" | ||
rye run twine upload --repository testpypi dist/* | ||
|
||
.PHONY: help | ||
help: ## Display this help screen | ||
@echo "Available commands:" | ||
@grep -E '^[a-z.A-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-18s\033[0m %s\n", $$1, $$2}' | sort |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "lyric-js-worker" | ||
version = "0.1.2-rc1" | ||
version = "0.1.3" | ||
description = "Add your description here" | ||
authors = [ | ||
{ name = "Fangyin Cheng", email = "[email protected]" }, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "lyric-py-worker" | ||
version = "0.1.2-rc1" | ||
version = "0.1.3" | ||
description = "Add your description here" | ||
authors = [ | ||
{ name = "Fangyin Cheng", email = "[email protected]" }, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
.DEFAULT_GOAL := help | ||
|
||
.PHONY: build | ||
build: | ||
rye build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "lyric-task" | ||
version = "0.1.2-rc1" | ||
version = "0.1.3" | ||
description = "Add your description here" | ||
authors = [ | ||
{ name = "Fangyin Cheng", email = "[email protected]" }, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[project] | ||
name = "python" | ||
version = "0.1.2" | ||
version = "0.1.3" | ||
description = "Add your description here" | ||
authors = [ | ||
{ name = "Fangyin Cheng", email = "[email protected]" } | ||
|
@@ -19,7 +19,8 @@ dev-dependencies = [ | |
"pytest>=7.0.0", | ||
"black>=23.0.0", | ||
"isort>=5.0.0", | ||
"maturin>=1.7,<2.0" | ||
"maturin>=1.7,<2.0", | ||
"twine" | ||
] | ||
|
||
[tool.rye.workspace] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters