monitorrent
monitorrent copied to clipboard
Updated qbittorrent dependencies
fix #402 Также немного поправил докерфайл для сборки так как тег с бустером уже отсутствует, и переделал указание мейнтейнера, так как тот способ считается уже устаревшим.
Единственный момент, к сожалению мне на маке с арм64 не удалось развернуть окружение из-за очень старых библиотек в зависимостях, для того чтобы проверить тесты, но по идее там нет больших изменения и должно все работать
upd: попробовал запуститься в devcontainer и прогнать тесты
root@944a436dbb04:/workspace# /usr/bin/env /usr/local/bin/python /root/.vscode-server/extensions/ms-python.debugpy-2025.14.1-linux-arm64/bundled/libs/debugpy/adapter/../../debugpy/launcher 48927 -- -m pytest tests/plugins/clients/test_qbittorrent.py -v -s
================================================ test session starts =================================================
platform linux -- Python 3.9.11, pytest-8.4.2, pluggy-1.6.0 -- /usr/local/bin/python
cachedir: .pytest_cache
metadata: {'Python': '3.9.11', 'Platform': 'Linux-6.10.14-linuxkit-aarch64-with-glibc2.31', 'Packages': {'pytest': '8.4.2', 'pluggy': '1.6.0'}, 'Plugins': {'metadata': '3.1.1', 'cov': '7.0.0', 'html': '4.1.1', 'requests-mock': '1.12.1', 'anyio': '4.11.0'}}
rootdir: /workspace
plugins: metadata-3.1.1, cov-7.0.0, html-4.1.1, requests-mock-1.12.1, anyio-4.11.0
collected 12 items
tests/plugins/clients/test_qbittorrent.py::QBittorrentPluginTest::test_add_torrent_bad_settings PASSED
tests/plugins/clients/test_qbittorrent.py::QBittorrentPluginTest::test_add_torrent_success PASSED
tests/plugins/clients/test_qbittorrent.py::QBittorrentPluginTest::test_add_torrent_with_settings_success PASSED
tests/plugins/clients/test_qbittorrent.py::QBittorrentPluginTest::test_check_connection_failed PASSED
tests/plugins/clients/test_qbittorrent.py::QBittorrentPluginTest::test_check_connection_successfull PASSED
tests/plugins/clients/test_qbittorrent.py::QBittorrentPluginTest::test_find_torrent PASSED
tests/plugins/clients/test_qbittorrent.py::QBittorrentPluginTest::test_find_torrent_failed PASSED
tests/plugins/clients/test_qbittorrent.py::QBittorrentPluginTest::test_find_torrent_no_settings PASSED
tests/plugins/clients/test_qbittorrent.py::QBittorrentPluginTest::test_get_download_dir_success PASSED
tests/plugins/clients/test_qbittorrent.py::QBittorrentPluginTest::test_remove_torrent_bad_settings PASSED
tests/plugins/clients/test_qbittorrent.py::QBittorrentPluginTest::test_remove_torrent_success PASSED
tests/plugins/clients/test_qbittorrent.py::QBittorrentPluginTest::test_settings PASSED
================================================== warnings summary ==================================================
monitorrent/utils/bittorrent.py:93
/workspace/monitorrent/utils/bittorrent.py:93: DeprecationWarning: invalid escape sequence \d
def tokenize(text, match=re.compile(b'([idel])|(\d+):|(-?\d+)').match):
../usr/local/lib/python3.9/site-packages/falcon/util/structures.py:35
/usr/local/lib/python3.9/site-packages/falcon/util/structures.py:35: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
class CaseInsensitiveDict(collections.MutableMapping): # pragma: no cover
-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
=========================================== 12 passed, 2 warnings in 0.91s ===========================================
root@944a436dbb04:/workspace#
@werwolfby Посмотрите пожалуйста, давайте осчастливим какое-то кол-во пользователей релизом 1.4.1 qbittorrent :D