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

Remove deprecated distutils for python 3.12 compatability #11893

Open
wants to merge 3 commits into
base: develop
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update tox to not use deprecated testpoint
borntohonk committed Dec 14, 2024
commit b48803935dae968b192abbcb055ffb9847373f07
3 changes: 2 additions & 1 deletion medusa/updater/update_manager.py
Original file line number Diff line number Diff line change
@@ -3,13 +3,14 @@
from __future__ import unicode_literals

import logging
from packaging.version import Version

from github import GithubException

from medusa import app
from medusa.logger.adapters.style import BraceAdapter

from packaging.version import Version

from requests.exceptions import RequestException


1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ jsonrpclib-pelix==0.4.3.2
knowit==0.4.0
Mako==1.2.4
markdown2==2.4.13
packaging==24.2
profilehooks==1.12.0
PyGithub==1.45
PyJWT==2.7.0
1 change: 1 addition & 0 deletions test_requirements.txt
Original file line number Diff line number Diff line change
@@ -6,6 +6,7 @@ pycodestyle==2.8.0
flake8-docstrings==1.7.0
flake8-import-order==0.18.2
flake8-quotes==3.3.2
packaging
pep8-naming==0.13.2
pytest>=6.2.5
pytest-cov==4.1.0
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -18,11 +18,11 @@ deps =
pytest
-rtest_requirements.txt
commands =
python setup.py test -a "{posargs:tests} --cov=medusa --cov-report=xml"
pytest {posargs:tests} --cov=medusa --cov-report=xml

[testenv:lint]
deps =
pytest
-rtest_requirements.txt
commands =
python setup.py test -a "medusa --flake8"
pytest medusa --flake8

Unchanged files with check annotations Beta

return indexerDefault || 0;
},
set(indexer) {
// TODO: commit instead

Check warning on line 745 in themes-default/slim/src/components/config-general.vue

GitHub Actions / build (16.x)

Unexpected 'todo' comment: 'TODO: commit instead'
this.general.indexerDefault = indexer;
}
},
});
},
mounted() {
// TODO: vueify this.

Check warning on line 1086 in themes-default/slim/src/components/config-notifications.vue

GitHub Actions / build (16.x)

Unexpected 'todo' comment: 'TODO: vueify this.'
$('#trakt_pin').on('keyup change', () => {
if ($('#trakt_pin').val().length === 0) {
$('#TraktGetPin').removeClass('hide');
const result = await getProviderCacheResults({ showSlug: show.id.slug, season, episode });
// TODO: put a modal in between

Check warning on line 251 in themes-default/slim/src/components/show-results.vue

GitHub Actions / build (16.x)

Unexpected 'todo' comment: 'TODO: put a modal in between'
if (result.providersSearched > 0 && result.totalSearchResults.length === 0) {
forceSearch();
}
...mapActions({
getShow: 'getShow'
}),
// TODO: Move this to show-results!

Check warning on line 91 in themes-default/slim/src/components/snatch-selection.vue

GitHub Actions / build (16.x)

Unexpected 'todo' comment: 'TODO: Move this to show-results!'
getReleaseNameClasses(name) {
const { effectiveIgnored, effectiveRequired, search, show } = this;
const classes = [];
return (titleX < titleY ? -1 : (titleX > titleY ? 1 : 0));
},
sortDownloads(x, y, _, rowX, rowY) {

Check warning on line 208 in themes-default/slim/src/mixins/show-list.js

GitHub Actions / build (16.x)

Method 'sortDownloads' has too many parameters (5). Maximum allowed is 4
if ((x === 0 || x === 100) && x === y) {
return rowX.stats.episodes.total < rowY.stats.episodes.total ? -1 : (rowX.stats.episodes.total < rowY.stats.episodes.total ? 1 : 0);
}

Check warning on line 54 in themes-default/slim/test/specs/app-link.spec.js

GitHub Actions / build (16.x)

Skipped test