Skip to content

Commit 8ea7346

Browse files
authored
Merge branch 'master' into feature/add-artist-to-item-entry-template
2 parents ab7b7a2 + 2a896d4 commit 8ea7346

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

72 files changed

+2706
-2096
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
steps:
2222
- uses: actions/checkout@v4
2323
- name: Install Python tools
24-
uses: BrandonLWhite/[email protected].1
24+
uses: BrandonLWhite/[email protected].3
2525
- name: Setup Python with poetry caching
2626
# poetry cache requires poetry to already be installed, weirdly
2727
uses: actions/setup-python@v5
@@ -33,7 +33,7 @@ jobs:
3333
if: matrix.platform == 'ubuntu-latest'
3434
run: |
3535
sudo apt update
36-
sudo apt install ffmpeg gobject-introspection libcairo2-dev libgirepository-2.0-dev pandoc
36+
sudo apt install ffmpeg gobject-introspection libcairo2-dev libgirepository-2.0-dev pandoc imagemagick
3737
3838
- name: Get changed lyrics files
3939
id: lyrics-update
@@ -60,7 +60,7 @@ jobs:
6060
env:
6161
LYRICS_UPDATED: ${{ steps.lyrics-update.outputs.any_changed }}
6262
run: |
63-
poetry install --extras=autobpm --extras=lyrics --extras=docs --extras=replaygain --extras=reflink
63+
poetry install --extras=autobpm --extras=lyrics --extras=docs --extras=replaygain --extras=reflink --extras=fetchart
6464
poe docs
6565
poe test-with-coverage
6666

.github/workflows/integration_test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111
- name: Install Python tools
12-
uses: BrandonLWhite/[email protected].1
12+
uses: BrandonLWhite/[email protected].3
1313
- uses: actions/setup-python@v5
1414
with:
1515
python-version: 3.9

.github/workflows/lint.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ jobs:
5353
steps:
5454
- uses: actions/checkout@v4
5555
- name: Install Python tools
56-
uses: BrandonLWhite/[email protected].1
56+
uses: BrandonLWhite/[email protected].3
5757
- uses: actions/setup-python@v5
5858
with:
5959
python-version: ${{ env.PYTHON_VERSION }}
@@ -74,7 +74,7 @@ jobs:
7474
steps:
7575
- uses: actions/checkout@v4
7676
- name: Install Python tools
77-
uses: BrandonLWhite/[email protected].1
77+
uses: BrandonLWhite/[email protected].3
7878
- uses: actions/setup-python@v5
7979
with:
8080
python-version: ${{ env.PYTHON_VERSION }}
@@ -94,7 +94,7 @@ jobs:
9494
steps:
9595
- uses: actions/checkout@v4
9696
- name: Install Python tools
97-
uses: BrandonLWhite/[email protected].1
97+
uses: BrandonLWhite/[email protected].3
9898
- uses: actions/setup-python@v5
9999
with:
100100
python-version: ${{ env.PYTHON_VERSION }}
@@ -118,7 +118,7 @@ jobs:
118118
steps:
119119
- uses: actions/checkout@v4
120120
- name: Install Python tools
121-
uses: BrandonLWhite/[email protected].1
121+
uses: BrandonLWhite/[email protected].3
122122
- uses: actions/setup-python@v5
123123
with:
124124
python-version: ${{ env.PYTHON_VERSION }}

.github/workflows/make_release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v4
2121
- name: Install Python tools
22-
uses: BrandonLWhite/[email protected].1
22+
uses: BrandonLWhite/[email protected].3
2323
- uses: actions/setup-python@v5
2424
with:
2525
python-version: ${{ env.PYTHON_VERSION }}
@@ -50,7 +50,7 @@ jobs:
5050
ref: ${{ env.NEW_TAG }}
5151

5252
- name: Install Python tools
53-
uses: BrandonLWhite/[email protected].1
53+
uses: BrandonLWhite/[email protected].3
5454
- uses: actions/setup-python@v5
5555
with:
5656
python-version: ${{ env.PYTHON_VERSION }}

CONTRIBUTING.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Code Contribution Ideas
154154
^^^^^^^^^^^^^^^^^^^^^^^
155155

156156
- We maintain a set of `issues marked as
157-
bite-sized” <https://github.com/beetbox/beets/labels/bitesize>`__.
157+
good first issue” <https://github.com/beetbox/beets/labels/good%20first%20issue>`__.
158158
These are issues that would serve as a good introduction to the
159159
codebase. Claim one and start exploring!
160160
- Like testing? Our `test

beets/autotag/__init__.py

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,37 @@
1414

1515
"""Facilities for automatically determining files' correct metadata."""
1616

17-
from collections.abc import Mapping, Sequence
18-
from typing import Union
17+
from __future__ import annotations
18+
19+
from typing import TYPE_CHECKING, Union
1920

2021
from beets import config, logging
21-
from beets.library import Album, Item, LibModel
22+
from beets.util import get_most_common_tags as current_metadata
2223

2324
# Parts of external interface.
2425
from beets.util import unique_list
2526

26-
from .hooks import AlbumInfo, AlbumMatch, Distance, TrackInfo, TrackMatch
27-
from .match import (
28-
Proposal,
29-
Recommendation,
30-
current_metadata,
31-
tag_album,
32-
tag_item,
33-
)
27+
from .distance import Distance
28+
from .hooks import AlbumInfo, AlbumMatch, TrackInfo, TrackMatch
29+
from .match import Proposal, Recommendation, tag_album, tag_item
30+
31+
if TYPE_CHECKING:
32+
from collections.abc import Mapping, Sequence
33+
34+
from beets.library import Album, Item, LibModel
3435

3536
__all__ = [
3637
"AlbumInfo",
3738
"AlbumMatch",
38-
"Distance",
39-
"TrackInfo",
40-
"TrackMatch",
39+
"Distance", # for backwards compatibility
4140
"Proposal",
4241
"Recommendation",
42+
"TrackInfo",
43+
"TrackMatch",
4344
"apply_album_metadata",
4445
"apply_item_metadata",
4546
"apply_metadata",
46-
"current_metadata",
47+
"current_metadata", # for backwards compatibility
4748
"tag_album",
4849
"tag_item",
4950
]

0 commit comments

Comments
 (0)