Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MAINT: 未使用の依存パッケージを削除 #962

Merged
merged 1 commit into from
Jan 1, 2024

Conversation

sabonerune
Copy link
Contributor

内容

pyploject.tomlに記載されているが現在使用されていないパッケージを削除します。

Copy link

Coverage Result

Resultを開く
Name Stmts Miss Cover
run.py 506 341 coverage-33%
voicevox_engine/init.py 1 0 coverage-100%
voicevox_engine/cancellable_engine.py 93 72 coverage-23%
voicevox_engine/core_adapter.py 50 18 coverage-64%
voicevox_engine/core_initializer.py 59 30 coverage-49%
voicevox_engine/core_wrapper.py 224 159 coverage-29%
voicevox_engine/dev/core/init.py 2 0 coverage-100%
voicevox_engine/dev/core/mock.py 36 8 coverage-78%
voicevox_engine/dev/synthesis_engine/init.py 2 0 coverage-100%
voicevox_engine/dev/synthesis_engine/mock.py 26 0 coverage-100%
voicevox_engine/engine_manifest/EngineManifest.py 34 0 coverage-100%
voicevox_engine/engine_manifest/EngineManifestLoader.py 12 0 coverage-100%
voicevox_engine/engine_manifest/init.py 3 0 coverage-100%
voicevox_engine/library_manager.py 93 5 coverage-95%
voicevox_engine/metas/Metas.py 33 0 coverage-100%
voicevox_engine/metas/MetasStore.py 18 6 coverage-67%
voicevox_engine/metas/init.py 2 0 coverage-100%
voicevox_engine/model.py 162 9 coverage-94%
voicevox_engine/morphing.py 71 46 coverage-35%
voicevox_engine/part_of_speech_data.py 5 0 coverage-100%
voicevox_engine/preset/Preset.py 12 0 coverage-100%
voicevox_engine/preset/PresetError.py 2 0 coverage-100%
voicevox_engine/preset/PresetManager.py 80 2 coverage-98%
voicevox_engine/preset/init.py 4 0 coverage-100%
voicevox_engine/setting/Setting.py 11 0 coverage-100%
voicevox_engine/setting/SettingLoader.py 17 0 coverage-100%
voicevox_engine/setting/init.py 3 0 coverage-100%
voicevox_engine/tts_pipeline/init.py 3 0 coverage-100%
voicevox_engine/tts_pipeline/acoustic_feature_extractor.py 25 1 coverage-96%
voicevox_engine/tts_pipeline/kana_converter.py 86 1 coverage-99%
voicevox_engine/tts_pipeline/mora_list.py 4 0 coverage-100%
voicevox_engine/tts_pipeline/text_analyzer.py 128 6 coverage-95%
voicevox_engine/tts_pipeline/tts_engine.py 187 8 coverage-96%
voicevox_engine/user_dict.py 145 12 coverage-92%
voicevox_engine/utility/init.py 5 0 coverage-100%
voicevox_engine/utility/connect_base64_waves.py 37 0 coverage-100%
voicevox_engine/utility/core_version_utility.py 8 1 coverage-88%
voicevox_engine/utility/mutex_utility.py 13 0 coverage-100%
voicevox_engine/utility/path_utility.py 35 9 coverage-74%
voicevox_engine/utility/run_utility.py 10 7 coverage-30%
TOTAL 2247 741 coverage-67%

Comment on lines -66 to -67
atomicwrites = "^1.4.0"
colorama = "^0.4.4"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ref: #219 (comment)

WSL上で作業したところcoloramaがWindowsのみインストールされるようにrequirements*.txtが構成されていたため削除しても問題ないと思います。
(atomicwritesは使用するパッケージが無くなったため削除)

soundfile = "^0.12.1"
pyyaml = "^6.0"
pyworld = "^0.3.0"
requests = "^2.28.1"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#437 で追加 #616 で削除

@@ -48,23 +48,18 @@ numpy = "^1.20.0"
fastapi = "^0.103.2"
python-multipart = "^0.0.5"
uvicorn = "^0.15.0"
aiofiles = "^0.7.0"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不明
初期から入っているが使用している様子がないため削除

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

これなんであるのかわからないですね・・・。ビルドに含めてたことがあったっぽい・・・?

--follow-import-to=aiofiles \

jinja2 = "^3.1.2"
pyopenjtalk = { git = "https://github.com/VOICEVOX/pyopenjtalk", rev = "b35fc89fe42948a28e33aed886ea145a51113f88" }
semver = "^3.0.0"
platformdirs = "^3.10.0"
soxr = "^0.3.6"

[tool.poetry.group.dev.dependencies]
cython = "^0.29.34,>=0.29.33" # NOTE: for Python 3.11
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

不要のはず。

(pyworldが何故かinstall_requires内で宣言しているため完全に削除不能)

@sabonerune sabonerune marked this pull request as ready for review December 31, 2023 09:24
@sabonerune sabonerune requested a review from a team as a code owner December 31, 2023 09:24
@sabonerune sabonerune requested review from y-chan and removed request for a team December 31, 2023 09:24
@Hiroshiba Hiroshiba requested review from Hiroshiba and removed request for y-chan January 1, 2024 12:48
Copy link
Member

@Hiroshiba Hiroshiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!!

まあ動かなくなったら動かなくなったということでrevertすれば良いかなと!
ビルド後のテストも回したいので0.15.0-preview.11としてrelease作成してみます。

@Hiroshiba Hiroshiba merged commit c1291f8 into VOICEVOX:master Jan 1, 2024
3 checks passed
@sabonerune sabonerune deleted the maint/rm-unused-packages branch January 1, 2024 13:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants