Skip to content

Commit

Permalink
Fix: pyproject.tomlを修正
Browse files Browse the repository at this point in the history
  • Loading branch information
sevenc-nanashi committed Oct 21, 2023
1 parent 896ab0c commit a62db9c
Show file tree
Hide file tree
Showing 4 changed files with 99 additions and 83 deletions.
1 change: 1 addition & 0 deletions .github/workflows/generate_document.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
- name: Create a venv
uses: ./.github/actions/create-venv
- name: Install python dependencies
working-directory: ./crates/voicevox_core_python_api
run: |
pip install --upgrade poetry
poetry config virtualenvs.create false
Expand Down
10 changes: 6 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,6 +260,10 @@ jobs:
- os: macos-latest
- os: ubuntu-latest
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash
working-directory: ./crates/voicevox_core_python_api
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.9
Expand All @@ -271,13 +275,11 @@ jobs:
- run: |
pip install --upgrade poetry
cd crates/voicevox_core_python_api
poetry config virtualenvs.create false
poetry install --with dev --with test
- run: cargo build -p voicevox_core_c_api -vv
- run: maturin build --manifest-path ./crates/voicevox_core_python_api/Cargo.toml --locked
- run: maturin develop --manifest-path ./crates/voicevox_core_python_api/Cargo.toml --locked
- run: maturin build --manifest-path Cargo.toml --locked
- run: maturin develop --manifest-path Cargo.toml --locked
- name: 必要なDLLをコピーしてpytestを実行
working-directory: crates/voicevox_core_python_api
run: |
cp -v ../../target/debug/build/onnxruntime-sys-*/out/onnxruntime_*/onnxruntime-*/lib/onnxruntime.dll . || true
cp -v ../../target/debug/build/onnxruntime-sys-*/out/onnxruntime_*/onnxruntime-*/lib/libonnxruntime.so.* . || true
Expand Down
143 changes: 69 additions & 74 deletions crates/voicevox_core_python_api/poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 23 additions & 5 deletions crates/voicevox_core_python_api/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,19 @@
[tool.poetry]
[project]
name = "voicevox_core"
version = "0.0.0"
requires-python = ">=3.8"
dependencies = ["numpy", "pydantic>=1.9.2,<2"]
description = "VOICEVOX CORE の Python バインディングです。"
authors = ["Hiroshiba <[email protected]>"]
authors = [{ name = "Hiroshiba", email = "[email protected]" }]
classifiers = [
"Programming Language :: Python",
"Programming Language :: Rust",
"Operating System :: POSIX :: Linux",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS :: MacOS X",
"Environment :: GPU :: NVIDIA CUDA",
]
# TODO:ユーザー用のREADMEを作る
# readme = "README.md"

[build-system]
requires = ["maturin>=0.13.2,<0.14"]
Expand All @@ -15,9 +26,16 @@ profile = "black"
bindings = "pyo3"
skip-auditwheel = true # Linuxでlibonnxruntime.so.*の不在を許してもらう

[tool.poetry]
# Poetryはこれがないと動かない
name = "voicevox_core"
version = "0.0.0"
description = "VOICEVOX CORE の Python バインディングです。"
authors = []

[tool.poetry.dependencies]
python = ">=3.9,<3.13"
numpy = ">=1.26.1,<2"
python = ">=3.8,<3.13"
numpy = ">=1,<2"
pydantic = ">=1.9.2,<2"

[tool.poetry.group.docs.dependencies]
Expand Down

0 comments on commit a62db9c

Please sign in to comment.